@Named public class DefaultAttachmentService extends Object implements AttachmentService
This service enables you to manage the entire life cycle of a DMS based attachment: from attachment creation to attachment storage, from access to update via OData Service.
Reference: SAP API Business Hub
OData Service: | API_CV_ATTACHMENT_SRV |
API Version: | 1 |
Communication Scenario: | Product Lifecycle Management - Master Data Integration (SAP_COM_0105) |
Scope Items: | Engineering Bill of Material - Versions Management (1NR) |
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. |
AttachmentContentDeleteFluentHelper |
deleteAttachmentContent(AttachmentContent attachmentContent)
Deletes an existing
AttachmentContent entity in the S/4HANA system. |
GetAllOriginalsFluentHelper |
getAllOriginals(String linkedSAPObjectKey,
String businessObjectTypeName,
String semanticObject)
Returns All Originals Related to a Parent Object
|
GetAttachmentCountFluentHelper |
getAttachmentCount(String businessObjectTypeName,
String linkedSAPObjectKey,
String semanticObject)
Returns the Count of Attachments
|
RenameAttachmentFluentHelper |
renameAttachment(String documentInfoRecordDocType,
String documentInfoRecordDocVersion,
String logicalDocument,
String archiveDocumentID,
String businessObjectTypeName,
String linkedSAPObjectKey,
String semanticObject,
String fileName,
String documentInfoRecordDocNumber,
String documentInfoRecordDocPart)
Rename Attachment
|
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 GetAllOriginalsFluentHelper getAllOriginals(String linkedSAPObjectKey, String businessObjectTypeName, String semanticObject)
AttachmentService
Creates a fluent helper for the GetAllOriginals OData function import.
getAllOriginals
in interface AttachmentService
linkedSAPObjectKey
- Constraints: Not nullable, Maximum length: 90businessObjectTypeName
- Constraints: Not nullable, Maximum length: 40semanticObject
- Constraints: Nullable, Maximum length: 40execute
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
- Constraints: Not nullable, Maximum length: 40linkedSAPObjectKey
- Constraints: Not nullable, Maximum length: 90semanticObject
- Constraints: Nullable, Maximum length: 40execute
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
- Constraints: Nullable, Maximum length: 3documentInfoRecordDocVersion
- Constraints: Nullable, Maximum length: 2logicalDocument
- Constraints: Not nullable, Maximum length: 32archiveDocumentID
- Constraints: Not nullable, Maximum length: 40businessObjectTypeName
- Constraints: Not nullable, Maximum length: 40linkedSAPObjectKey
- Constraints: Not nullable, Maximum length: 90semanticObject
- Constraints: Nullable, Maximum length: 40fileName
- Constraints: Not nullable, Maximum length: 255documentInfoRecordDocNumber
- Constraints: Nullable, Maximum length: 25documentInfoRecordDocPart
- Constraints: Nullable, Maximum length: 3execute
method on the fluent helper object.Copyright © 2017 SAP SE. All rights reserved.