public class LinkAttachmentToSAPObjectFluentHelper extends FluentHelperFunction<LinkAttachmentToSAPObjectFluentHelper,AttachmentHarmonizedOperation,AttachmentHarmonizedOperation>
entityCollection
Constructor and Description |
---|
LinkAttachmentToSAPObjectFluentHelper(String servicePath,
String linkedSAPObjectKey,
String harmonizedDocumentType,
String archiveDocumentID,
String logicalDocument,
String sAPObjectNodeType,
String sAPObjectType)
Creates a fluent helper object that will execute the LinkAttachmentToSAPObject OData function import with
the provided parameters.
|
Modifier and Type | Method and Description |
---|---|
protected org.apache.http.client.methods.HttpUriRequest |
createRequest(URI uri)
Creates a request for this function based on the given
URI . |
AttachmentHarmonizedOperation |
execute(HttpDestinationProperties destination)
Deprecated.
Use the improved method
executeRequest(HttpDestinationProperties) instead. |
protected Class<AttachmentHarmonizedOperation> |
getEntityClass()
Returns a class object of the type this fluent helper works with.
|
protected String |
getFunctionName()
The exact name of the function to be called on the OData Endpoint.
|
protected Map<String,Object> |
getParameters()
Getter for the map of parameters to be used in the function call.
|
protected com.google.gson.JsonElement |
refineJsonResponse(com.google.gson.JsonElement jsonElement)
Transform the JSON element from the response to extract a result entity.
|
executeMultiple, executeRequest, executeSingle, getJsonResponseObjectName, toRequest
and, cachingMetadata, getHeaders, getHeadersForRequestAndImplicitRequests, getHeadersForRequestOnly, getParametersForRequestOnly, getServicePath, getThis, getVersionIdentifier, isCachingMetadata, onRequestAndImplicitRequests, onRequestOnly, withHeader, withHeaders, withoutCachingMetadata, withQueryParameter
public LinkAttachmentToSAPObjectFluentHelper(@Nonnull String servicePath, @Nonnull String linkedSAPObjectKey, @Nonnull String harmonizedDocumentType, @Nonnull String archiveDocumentID, @Nonnull String logicalDocument, @Nullable String sAPObjectNodeType, @Nonnull String sAPObjectType)
execute
method on the fluent helper
object.servicePath
- Service path to be used to call the functions against.archiveDocumentID
- ArchiveDocumentID
Constraints: Not nullable, Maximum length: 40
Original parameter name from the Odata EDM: ArchiveDocumentID
linkedSAPObjectKey
- LinkedSAPObjectKey
Constraints: Not nullable, Maximum length: 90
Original parameter name from the Odata EDM: LinkedSAPObjectKey
harmonizedDocumentType
- HarmonizedDocumentType
Constraints: Not nullable, Maximum length: 40
Original parameter name from the Odata EDM: HarmonizedDocumentType
sAPObjectType
- SAPObjectType
Constraints: Not nullable, Maximum length: 30
Original parameter name from the Odata EDM: SAPObjectType
sAPObjectNodeType
- SAPObjectNodeType
Constraints: Nullable, Maximum length: 30
Original parameter name from the Odata EDM: SAPObjectNodeType
logicalDocument
- LogicalDocument
Constraints: Not nullable, Maximum length: 32
Original parameter name from the Odata EDM: LogicalDocument
@Nonnull protected Class<AttachmentHarmonizedOperation> getEntityClass()
FluentHelperBasic
getEntityClass
in class FluentHelperBasic<LinkAttachmentToSAPObjectFluentHelper,AttachmentHarmonizedOperation,AttachmentHarmonizedOperation>
@Nonnull protected String getFunctionName()
FluentHelperFunction
getFunctionName
in class FluentHelperFunction<LinkAttachmentToSAPObjectFluentHelper,AttachmentHarmonizedOperation,AttachmentHarmonizedOperation>
@Nullable protected com.google.gson.JsonElement refineJsonResponse(@Nullable com.google.gson.JsonElement jsonElement)
FluentHelperFunction
refineJsonResponse
in class FluentHelperFunction<LinkAttachmentToSAPObjectFluentHelper,AttachmentHarmonizedOperation,AttachmentHarmonizedOperation>
jsonElement
- The optional response JSON element@Nonnull protected Map<String,Object> getParameters()
FluentHelperFunction
The map maps the ODataName of a parameter to the corresponding value.
getParameters
in class FluentHelperFunction<LinkAttachmentToSAPObjectFluentHelper,AttachmentHarmonizedOperation,AttachmentHarmonizedOperation>
@Nonnull protected org.apache.http.client.methods.HttpUriRequest createRequest(@Nonnull URI uri)
FluentHelperFunction
URI
.
Examples for such requests are HttpGet
and HttpPost
.
createRequest
in class FluentHelperFunction<LinkAttachmentToSAPObjectFluentHelper,AttachmentHarmonizedOperation,AttachmentHarmonizedOperation>
uri
- The URI
the request should target.@Deprecated @Nullable public AttachmentHarmonizedOperation execute(@Nonnull HttpDestinationProperties destination) throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
executeRequest(HttpDestinationProperties)
instead.execute
in class FluentHelperBasic<LinkAttachmentToSAPObjectFluentHelper,AttachmentHarmonizedOperation,AttachmentHarmonizedOperation>
destination
- The destination to use for the request.com.sap.cloud.sdk.odatav2.connectivity.ODataException
- The exception occurred during request executionCopyright © 2021 SAP SE. All rights reserved.