@Named(value="com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultAttachmentService") public class DefaultAttachmentService extends Object implements AttachmentService
With this service, you can read, create, rename, and delete attachments.
Reference: SAP API Business Hub
OData Service: | API_CV_ATTACHMENT_SRV |
API Version: | 1 |
Communication Scenario: | Distributed Manufacturing Integration (SAP_COM_0077), Product Lifecycle Management - Master Data Integration (SAP_COM_0105) |
Scope Items: | 3D Printing On-Demand-Manufacturing Collaboration on HCP (1NX), Change Record based Product Data Management (1NF), Engineering Bill of Material Versions Management (1NR), Engineering Bill of Material Change Master Management (1R3) |
Constructor and Description |
---|
DefaultAttachmentService() |
Modifier and Type | Method and Description |
---|---|
AttachmentContentCreateFluentHelper |
createAttachmentContent(AttachmentContent attachmentContent)
Create a new
AttachmentContent entity and save it to the S/4HANA system. |
CreateUrlAsAttachmentFluentHelper |
createUrlAsAttachment(String semanticObject,
String linkedSAPObjectKey,
String businessObjectTypeName,
String url,
String urlDescription,
String mIMEType)
Create URL as attachmentCreates a fluent helper for the CreateUrlAsAttachment OData function import.
|
AttachmentContentDeleteFluentHelper |
deleteAttachmentContent(AttachmentContent attachmentContent)
Deletes an existing
AttachmentContent entity in the S/4HANA system. |
DocumentInfoRecordAttchFluentHelper |
getAllDocumentInfoRecordAttch()
Fetch multiple
DocumentInfoRecordAttch entities. |
GetAllOriginalsFluentHelper |
getAllOriginals(String linkedSAPObjectKey,
String businessObjectTypeName,
String semanticObject)
Returns All Originals Related to a Parent ObjectCreates a fluent helper for the GetAllOriginals OData function import.
|
GetAttachmentCountFluentHelper |
getAttachmentCount(String businessObjectTypeName,
String linkedSAPObjectKey,
String semanticObject)
Returns the Count of AttachmentsCreates a fluent helper for the GetAttachmentCount OData function import.
|
DocumentInfoRecordAttchByKeyFluentHelper |
getDocumentInfoRecordAttchByKey(String documentInfoRecordDocType,
String documentInfoRecordDocNumber,
String documentInfoRecordDocVersion,
String documentInfoRecordDocPart)
Fetch a single
DocumentInfoRecordAttch entity using key fields. |
RenameAttachmentFluentHelper |
renameAttachment(String documentInfoRecordDocType,
String documentInfoRecordDocVersion,
String logicalDocument,
String archiveDocumentID,
String businessObjectTypeName,
String linkedSAPObjectKey,
String semanticObject,
String fileName,
String documentInfoRecordDocNumber,
String documentInfoRecordDocPart)
Rename AttachmentCreates a fluent helper for the RenameAttachment OData function import.
|
public AttachmentContentCreateFluentHelper createAttachmentContent(AttachmentContent attachmentContent)
AttachmentService
AttachmentContent
entity and save it to the S/4HANA system.createAttachmentContent
in interface AttachmentService
attachmentContent
- AttachmentContent
entity object that will be created in the S/4HANA system.AttachmentContent
entity. To perform execution, call the execute
method on the fluent helper object.public AttachmentContentDeleteFluentHelper deleteAttachmentContent(AttachmentContent attachmentContent)
AttachmentService
AttachmentContent
entity in the S/4HANA system.deleteAttachmentContent
in interface AttachmentService
attachmentContent
- AttachmentContent
entity object that will be deleted in the S/4HANA system.AttachmentContent
entity. To perform execution, call the execute
method on the fluent helper object.public DocumentInfoRecordAttchFluentHelper getAllDocumentInfoRecordAttch()
AttachmentService
DocumentInfoRecordAttch
entities.getAllDocumentInfoRecordAttch
in interface AttachmentService
DocumentInfoRecordAttch
entities. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call the execute
method on the fluent helper object.public DocumentInfoRecordAttchByKeyFluentHelper getDocumentInfoRecordAttchByKey(String documentInfoRecordDocType, String documentInfoRecordDocNumber, String documentInfoRecordDocVersion, String documentInfoRecordDocPart)
AttachmentService
DocumentInfoRecordAttch
entity using key fields.getDocumentInfoRecordAttchByKey
in interface AttachmentService
documentInfoRecordDocType
- Part of the document key, which categorizes documents according to their distinguishing features and the organizational procedures which result from them.Constraints: Not nullable, Maximum length: 3
documentInfoRecordDocNumber
- This number is the main part of the document key, which is used to identify the document.Constraints: Not nullable, Maximum length: 25
documentInfoRecordDocVersion
- Number which identifies the version of a document.Constraints: Not nullable, Maximum length: 2
documentInfoRecordDocPart
- Section of a document which is maintained as an independent document.Constraints: Not nullable, Maximum length: 3
DocumentInfoRecordAttch
entity using key fields. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call the execute
method on the fluent helper object.public GetAllOriginalsFluentHelper getAllOriginals(String linkedSAPObjectKey, String businessObjectTypeName, String semanticObject)
AttachmentService
Creates a fluent helper for the GetAllOriginals OData function import.
getAllOriginals
in interface AttachmentService
linkedSAPObjectKey
- LinkedSAPObjectKeyConstraints: Not nullable, Maximum length: 90
Original parameter name from the Odata EDM: LinkedSAPObjectKey
businessObjectTypeName
- BusinessObjectTypeNameConstraints: Not nullable, Maximum length: 40
Original parameter name from the Odata EDM: BusinessObjectTypeName
semanticObject
- SemanticObjectConstraints: Nullable, Maximum length: 40
Original parameter name from the Odata EDM: SemanticObject
execute
method on the fluent helper object.public GetAttachmentCountFluentHelper getAttachmentCount(String businessObjectTypeName, String linkedSAPObjectKey, String semanticObject)
AttachmentService
Creates a fluent helper for the GetAttachmentCount OData function import.
getAttachmentCount
in interface AttachmentService
businessObjectTypeName
- BusinessObjectTypeNameConstraints: Not nullable, Maximum length: 40
Original parameter name from the Odata EDM: BusinessObjectTypeName
linkedSAPObjectKey
- LinkedSAPObjectKeyConstraints: Not nullable, Maximum length: 90
Original parameter name from the Odata EDM: LinkedSAPObjectKey
semanticObject
- SemanticObjectConstraints: Nullable, Maximum length: 40
Original parameter name from the Odata EDM: SemanticObject
execute
method on the fluent helper object.public RenameAttachmentFluentHelper renameAttachment(String documentInfoRecordDocType, String documentInfoRecordDocVersion, String logicalDocument, String archiveDocumentID, String businessObjectTypeName, String linkedSAPObjectKey, String semanticObject, String fileName, String documentInfoRecordDocNumber, String documentInfoRecordDocPart)
AttachmentService
Creates a fluent helper for the RenameAttachment OData function import.
renameAttachment
in interface AttachmentService
documentInfoRecordDocType
- DocumentInfoRecordDocTypeConstraints: Nullable, Maximum length: 3
Original parameter name from the Odata EDM: DocumentInfoRecordDocType
documentInfoRecordDocVersion
- DocumentInfoRecordDocVersionConstraints: Nullable, Maximum length: 2
Original parameter name from the Odata EDM: DocumentInfoRecordDocVersion
logicalDocument
- LogicalDocumentConstraints: Not nullable, Maximum length: 32
Original parameter name from the Odata EDM: LogicalDocument
archiveDocumentID
- ArchiveDocumentIDConstraints: Not nullable, Maximum length: 40
Original parameter name from the Odata EDM: ArchiveDocumentID
businessObjectTypeName
- BusinessObjectTypeNameConstraints: Not nullable, Maximum length: 40
Original parameter name from the Odata EDM: BusinessObjectTypeName
linkedSAPObjectKey
- LinkedSAPObjectKeyConstraints: Not nullable, Maximum length: 90
Original parameter name from the Odata EDM: LinkedSAPObjectKey
semanticObject
- SemanticObjectConstraints: Nullable, Maximum length: 40
Original parameter name from the Odata EDM: SemanticObject
fileName
- FileNameConstraints: Not nullable, Maximum length: 255
Original parameter name from the Odata EDM: FileName
documentInfoRecordDocNumber
- DocumentInfoRecordDocNumberConstraints: Nullable, Maximum length: 25
Original parameter name from the Odata EDM: DocumentInfoRecordDocNumber
documentInfoRecordDocPart
- DocumentInfoRecordDocPartConstraints: Nullable, Maximum length: 3
Original parameter name from the Odata EDM: DocumentInfoRecordDocPart
execute
method on the fluent helper object.public CreateUrlAsAttachmentFluentHelper createUrlAsAttachment(String semanticObject, String linkedSAPObjectKey, String businessObjectTypeName, String url, String urlDescription, String mIMEType)
AttachmentService
Creates a fluent helper for the CreateUrlAsAttachment OData function import.
createUrlAsAttachment
in interface AttachmentService
semanticObject
- SemanticObjectConstraints: Not nullable, Maximum length: 40
Original parameter name from the Odata EDM: SemanticObject
linkedSAPObjectKey
- LinkedSAPObjectKeyConstraints: Not nullable, Maximum length: 90
Original parameter name from the Odata EDM: LinkedSAPObjectKey
businessObjectTypeName
- BusinessObjectTypeNameConstraints: Not nullable, Maximum length: 40
Original parameter name from the Odata EDM: BusinessObjectTypeName
url
- UrlConstraints: Not nullable, Maximum length: 255
Original parameter name from the Odata EDM: Url
urlDescription
- UrlDescriptionConstraints: Not nullable, Maximum length: 255
Original parameter name from the Odata EDM: UrlDescription
mIMEType
- MIMETypeConstraints: Not nullable, Maximum length: 40
Original parameter name from the Odata EDM: MIMEType
execute
method on the fluent helper object.Copyright © 2018 SAP SE. All rights reserved.