@Named(value="com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultLegalDocumentService") public class DefaultLegalDocumentService extends Object implements LegalDocumentService
This service enables you to read and create Legal Document with the data provided in a payload, in an API call. It is based on the OData protocol, and can be consumed in Integration scenarios or other user interfaces.
Reference: SAP API Business Hub
OData Service: | API_LEGAL_DOCUMENT_SRV |
API Version: | 1 |
Communication Scenario: | Legal Document Integration (SAP_COM_0178) |
Scope Items: | SAP S/4HANA for Legal Content (1XV) |
Authentication Methods: | Basic, x509 |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultLegalDocumentService()
Creates a service using
LegalDocumentService.DEFAULT_SERVICE_PATH to send the requests. |
Modifier and Type | Method and Description |
---|---|
LegalDocumentCreateFluentHelper |
createLegalDocument(LegalDocument legalDocument)
Create a new
LegalDocument entity and save it to the S/4HANA system. |
LglDocStampCreateFluentHelper |
createLglDocStamp(LglDocStamp lglDocStamp)
Create a new
LglDocStamp
entity and save it to the S/4HANA system. |
LegalDocumentFluentHelper |
getAllLegalDocument()
Fetch multiple
LegalDocument entities. |
LglDocStampFluentHelper |
getAllLglDocStamp()
Fetch multiple
LglDocStamp
entities. |
LegalDocumentByKeyFluentHelper |
getLegalDocumentByKey(UUID lglCntntMDocumentUUID)
Fetch a single
LegalDocument entity using key fields. |
LglDocStampByKeyFluentHelper |
getLglDocStampByKey(UUID lglCntntMDocumentStampUUID)
Fetch a single
LglDocStamp
entity using key fields. |
DefaultLegalDocumentService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
public DefaultLegalDocumentService()
LegalDocumentService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultLegalDocumentService withServicePath(@Nonnull String servicePath)
LegalDocumentService
withServicePath
in interface LegalDocumentService
servicePath
- Service path that will override the default.@Nonnull public LegalDocumentFluentHelper getAllLegalDocument()
LegalDocumentService
LegalDocument
entities.getAllLegalDocument
in interface LegalDocumentService
LegalDocument
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.@Nonnull public LegalDocumentByKeyFluentHelper getLegalDocumentByKey(UUID lglCntntMDocumentUUID)
LegalDocumentService
LegalDocument
entity using key fields.getLegalDocumentByKey
in interface LegalDocumentService
lglCntntMDocumentUUID
- Universal Unique Identifier
Constraints: Not nullable
LegalDocument
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.@Nonnull public LegalDocumentCreateFluentHelper createLegalDocument(@Nonnull LegalDocument legalDocument)
LegalDocumentService
LegalDocument
entity and save it to the S/4HANA system.createLegalDocument
in interface LegalDocumentService
legalDocument
- LegalDocument
entity object that will be created in the S/4HANA system.LegalDocument
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public LglDocStampFluentHelper getAllLglDocStamp()
LegalDocumentService
LglDocStamp
entities.getAllLglDocStamp
in interface LegalDocumentService
LglDocStamp
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.@Nonnull public LglDocStampByKeyFluentHelper getLglDocStampByKey(UUID lglCntntMDocumentStampUUID)
LegalDocumentService
LglDocStamp
entity using key fields.getLglDocStampByKey
in interface LegalDocumentService
lglCntntMDocumentStampUUID
- Universal Unique Identifier
Constraints: Not nullable
LglDocStamp
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.@Nonnull public LglDocStampCreateFluentHelper createLglDocStamp(@Nonnull LglDocStamp lglDocStamp)
LegalDocumentService
LglDocStamp
entity and save it to the S/4HANA system.createLglDocStamp
in interface LegalDocumentService
lglDocStamp
- LglDocStamp
entity object that will be created in the S/4HANA system.LglDocStamp
entity.
To perform execution, call the
execute
method on the fluent helper object.Copyright © 2018 SAP SE. All rights reserved.