@Named(value="com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultWorkforceAvailabilityService") public class DefaultWorkforceAvailabilityService extends Object implements WorkforceAvailabilityService
This service enables you to add availability information to the S/4HANA system for customers that are not using SAP SuccessFactors Employee Central.
Reference: SAP API Business Hub
OData Service: | API_MANAGE_WF_AVAILABILITY |
API Version: | 1 |
Communication Scenario: | Employee Integration (SAP_COM_0001), External HR Workforce Integration (SAP_COM_0301) |
Scope Items: | Employee Integration - SAP S/4HANA Enablement (1FD) |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultWorkforceAvailabilityService()
Creates a service using
WorkforceAvailabilityService.DEFAULT_SERVICE_PATH to send the requests. |
Modifier and Type | Method and Description |
---|---|
TimeOverviewCreateFluentHelper |
createTimeOverview(TimeOverview timeOverview)
Create a new
TimeOverview entity and save it to the S/4HANA system. |
TimeOverviewDeleteFluentHelper |
deleteTimeOverview(TimeOverview timeOverview)
Deletes an existing
TimeOverview entity in the S/4HANA system. |
TimeOverviewFluentHelper |
getAllTimeOverview()
Fetch multiple
TimeOverview entities. |
TimeOverviewByKeyFluentHelper |
getTimeOverviewByKey(String personworkagreementexternalid,
String companycode,
LocalDateTime calendardate)
Fetch a single
TimeOverview entity using key fields. |
TimeOverviewUpdateFluentHelper |
updateTimeOverview(TimeOverview timeOverview)
Update an existing
TimeOverview entity and save it to the S/4HANA system. |
DefaultWorkforceAvailabilityService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
public DefaultWorkforceAvailabilityService()
WorkforceAvailabilityService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultWorkforceAvailabilityService withServicePath(@Nonnull String servicePath)
WorkforceAvailabilityService
withServicePath
in interface WorkforceAvailabilityService
servicePath
- Service path that will override the default.@Nonnull public TimeOverviewFluentHelper getAllTimeOverview()
WorkforceAvailabilityService
TimeOverview
entities.getAllTimeOverview
in interface WorkforceAvailabilityService
TimeOverview
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 TimeOverviewByKeyFluentHelper getTimeOverviewByKey(String personworkagreementexternalid, String companycode, LocalDateTime calendardate)
WorkforceAvailabilityService
TimeOverview
entity using key fields.getTimeOverviewByKey
in interface WorkforceAvailabilityService
personworkagreementexternalid
- Work Agreement External ID
Constraints: Not nullable, Maximum length: 20
companycode
- The company code is an organizational unit within financial accounting.
Constraints: Not nullable, Maximum length: 4
calendardate
- This field contains the date on which the corresponding data record is valid.
Constraints: Not nullable, Precision: 7
TimeOverview
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 TimeOverviewCreateFluentHelper createTimeOverview(@Nonnull TimeOverview timeOverview)
WorkforceAvailabilityService
TimeOverview
entity and save it to the S/4HANA system.createTimeOverview
in interface WorkforceAvailabilityService
timeOverview
- TimeOverview
entity object that will be created in the S/4HANA system.TimeOverview
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public TimeOverviewUpdateFluentHelper updateTimeOverview(@Nonnull TimeOverview timeOverview)
WorkforceAvailabilityService
TimeOverview
entity and save it to the S/4HANA system.updateTimeOverview
in interface WorkforceAvailabilityService
timeOverview
- TimeOverview
entity object that will be updated in the S/4HANA system.TimeOverview
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public TimeOverviewDeleteFluentHelper deleteTimeOverview(@Nonnull TimeOverview timeOverview)
WorkforceAvailabilityService
TimeOverview
entity in the S/4HANA system.deleteTimeOverview
in interface WorkforceAvailabilityService
timeOverview
- TimeOverview
entity object that will be deleted in the S/4HANA system.TimeOverview
entity. To perform execution, call the
execute
method on the fluent helper object.Copyright © 2019 SAP SE. All rights reserved.