All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultCostCenterService Maven / Gradle / Ivy

/*
 * Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved.
 */

package com.sap.cloud.sdk.s4hana.datamodel.odata.services;

import java.time.LocalDateTime;

import javax.annotation.Nonnull;
import javax.inject.Named;

import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.costcenter.CostCenterByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.costcenter.CostCenterFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.costcenter.CostCenterTextByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.costcenter.CostCenterTextFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.costcenter.batch.DefaultCostCenterServiceBatch;

/**
 * 

* This service enables you to display cost center master data to be consumed in SAP Fiori apps and on other user * interfaces. *

*

* Business * Documentation *

*

* Reference: SAP API * Business Hub *

*

Details:

* * * * * * * * * * * * * * * * * * * * * *
OData Service:API_COSTCENTER_SRV
API Version:1
Communication Scenario:SAP Analytics Cloud for Planning Integration (SAP_COM_0087)
Scope Items:Integration between SAP S/4HANA Cloud and SAP Analytics Cloud * (1YB)
Authentication Methods:Basic, x509
* */ @Named( "com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultCostCenterService" ) public class DefaultCostCenterService implements CostCenterService { @Nonnull private final String servicePath; /** * Creates a service using {@link CostCenterService#DEFAULT_SERVICE_PATH} to send the requests. * */ public DefaultCostCenterService() { servicePath = CostCenterService.DEFAULT_SERVICE_PATH; } /** * Creates a service using the provided service path to send the requests. *

* Used by the fluent {@link #withServicePath(String)} method. * */ private DefaultCostCenterService( @Nonnull final String servicePath ) { this.servicePath = servicePath; } @Override @Nonnull public DefaultCostCenterService withServicePath( @Nonnull final String servicePath ) { return new DefaultCostCenterService(servicePath); } /** * {@inheritDoc} * */ @Override @Nonnull public DefaultCostCenterServiceBatch batch() { return new DefaultCostCenterServiceBatch(this); } @Override @Nonnull public CostCenterFluentHelper getAllCostCenter() { return new CostCenterFluentHelper(servicePath); } @Override @Nonnull public CostCenterByKeyFluentHelper getCostCenterByKey( final String controllingArea, final String costCenter, final LocalDateTime validityEndDate ) { return new CostCenterByKeyFluentHelper(servicePath, controllingArea, costCenter, validityEndDate); } @Override @Nonnull public CostCenterTextFluentHelper getAllCostCenterText() { return new CostCenterTextFluentHelper(servicePath); } @Override @Nonnull public CostCenterTextByKeyFluentHelper getCostCenterTextByKey( final String costCenter, final String controllingArea, final String language, final LocalDateTime validityEndDate ) { return new CostCenterTextByKeyFluentHelper(servicePath, costCenter, controllingArea, language, validityEndDate); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy