
com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultMasterInspectionCharacteristicService 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.masterinspectioncharacteristic.InspectionSpecificationByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.masterinspectioncharacteristic.InspectionSpecificationFluentHelper;
/**
*
* This service enables you to read master inspection characteristics from the SAP S/4HANA Cloud system. A master
* inspection characteristic is a master data record that describes the quality inspection criteria for materials.
*
*
*
* Reference: SAP
* API Business Hub
*
* Details:
*
*
* OData Service:
* API_MASTERINSPCHARACTERISTIC_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:
* InspectionSpecification
*
*
*
*/
@Named( "com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultMasterInspectionCharacteristicService" )
public class DefaultMasterInspectionCharacteristicService implements MasterInspectionCharacteristicService
{
@Nonnull
private final String servicePath;
/**
* Creates a service using {@link MasterInspectionCharacteristicService#DEFAULT_SERVICE_PATH} to send the requests.
*
*/
public DefaultMasterInspectionCharacteristicService()
{
servicePath = MasterInspectionCharacteristicService.DEFAULT_SERVICE_PATH;
}
/**
* Creates a service using the provided service path to send the requests.
*
* Used by the fluent {@link #withServicePath(String)} method.
*
*/
private DefaultMasterInspectionCharacteristicService( @Nonnull final String servicePath )
{
this.servicePath = servicePath;
}
@Override
@Nonnull
public DefaultMasterInspectionCharacteristicService withServicePath( @Nonnull final String servicePath )
{
return new DefaultMasterInspectionCharacteristicService(servicePath);
}
@Override
@Nonnull
public InspectionSpecificationFluentHelper getAllInspectionSpecification()
{
return new InspectionSpecificationFluentHelper(servicePath);
}
@Override
@Nonnull
public InspectionSpecificationByKeyFluentHelper getInspectionSpecificationByKey(
final String inspectionSpecification,
final String inspectionSpecificationVersion,
final String inspectionSpecificationPlant )
{
return new InspectionSpecificationByKeyFluentHelper(
servicePath,
inspectionSpecification,
inspectionSpecificationVersion,
inspectionSpecificationPlant);
}
}