@Named(value="com.sap.cloud.sdk.s4hana.onpremise.v2020.datamodel.odata.services.DefaultProjectService") public class DefaultProjectService extends Object implements ProjectService
The service reads data from the project using Project Internal ID, and can retrieve project header data as well as description fields, organizational fields and planned date fields. You can use the WBS Element entity type to get details about the WBS Elements associated with this project. .
Reference: SAP API Business Hub
OData Service: | OP_API_PROJECT_V2_0001 |
API Version: | 1 |
Minimum ERP Version: | 2020 |
Authentication Methods: | Basic, x509 |
Business Object: | Project |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultProjectService()
Creates a service using
ProjectService.DEFAULT_SERVICE_PATH to send the requests. |
Modifier and Type | Method and Description |
---|---|
DefaultProjectServiceBatch |
batch()
Instantiate a new FluentHelper instance for a single OData batch request.
|
ProjectFluentHelper |
getAllProject()
Fetch multiple
Project entities. |
WBSElementFluentHelper |
getAllWBSElement()
Fetch multiple
WBSElement entities. |
ProjectByKeyFluentHelper |
getProjectByKey(String projectInternalID)
Fetch a single
Project entity using key fields. |
WBSElementByKeyFluentHelper |
getWBSElementByKey(String wBSElementInternalID)
Fetch a single
WBSElement entity using key fields. |
DefaultProjectService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
public DefaultProjectService()
ProjectService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultProjectService withServicePath(@Nonnull String servicePath)
ProjectService
withServicePath
in interface ProjectService
servicePath
- Service path that will override the default.@Nonnull public DefaultProjectServiceBatch batch()
batch
in interface BatchService<ProjectServiceBatch>
@Nonnull public ProjectFluentHelper getAllProject()
ProjectService
Project
entities.getAllProject
in interface ProjectService
Project
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 ProjectByKeyFluentHelper getProjectByKey(String projectInternalID)
ProjectService
Project
entity using key fields.getProjectByKey
in interface ProjectService
projectInternalID
- Project (internal)
Constraints: Not nullable, Maximum length: 8
Project
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 WBSElementFluentHelper getAllWBSElement()
ProjectService
WBSElement
entities.getAllWBSElement
in interface ProjectService
WBSElement
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 WBSElementByKeyFluentHelper getWBSElementByKey(String wBSElementInternalID)
ProjectService
WBSElement
entity using key fields.getWBSElementByKey
in interface ProjectService
wBSElementInternalID
- WBS Element
Constraints: Not nullable, Maximum length: 8
WBSElement
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.