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

com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultBusinessAreaService 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 javax.annotation.Nonnull;
import javax.inject.Named;

import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.businessarea.BusinessAreaByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.businessarea.BusinessAreaFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.businessarea.BusinessAreaTextByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.businessarea.BusinessAreaTextFluentHelper;

/**
 * 

* This service enables you to read business area master data in an API call. It is based on the OData protocol, and can * be consumed in Fiori apps and on other user interfaces. *

*

* Business * Documentation *

*

* Reference: SAP API * Business Hub *

*

Details:

* * * * * * * * * * * * * * * * * *
OData Service:API_BUSINESSAREA_SRV
API Version:1
Communication Scenario:SAP Business Objects Cloud for Planning Integration (SAP_COM_0087)
Scope Items:oData Integration with SAP Business Objects Cloud for * Planning (1YB)
* */ @Named( "com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultBusinessAreaService" ) public class DefaultBusinessAreaService implements BusinessAreaService { @Nonnull private final String servicePath; /** * Creates a service using {@link BusinessAreaService#DEFAULT_SERVICE_PATH} to send the requests. * */ public DefaultBusinessAreaService() { servicePath = BusinessAreaService.DEFAULT_SERVICE_PATH; } /** * Creates a service using the provided service path to send the requests. *

* Used by the fluent {@link #withServicePath(String)} method. * */ private DefaultBusinessAreaService( @Nonnull final String servicePath ) { this.servicePath = servicePath; } @Override @Nonnull public DefaultBusinessAreaService withServicePath( @Nonnull final String servicePath ) { return new DefaultBusinessAreaService(servicePath); } @Override @Nonnull public BusinessAreaFluentHelper getAllBusinessArea() { return new BusinessAreaFluentHelper(servicePath); } @Override @Nonnull public BusinessAreaByKeyFluentHelper getBusinessAreaByKey( final String businessArea ) { return new BusinessAreaByKeyFluentHelper(servicePath, businessArea); } @Override @Nonnull public BusinessAreaTextFluentHelper getAllBusinessAreaText() { return new BusinessAreaTextFluentHelper(servicePath); } @Override @Nonnull public BusinessAreaTextByKeyFluentHelper getBusinessAreaTextByKey( final String businessArea, final String language ) { return new BusinessAreaTextByKeyFluentHelper(servicePath, businessArea, language); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy