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

com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultProfitCenterService 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.profitcenter.ProfitCenterByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.profitcenter.ProfitCenterFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.profitcenter.ProfitCenterTextByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.profitcenter.ProfitCenterTextFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.profitcenter.batch.DefaultProfitCenterServiceBatch;

/**
 * 

* This service enables you to display profit 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_PROFITCENTER_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.DefaultProfitCenterService" ) public class DefaultProfitCenterService implements ProfitCenterService { @Nonnull private final String servicePath; /** * Creates a service using {@link ProfitCenterService#DEFAULT_SERVICE_PATH} to send the requests. * */ public DefaultProfitCenterService() { servicePath = ProfitCenterService.DEFAULT_SERVICE_PATH; } /** * Creates a service using the provided service path to send the requests. *

* Used by the fluent {@link #withServicePath(String)} method. * */ private DefaultProfitCenterService( @Nonnull final String servicePath ) { this.servicePath = servicePath; } @Override @Nonnull public DefaultProfitCenterService withServicePath( @Nonnull final String servicePath ) { return new DefaultProfitCenterService(servicePath); } /** * {@inheritDoc} * */ @Override @Nonnull public DefaultProfitCenterServiceBatch batch() { return new DefaultProfitCenterServiceBatch(this); } @Override @Nonnull public ProfitCenterFluentHelper getAllProfitCenter() { return new ProfitCenterFluentHelper(servicePath); } @Override @Nonnull public ProfitCenterByKeyFluentHelper getProfitCenterByKey( final String controllingArea, final String profitCenter, final LocalDateTime validityEndDate ) { return new ProfitCenterByKeyFluentHelper(servicePath, controllingArea, profitCenter, validityEndDate); } @Override @Nonnull public ProfitCenterTextFluentHelper getAllProfitCenterText() { return new ProfitCenterTextFluentHelper(servicePath); } @Override @Nonnull public ProfitCenterTextByKeyFluentHelper getProfitCenterTextByKey( final String language, final String controllingArea, final String profitCenter, final LocalDateTime validityEndDate ) { return new ProfitCenterTextByKeyFluentHelper( servicePath, language, controllingArea, profitCenter, validityEndDate); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy