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

com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultDefectCodeAndCodeGroupService 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.defectcodeandcodegroup.DefectCodeByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.defectcodeandcodegroup.DefectCodeFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.defectcodeandcodegroup.DefectCodeGroupByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.defectcodeandcodegroup.DefectCodeGroupFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.defectcodeandcodegroup.DefectCodeGroupTextByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.defectcodeandcodegroup.DefectCodeGroupTextFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.defectcodeandcodegroup.DefectCodeTextByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.defectcodeandcodegroup.DefectCodeTextFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.defectcodeandcodegroup.batch.DefaultDefectCodeAndCodeGroupServiceBatch;

/**
 * 

* This service enables you to read defect codes and code groups and their language-dependent texts from the SAP S/4HANA * Cloud system. The combination of defect code group and code uniquely identifies the type of the defect in quality * management in a coded format. *

*

* Business * Documentation *

*

* Reference: SAP API * Business Hub *

*

Details:

* * * * * * * * * * * * * * * * * * * * * * * * * *
OData Service:API_DEFECTCODE_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.DefaultDefectCodeAndCodeGroupService" ) public class DefaultDefectCodeAndCodeGroupService implements DefectCodeAndCodeGroupService { @Nonnull private final String servicePath; /** * Creates a service using {@link DefectCodeAndCodeGroupService#DEFAULT_SERVICE_PATH} to send the requests. * */ public DefaultDefectCodeAndCodeGroupService() { servicePath = DefectCodeAndCodeGroupService.DEFAULT_SERVICE_PATH; } /** * Creates a service using the provided service path to send the requests. *

* Used by the fluent {@link #withServicePath(String)} method. * */ private DefaultDefectCodeAndCodeGroupService( @Nonnull final String servicePath ) { this.servicePath = servicePath; } @Override @Nonnull public DefaultDefectCodeAndCodeGroupService withServicePath( @Nonnull final String servicePath ) { return new DefaultDefectCodeAndCodeGroupService(servicePath); } /** * {@inheritDoc} * */ @Override @Nonnull public DefaultDefectCodeAndCodeGroupServiceBatch batch() { return new DefaultDefectCodeAndCodeGroupServiceBatch(this); } @Override @Nonnull public DefectCodeFluentHelper getAllDefectCode() { return new DefectCodeFluentHelper(servicePath); } @Override @Nonnull public DefectCodeByKeyFluentHelper getDefectCodeByKey( final String defectCodeGroup, final String defectCode ) { return new DefectCodeByKeyFluentHelper(servicePath, defectCodeGroup, defectCode); } @Override @Nonnull public DefectCodeGroupFluentHelper getAllDefectCodeGroup() { return new DefectCodeGroupFluentHelper(servicePath); } @Override @Nonnull public DefectCodeGroupByKeyFluentHelper getDefectCodeGroupByKey( final String defectCodeGroup ) { return new DefectCodeGroupByKeyFluentHelper(servicePath, defectCodeGroup); } @Override @Nonnull public DefectCodeGroupTextFluentHelper getAllDefectCodeGroupText() { return new DefectCodeGroupTextFluentHelper(servicePath); } @Override @Nonnull public DefectCodeGroupTextByKeyFluentHelper getDefectCodeGroupTextByKey( final String defectCodeGroup, final String language ) { return new DefectCodeGroupTextByKeyFluentHelper(servicePath, defectCodeGroup, language); } @Override @Nonnull public DefectCodeTextFluentHelper getAllDefectCodeText() { return new DefectCodeTextFluentHelper(servicePath); } @Override @Nonnull public DefectCodeTextByKeyFluentHelper getDefectCodeTextByKey( final String defectCodeGroup, final String defectCode, final String language ) { return new DefectCodeTextByKeyFluentHelper(servicePath, defectCodeGroup, defectCode, language); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy