All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultDefectClassService 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.defectclass.DefectClassByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.defectclass.DefectClassFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.defectclass.DefectClassTextByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.defectclass.DefectClassTextFluentHelper;

/**
 * 

* This service enables you to read defect classes and their language-dependent texts from the SAP S/4HANA Cloud system. * The defect class in quality management is based on a qualitative defect valuation according to impact, for example, * critical defect or minor defect. *

*

* Business * Documentation *

*

* Reference: SAP API * Business Hub *

*

Details:

* * * * * * * * * * * * * * * * * * * * * * * * * *
OData Service:API_DEFECTCLASS_SRV
API Version:1
Communication Scenario:Defect Processing Integration (SAP_COM_0153)
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:Defect
* */ @Named( "com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultDefectClassService" ) public class DefaultDefectClassService implements DefectClassService { @Nonnull private final String servicePath; /** * Creates a service using {@link DefectClassService#DEFAULT_SERVICE_PATH} to send the requests. * */ public DefaultDefectClassService() { servicePath = DefectClassService.DEFAULT_SERVICE_PATH; } /** * Creates a service using the provided service path to send the requests. *

* Used by the fluent {@link #withServicePath(String)} method. * */ private DefaultDefectClassService( @Nonnull final String servicePath ) { this.servicePath = servicePath; } @Override @Nonnull public DefaultDefectClassService withServicePath( @Nonnull final String servicePath ) { return new DefaultDefectClassService(servicePath); } @Override @Nonnull public DefectClassFluentHelper getAllDefectClass() { return new DefectClassFluentHelper(servicePath); } @Override @Nonnull public DefectClassByKeyFluentHelper getDefectClassByKey( final String defectClass ) { return new DefectClassByKeyFluentHelper(servicePath, defectClass); } @Override @Nonnull public DefectClassTextFluentHelper getAllDefectClassText() { return new DefectClassTextFluentHelper(servicePath); } @Override @Nonnull public DefectClassTextByKeyFluentHelper getDefectClassTextByKey( final String defectClass, final String language ) { return new DefectClassTextByKeyFluentHelper(servicePath, defectClass, language); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy