@Named(value="com.sap.cloud.sdk.s4hana.onpremise.v2020.datamodel.odata.services.DefaultLegalCategorieService") public class DefaultLegalCategorieService extends Object implements LegalCategorieService
This synchronous inbound service is based on the OData protocol and helps you to read legal categories through an API call. Category is one of the objects used to categorize Contexts, Legal Transactions, Templates and Text Blocks. This service contains legal categories and legal category text nodes. Using this service, you can read the legal categories created in the Categories application..
Reference: SAP API Business Hub
OData Service: | OP_API_LEGAL_CATEGORY_SRV_0001 |
API Version: | 1 |
Minimum ERP Version: | 2020 |
Authentication Methods: | Basic, x509 |
Business Object: | Legal Category |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultLegalCategorieService()
Creates a service using
LegalCategorieService.DEFAULT_SERVICE_PATH to send the requests. |
Modifier and Type | Method and Description |
---|---|
DefaultLegalCategorieServiceBatch |
batch()
Instantiate a new FluentHelper instance for a single OData batch request.
|
LegalCategoryFluentHelper |
getAllLegalCategory()
Fetch multiple
LegalCategory entities. |
LegalCategoryTextFluentHelper |
getAllLegalCategoryText()
Fetch multiple
LegalCategoryText entities. |
LegalCategoryByKeyFluentHelper |
getLegalCategoryByKey(String lglCntntMCategory)
Fetch a single
LegalCategory entity using key fields. |
LegalCategoryTextByKeyFluentHelper |
getLegalCategoryTextByKey(String lglCntntMCategory,
String language)
Fetch a single
LegalCategoryText entity using key fields. |
DefaultLegalCategorieService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
public DefaultLegalCategorieService()
LegalCategorieService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultLegalCategorieService withServicePath(@Nonnull String servicePath)
LegalCategorieService
withServicePath
in interface LegalCategorieService
servicePath
- Service path that will override the default.@Nonnull public DefaultLegalCategorieServiceBatch batch()
batch
in interface BatchService<LegalCategorieServiceBatch>
@Nonnull public LegalCategoryFluentHelper getAllLegalCategory()
LegalCategorieService
LegalCategory
entities.getAllLegalCategory
in interface LegalCategorieService
LegalCategory
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 LegalCategoryByKeyFluentHelper getLegalCategoryByKey(String lglCntntMCategory)
LegalCategorieService
LegalCategory
entity using key fields.getLegalCategoryByKey
in interface LegalCategorieService
lglCntntMCategory
- Category ID
Constraints: Not nullable, Maximum length: 6
LegalCategory
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 LegalCategoryTextFluentHelper getAllLegalCategoryText()
LegalCategorieService
LegalCategoryText
entities.getAllLegalCategoryText
in interface LegalCategorieService
LegalCategoryText
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 LegalCategoryTextByKeyFluentHelper getLegalCategoryTextByKey(String lglCntntMCategory, String language)
LegalCategorieService
LegalCategoryText
entity using key fields.getLegalCategoryTextByKey
in interface LegalCategorieService
lglCntntMCategory
- Category ID
Constraints: Not nullable, Maximum length: 6
language
- Language Key
Constraints: Not nullable, Maximum length: 2
LegalCategoryText
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.Copyright © 2021 SAP SE. All rights reserved.