
com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultSupplierActivityService 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.util.UUID;
import javax.annotation.Nonnull;
import javax.inject.Named;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.supplieractivity.SuplrActyDescription;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.supplieractivity.SuplrActyDescriptionByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.supplieractivity.SuplrActyDescriptionCreateFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.supplieractivity.SuplrActyDescriptionFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.supplieractivity.SuplrActyDescriptionUpdateFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.supplieractivity.SuplrActyParticipant;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.supplieractivity.SuplrActyParticipantByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.supplieractivity.SuplrActyParticipantCreateFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.supplieractivity.SuplrActyParticipantDeleteFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.supplieractivity.SuplrActyParticipantFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.supplieractivity.SuplrActyParticipantUpdateFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.supplieractivity.SuplrActyPurchaserResp;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.supplieractivity.SuplrActyPurchaserRespByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.supplieractivity.SuplrActyPurchaserRespFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.supplieractivity.SuplrActyPurchaserRespUpdateFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.supplieractivity.SuplrActySupplier;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.supplieractivity.SuplrActySupplierByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.supplieractivity.SuplrActySupplierCreateFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.supplieractivity.SuplrActySupplierDeleteFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.supplieractivity.SuplrActySupplierFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.supplieractivity.SuplrActySupplierUpdateFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.supplieractivity.SupplierActivity;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.supplieractivity.SupplierActivityByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.supplieractivity.SupplierActivityCreateFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.supplieractivity.SupplierActivityDeleteFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.supplieractivity.SupplierActivityFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.supplieractivity.SupplierActivityUpdateFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.supplieractivity.batch.DefaultSupplierActivityServiceBatch;
/**
*
* This service enables a remote system to create, read and change supplier activities from / in the SAP S/4HANA tenant.
*
*
*
* Reference: SAP
* API Business Hub
*
* Details:
*
*
* OData Service:
* API_SUPPLIER_ACTIVITY_SRV
*
*
* API Version:
* 1
*
*
* Communication Scenario:
* Supplier Activity Integration (SAP_COM_0137)
*
*
* Scope Items:
* Business Partner for Treasury and Risk Management
* (19C)
*
*
* API Business Object:
* EXC_SUPPLIERACTIVITY
*
*
*
*/
@Named( "com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultSupplierActivityService" )
public class DefaultSupplierActivityService implements SupplierActivityService
{
@Nonnull
private final String servicePath;
/**
* Creates a service using {@link SupplierActivityService#DEFAULT_SERVICE_PATH} to send the requests.
*
*/
public DefaultSupplierActivityService()
{
servicePath = SupplierActivityService.DEFAULT_SERVICE_PATH;
}
/**
* Creates a service using the provided service path to send the requests.
*
* Used by the fluent {@link #withServicePath(String)} method.
*
*/
private DefaultSupplierActivityService( @Nonnull final String servicePath )
{
this.servicePath = servicePath;
}
@Override
@Nonnull
public DefaultSupplierActivityService withServicePath( @Nonnull final String servicePath )
{
return new DefaultSupplierActivityService(servicePath);
}
/**
* {@inheritDoc}
*
*/
@Override
@Nonnull
public DefaultSupplierActivityServiceBatch batch()
{
return new DefaultSupplierActivityServiceBatch(this);
}
@Override
@Nonnull
public SuplrActyDescriptionFluentHelper getAllSuplrActyDescription()
{
return new SuplrActyDescriptionFluentHelper(servicePath);
}
@Override
@Nonnull
public
SuplrActyDescriptionByKeyFluentHelper
getSuplrActyDescriptionByKey( final UUID suplrActyUUID, final String language )
{
return new SuplrActyDescriptionByKeyFluentHelper(servicePath, suplrActyUUID, language);
}
@Override
@Nonnull
public SuplrActyDescriptionCreateFluentHelper createSuplrActyDescription(
@Nonnull final SuplrActyDescription suplrActyDescription )
{
return new SuplrActyDescriptionCreateFluentHelper(servicePath, suplrActyDescription);
}
@Override
@Nonnull
public SuplrActyDescriptionUpdateFluentHelper updateSuplrActyDescription(
@Nonnull final SuplrActyDescription suplrActyDescription )
{
return new SuplrActyDescriptionUpdateFluentHelper(servicePath, suplrActyDescription);
}
@Override
@Nonnull
public SuplrActyParticipantFluentHelper getAllSuplrActyParticipant()
{
return new SuplrActyParticipantFluentHelper(servicePath);
}
@Override
@Nonnull
public SuplrActyParticipantByKeyFluentHelper getSuplrActyParticipantByKey( final UUID suplrActyPartyUUID )
{
return new SuplrActyParticipantByKeyFluentHelper(servicePath, suplrActyPartyUUID);
}
@Override
@Nonnull
public SuplrActyParticipantCreateFluentHelper createSuplrActyParticipant(
@Nonnull final SuplrActyParticipant suplrActyParticipant )
{
return new SuplrActyParticipantCreateFluentHelper(servicePath, suplrActyParticipant);
}
@Override
@Nonnull
public SuplrActyParticipantUpdateFluentHelper updateSuplrActyParticipant(
@Nonnull final SuplrActyParticipant suplrActyParticipant )
{
return new SuplrActyParticipantUpdateFluentHelper(servicePath, suplrActyParticipant);
}
@Override
@Nonnull
public SuplrActyParticipantDeleteFluentHelper deleteSuplrActyParticipant(
@Nonnull final SuplrActyParticipant suplrActyParticipant )
{
return new SuplrActyParticipantDeleteFluentHelper(servicePath, suplrActyParticipant);
}
@Override
@Nonnull
public SuplrActyPurchaserRespFluentHelper getAllSuplrActyPurchaserResp()
{
return new SuplrActyPurchaserRespFluentHelper(servicePath);
}
@Override
@Nonnull
public SuplrActyPurchaserRespByKeyFluentHelper getSuplrActyPurchaserRespByKey( final UUID suplrActyPartyUUID )
{
return new SuplrActyPurchaserRespByKeyFluentHelper(servicePath, suplrActyPartyUUID);
}
@Override
@Nonnull
public SuplrActyPurchaserRespUpdateFluentHelper updateSuplrActyPurchaserResp(
@Nonnull final SuplrActyPurchaserResp suplrActyPurchaserResp )
{
return new SuplrActyPurchaserRespUpdateFluentHelper(servicePath, suplrActyPurchaserResp);
}
@Override
@Nonnull
public SuplrActySupplierFluentHelper getAllSuplrActySupplier()
{
return new SuplrActySupplierFluentHelper(servicePath);
}
@Override
@Nonnull
public SuplrActySupplierByKeyFluentHelper getSuplrActySupplierByKey( final UUID suplrActyPartyUUID )
{
return new SuplrActySupplierByKeyFluentHelper(servicePath, suplrActyPartyUUID);
}
@Override
@Nonnull
public SuplrActySupplierCreateFluentHelper createSuplrActySupplier(
@Nonnull final SuplrActySupplier suplrActySupplier )
{
return new SuplrActySupplierCreateFluentHelper(servicePath, suplrActySupplier);
}
@Override
@Nonnull
public SuplrActySupplierUpdateFluentHelper updateSuplrActySupplier(
@Nonnull final SuplrActySupplier suplrActySupplier )
{
return new SuplrActySupplierUpdateFluentHelper(servicePath, suplrActySupplier);
}
@Override
@Nonnull
public SuplrActySupplierDeleteFluentHelper deleteSuplrActySupplier(
@Nonnull final SuplrActySupplier suplrActySupplier )
{
return new SuplrActySupplierDeleteFluentHelper(servicePath, suplrActySupplier);
}
@Override
@Nonnull
public SupplierActivityFluentHelper getAllSupplierActivity()
{
return new SupplierActivityFluentHelper(servicePath);
}
@Override
@Nonnull
public SupplierActivityByKeyFluentHelper getSupplierActivityByKey( final UUID suplrActyUUID )
{
return new SupplierActivityByKeyFluentHelper(servicePath, suplrActyUUID);
}
@Override
@Nonnull
public SupplierActivityCreateFluentHelper createSupplierActivity( @Nonnull final SupplierActivity supplierActivity )
{
return new SupplierActivityCreateFluentHelper(servicePath, supplierActivity);
}
@Override
@Nonnull
public SupplierActivityUpdateFluentHelper updateSupplierActivity( @Nonnull final SupplierActivity supplierActivity )
{
return new SupplierActivityUpdateFluentHelper(servicePath, supplierActivity);
}
@Override
@Nonnull
public SupplierActivityDeleteFluentHelper deleteSupplierActivity( @Nonnull final SupplierActivity supplierActivity )
{
return new SupplierActivityDeleteFluentHelper(servicePath, supplierActivity);
}
}