
com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultFinancialPlanningEntryItemService 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.financialplanningentryitem.CompanyCodeByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.financialplanningentryitem.CompanyCodeFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.financialplanningentryitem.CostCenterByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.financialplanningentryitem.CostCenterFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.financialplanningentryitem.FinPlanningEntryItemByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.financialplanningentryitem.FinPlanningEntryItemFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.financialplanningentryitem.ProfitCenterByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.financialplanningentryitem.ProfitCenterFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.financialplanningentryitem.batch.DefaultFinancialPlanningEntryItemServiceBatch;
/**
*
* This service can be consumed by external applications to integrate with financial plan data processing. The service
* is designed to provide all financial plan data and detail-level information about assigned company code, cost center
* and profit center.
*
*
*
* Reference: SAP
* API Business Hub
*
* Details:
*
*
* OData Service:
* API_FINPLANNINGENTRYITEM_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.DefaultFinancialPlanningEntryItemService" )
public class DefaultFinancialPlanningEntryItemService implements FinancialPlanningEntryItemService
{
@Nonnull
private final String servicePath;
/**
* Creates a service using {@link FinancialPlanningEntryItemService#DEFAULT_SERVICE_PATH} to send the requests.
*
*/
public DefaultFinancialPlanningEntryItemService()
{
servicePath = FinancialPlanningEntryItemService.DEFAULT_SERVICE_PATH;
}
/**
* Creates a service using the provided service path to send the requests.
*
* Used by the fluent {@link #withServicePath(String)} method.
*
*/
private DefaultFinancialPlanningEntryItemService( @Nonnull final String servicePath )
{
this.servicePath = servicePath;
}
@Override
@Nonnull
public DefaultFinancialPlanningEntryItemService withServicePath( @Nonnull final String servicePath )
{
return new DefaultFinancialPlanningEntryItemService(servicePath);
}
/**
* {@inheritDoc}
*
*/
@Override
@Nonnull
public DefaultFinancialPlanningEntryItemServiceBatch batch()
{
return new DefaultFinancialPlanningEntryItemServiceBatch(this);
}
@Override
@Nonnull
public CompanyCodeFluentHelper getAllCompanyCode()
{
return new CompanyCodeFluentHelper(servicePath);
}
@Override
@Nonnull
public CompanyCodeByKeyFluentHelper getCompanyCodeByKey( final String companyCode )
{
return new CompanyCodeByKeyFluentHelper(servicePath, companyCode);
}
@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 FinPlanningEntryItemFluentHelper getAllFinPlanningEntryItem()
{
return new FinPlanningEntryItemFluentHelper(servicePath);
}
@Override
@Nonnull
public FinPlanningEntryItemByKeyFluentHelper getFinPlanningEntryItemByKey( final String iD )
{
return new FinPlanningEntryItemByKeyFluentHelper(servicePath, iD);
}
@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);
}
}