
com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultInspectionPlanService 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.inspectionplan.InspPlanMaterialAssgmt;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.inspectionplan.InspPlanMaterialAssgmtByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.inspectionplan.InspPlanMaterialAssgmtCreateFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.inspectionplan.InspPlanMaterialAssgmtDeleteFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.inspectionplan.InspPlanMaterialAssgmtFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.inspectionplan.InspPlanMaterialAssgmtUpdateFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.inspectionplan.InspPlanOpCharacteristic;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.inspectionplan.InspPlanOpCharacteristicByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.inspectionplan.InspPlanOpCharacteristicCreateFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.inspectionplan.InspPlanOpCharacteristicDeleteFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.inspectionplan.InspPlanOpCharacteristicFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.inspectionplan.InspPlanOpCharacteristicUpdateFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.inspectionplan.InspPlanOperation;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.inspectionplan.InspPlanOperationByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.inspectionplan.InspPlanOperationCreateFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.inspectionplan.InspPlanOperationDeleteFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.inspectionplan.InspPlanOperationFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.inspectionplan.InspPlanOperationUpdateFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.inspectionplan.InspectionPlan;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.inspectionplan.InspectionPlanByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.inspectionplan.InspectionPlanCreateFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.inspectionplan.InspectionPlanDeleteFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.inspectionplan.InspectionPlanFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.inspectionplan.InspectionPlanUpdateFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.inspectionplan.batch.DefaultInspectionPlanServiceBatch;
/**
*
* This service enables you to create, read, update, and delete inspection plans in the SAP S/4HANA Cloud system.
* Inspection plans help you to describe how a quality inspection of one or several materials is to take place.
*
*
*
* Reference: SAP
* API Business Hub
*
* Details:
*
*
* OData Service:
* API_INSPECTIONPLAN_SRV
*
*
* API Version:
* 1
*
*
* Communication Scenario:
* Inspection Master Data Integration (SAP_COM_0110)
*
*
* Scope Items:
* Quality Management in Discrete Manufacturing (1E1),
* Quality Management in Procurement (1FM),
* Quality Management in Sales (1MP),
* Quality Management in Stock Handling (1MR),
* Nonconformance Management (2QN)
*
*
* Authentication Methods:
* Basic, x509, OAuth2
*
*
* Business Object:
* InspectionPlan
*
*
*
*/
@Named( "com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultInspectionPlanService" )
public class DefaultInspectionPlanService implements InspectionPlanService
{
@Nonnull
private final String servicePath;
/**
* Creates a service using {@link InspectionPlanService#DEFAULT_SERVICE_PATH} to send the requests.
*
*/
public DefaultInspectionPlanService()
{
servicePath = InspectionPlanService.DEFAULT_SERVICE_PATH;
}
/**
* Creates a service using the provided service path to send the requests.
*
* Used by the fluent {@link #withServicePath(String)} method.
*
*/
private DefaultInspectionPlanService( @Nonnull final String servicePath )
{
this.servicePath = servicePath;
}
@Override
@Nonnull
public DefaultInspectionPlanService withServicePath( @Nonnull final String servicePath )
{
return new DefaultInspectionPlanService(servicePath);
}
/**
* {@inheritDoc}
*
*/
@Override
@Nonnull
public DefaultInspectionPlanServiceBatch batch()
{
return new DefaultInspectionPlanServiceBatch(this);
}
@Override
@Nonnull
public InspectionPlanFluentHelper getAllInspectionPlan()
{
return new InspectionPlanFluentHelper(servicePath);
}
@Override
@Nonnull
public InspectionPlanByKeyFluentHelper getInspectionPlanByKey(
final String inspectionPlanGroup,
final String inspectionPlan,
final String inspectionPlanInternalVersion )
{
return new InspectionPlanByKeyFluentHelper(
servicePath,
inspectionPlanGroup,
inspectionPlan,
inspectionPlanInternalVersion);
}
@Override
@Nonnull
public InspectionPlanCreateFluentHelper createInspectionPlan( @Nonnull final InspectionPlan inspectionPlan )
{
return new InspectionPlanCreateFluentHelper(servicePath, inspectionPlan);
}
@Override
@Nonnull
public InspectionPlanUpdateFluentHelper updateInspectionPlan( @Nonnull final InspectionPlan inspectionPlan )
{
return new InspectionPlanUpdateFluentHelper(servicePath, inspectionPlan);
}
@Override
@Nonnull
public InspectionPlanDeleteFluentHelper deleteInspectionPlan( @Nonnull final InspectionPlan inspectionPlan )
{
return new InspectionPlanDeleteFluentHelper(servicePath, inspectionPlan);
}
@Override
@Nonnull
public InspPlanMaterialAssgmtFluentHelper getAllInspPlanMaterialAssgmt()
{
return new InspPlanMaterialAssgmtFluentHelper(servicePath);
}
@Override
@Nonnull
public InspPlanMaterialAssgmtByKeyFluentHelper getInspPlanMaterialAssgmtByKey(
final String material,
final String plant,
final String inspectionPlanGroup,
final String inspectionPlan,
final String inspPlanMatlAssignment,
final String inspPlanMatlAssgmtIntVersion )
{
return new InspPlanMaterialAssgmtByKeyFluentHelper(
servicePath,
material,
plant,
inspectionPlanGroup,
inspectionPlan,
inspPlanMatlAssignment,
inspPlanMatlAssgmtIntVersion);
}
@Override
@Nonnull
public InspPlanMaterialAssgmtCreateFluentHelper createInspPlanMaterialAssgmt(
@Nonnull final InspPlanMaterialAssgmt inspPlanMaterialAssgmt )
{
return new InspPlanMaterialAssgmtCreateFluentHelper(servicePath, inspPlanMaterialAssgmt);
}
@Override
@Nonnull
public InspPlanMaterialAssgmtUpdateFluentHelper updateInspPlanMaterialAssgmt(
@Nonnull final InspPlanMaterialAssgmt inspPlanMaterialAssgmt )
{
return new InspPlanMaterialAssgmtUpdateFluentHelper(servicePath, inspPlanMaterialAssgmt);
}
@Override
@Nonnull
public InspPlanMaterialAssgmtDeleteFluentHelper deleteInspPlanMaterialAssgmt(
@Nonnull final InspPlanMaterialAssgmt inspPlanMaterialAssgmt )
{
return new InspPlanMaterialAssgmtDeleteFluentHelper(servicePath, inspPlanMaterialAssgmt);
}
@Override
@Nonnull
public InspPlanOpCharacteristicFluentHelper getAllInspPlanOpCharacteristic()
{
return new InspPlanOpCharacteristicFluentHelper(servicePath);
}
@Override
@Nonnull
public InspPlanOpCharacteristicByKeyFluentHelper getInspPlanOpCharacteristicByKey(
final String inspectionPlanGroup,
final String bOOOperationInternalID,
final String bOOCharacteristic,
final String bOOCharacteristicVersion,
final String bOOOpInternalVersionCounter,
final String inspectionPlanInternalVersion,
final String inspectionPlan )
{
return new InspPlanOpCharacteristicByKeyFluentHelper(
servicePath,
inspectionPlanGroup,
bOOOperationInternalID,
bOOCharacteristic,
bOOCharacteristicVersion,
bOOOpInternalVersionCounter,
inspectionPlanInternalVersion,
inspectionPlan);
}
@Override
@Nonnull
public InspPlanOpCharacteristicCreateFluentHelper createInspPlanOpCharacteristic(
@Nonnull final InspPlanOpCharacteristic inspPlanOpCharacteristic )
{
return new InspPlanOpCharacteristicCreateFluentHelper(servicePath, inspPlanOpCharacteristic);
}
@Override
@Nonnull
public InspPlanOpCharacteristicUpdateFluentHelper updateInspPlanOpCharacteristic(
@Nonnull final InspPlanOpCharacteristic inspPlanOpCharacteristic )
{
return new InspPlanOpCharacteristicUpdateFluentHelper(servicePath, inspPlanOpCharacteristic);
}
@Override
@Nonnull
public InspPlanOpCharacteristicDeleteFluentHelper deleteInspPlanOpCharacteristic(
@Nonnull final InspPlanOpCharacteristic inspPlanOpCharacteristic )
{
return new InspPlanOpCharacteristicDeleteFluentHelper(servicePath, inspPlanOpCharacteristic);
}
@Override
@Nonnull
public InspPlanOperationFluentHelper getAllInspPlanOperation()
{
return new InspPlanOperationFluentHelper(servicePath);
}
@Override
@Nonnull
public InspPlanOperationByKeyFluentHelper getInspPlanOperationByKey(
final String inspectionPlanGroup,
final String bOOOperationInternalID,
final String inspectionPlanInternalVersion,
final String bOOOpInternalVersionCounter,
final String inspectionPlan )
{
return new InspPlanOperationByKeyFluentHelper(
servicePath,
inspectionPlanGroup,
bOOOperationInternalID,
inspectionPlanInternalVersion,
bOOOpInternalVersionCounter,
inspectionPlan);
}
@Override
@Nonnull
public InspPlanOperationCreateFluentHelper createInspPlanOperation(
@Nonnull final InspPlanOperation inspPlanOperation )
{
return new InspPlanOperationCreateFluentHelper(servicePath, inspPlanOperation);
}
@Override
@Nonnull
public InspPlanOperationUpdateFluentHelper updateInspPlanOperation(
@Nonnull final InspPlanOperation inspPlanOperation )
{
return new InspPlanOperationUpdateFluentHelper(servicePath, inspPlanOperation);
}
@Override
@Nonnull
public InspPlanOperationDeleteFluentHelper deleteInspPlanOperation(
@Nonnull final InspPlanOperation inspPlanOperation )
{
return new InspPlanOperationDeleteFluentHelper(servicePath, inspPlanOperation);
}
}