@Named(value="com.sap.cloud.sdk.s4hana.onpremise.v2020.datamodel.odata.services.DefaultSegmentService") public class DefaultSegmentService extends Object implements SegmentService
The service enables you to retrieve segment master data. It contains a header and nodes with business information. You can read segments and their names in the respective language..
Reference: SAP API Business Hub
OData Service: | OP_API_SEGMENT_SRV |
API Version: | 1 |
Minimum ERP Version: | 2020 |
Authentication Methods: | Basic, x509 |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultSegmentService()
Creates a service using
SegmentService.DEFAULT_SERVICE_PATH to send the requests. |
Modifier and Type | Method and Description |
---|---|
DefaultSegmentServiceBatch |
batch()
Instantiate a new FluentHelper instance for a single OData batch request.
|
SegmentFluentHelper |
getAllSegment()
Fetch multiple
Segment entities. |
SegmentTextFluentHelper |
getAllSegmentText()
Fetch multiple
SegmentText entities. |
SegmentByKeyFluentHelper |
getSegmentByKey(String segment)
Fetch a single
Segment entity using key fields. |
SegmentTextByKeyFluentHelper |
getSegmentTextByKey(String language,
String segment)
Fetch a single
SegmentText entity using key fields. |
DefaultSegmentService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
public DefaultSegmentService()
SegmentService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultSegmentService withServicePath(@Nonnull String servicePath)
SegmentService
withServicePath
in interface SegmentService
servicePath
- Service path that will override the default.@Nonnull public DefaultSegmentServiceBatch batch()
batch
in interface BatchService<SegmentServiceBatch>
@Nonnull public SegmentFluentHelper getAllSegment()
SegmentService
Segment
entities.getAllSegment
in interface SegmentService
Segment
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 SegmentByKeyFluentHelper getSegmentByKey(String segment)
SegmentService
Segment
entity using key fields.getSegmentByKey
in interface SegmentService
segment
- Segment for Segmental Reporting
Constraints: Not nullable, Maximum length: 10
Segment
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 SegmentTextFluentHelper getAllSegmentText()
SegmentService
SegmentText
entities.getAllSegmentText
in interface SegmentService
SegmentText
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 SegmentTextByKeyFluentHelper getSegmentTextByKey(String language, String segment)
SegmentService
SegmentText
entity using key fields.getSegmentTextByKey
in interface SegmentService
language
- Language Key
Constraints: Not nullable, Maximum length: 2
segment
- Segment for Segmental Reporting
Constraints: Not nullable, Maximum length: 10
SegmentText
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.