
com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultCustomerAndSupplierIndustryService 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.customerandsupplierindustry.CustomerSupplierIndustryByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.customerandsupplierindustry.CustomerSupplierIndustryFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.customerandsupplierindustry.CustomerSupplierIndustryTextByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.customerandsupplierindustry.CustomerSupplierIndustryTextFluentHelper;
/**
*
* This service enables you to read the industry master data of the customer and supplier in an API call. It is based on
* the OData protocol, and can be consumed in Fiori apps and on other user interfaces.
*
*
*
* Reference: SAP
* API Business Hub
*
* Details:
*
*
* OData Service:
* API_CUSTOMERSUPPLIERINDUSTRY_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.DefaultCustomerAndSupplierIndustryService" )
public class DefaultCustomerAndSupplierIndustryService implements CustomerAndSupplierIndustryService
{
@Nonnull
private final String servicePath;
/**
* Creates a service using {@link CustomerAndSupplierIndustryService#DEFAULT_SERVICE_PATH} to send the requests.
*
*/
public DefaultCustomerAndSupplierIndustryService()
{
servicePath = CustomerAndSupplierIndustryService.DEFAULT_SERVICE_PATH;
}
/**
* Creates a service using the provided service path to send the requests.
*
* Used by the fluent {@link #withServicePath(String)} method.
*
*/
private DefaultCustomerAndSupplierIndustryService( @Nonnull final String servicePath )
{
this.servicePath = servicePath;
}
@Override
@Nonnull
public DefaultCustomerAndSupplierIndustryService withServicePath( @Nonnull final String servicePath )
{
return new DefaultCustomerAndSupplierIndustryService(servicePath);
}
@Override
@Nonnull
public CustomerSupplierIndustryFluentHelper getAllCustomerSupplierIndustry()
{
return new CustomerSupplierIndustryFluentHelper(servicePath);
}
@Override
@Nonnull
public CustomerSupplierIndustryByKeyFluentHelper getCustomerSupplierIndustryByKey( final String industry )
{
return new CustomerSupplierIndustryByKeyFluentHelper(servicePath, industry);
}
@Override
@Nonnull
public CustomerSupplierIndustryTextFluentHelper getAllCustomerSupplierIndustryText()
{
return new CustomerSupplierIndustryTextFluentHelper(servicePath);
}
@Override
@Nonnull
public
CustomerSupplierIndustryTextByKeyFluentHelper
getCustomerSupplierIndustryTextByKey( final String language, final String industry )
{
return new CustomerSupplierIndustryTextByKeyFluentHelper(servicePath, language, industry);
}
}