
com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultServiceOrderService 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.serviceorder.ServiceOrder;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderConfirmationByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderConfirmationFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderCreateFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderDefect;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderDefectByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderDefectCreateFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderDefectDeleteFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderDefectFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderDefectUpdateFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderItem;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderItemByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderItemConfirmationByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderItemConfirmationFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderItemCreateFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderItemDeleteFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderItemFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderItemPriceElement;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderItemPriceElementByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderItemPriceElementCreateFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderItemPriceElementFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderItemPriceElementUpdateFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderItemRefObject;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderItemRefObjectByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderItemRefObjectCreateFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderItemRefObjectDeleteFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderItemRefObjectFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderItemText;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderItemTextByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderItemTextCreateFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderItemTextDeleteFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderItemTextFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderItemTextUpdateFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderItemUpdateFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderPersonResp;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderPersonRespByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderPersonRespCreateFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderPersonRespDeleteFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderPersonRespFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderPersonRespUpdateFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderPriceElement;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderPriceElementByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderPriceElementCreateFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderPriceElementFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderPriceElementUpdateFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderRefObject;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderRefObjectByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderRefObjectCreateFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderRefObjectDeleteFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderRefObjectFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderText;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderTextByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderTextCreateFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderTextDeleteFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderTextFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderTextUpdateFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.ServiceOrderUpdateFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.serviceorder.batch.DefaultServiceOrderServiceBatch;
/**
*
* You can use this service to integrate external applications with service order processing in Service in SAP S/4HANA
* Cloud. In each API call, you can use the following operations: - Retrieve service orders. - Create service orders.
* Note: You must use “deep insert” requests (a header plus the following entities: header person responsible, header
* pricing element, header reference object, header defect, header text and item). - Create new items for existing
* service orders. - Create an item reference object, item pricing element and an item text for existing service orders
* items. - Update the header, header person responsible, header pricing element, header defect, header text, item, item
* pricing element and item text for existing service orders. - Delete the header person responsible, header reference
* object, header defect, header text, item, item reference object and item text for existing service orders. .
*
*
*
* Reference: SAP API
* Business Hub
*
* Details:
*
*
* OData Service:
* API_SERVICE_ORDER_SRV
*
*
* API Version:
* 1
*
*
* Communication Scenario:
* Service Order Integration (SAP_COM_0350)
*
*
* Scope Items:
* Service Order Management and Monitoring (3D2)
*
*
* Authentication Methods:
* Basic
*
*
*
*/
@Named( "com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultServiceOrderService" )
public class DefaultServiceOrderService implements ServiceOrderService
{
@Nonnull
private final String servicePath;
/**
* Creates a service using {@link ServiceOrderService#DEFAULT_SERVICE_PATH} to send the requests.
*
*/
public DefaultServiceOrderService()
{
servicePath = ServiceOrderService.DEFAULT_SERVICE_PATH;
}
/**
* Creates a service using the provided service path to send the requests.
*
* Used by the fluent {@link #withServicePath(String)} method.
*
*/
private DefaultServiceOrderService( @Nonnull final String servicePath )
{
this.servicePath = servicePath;
}
@Override
@Nonnull
public DefaultServiceOrderService withServicePath( @Nonnull final String servicePath )
{
return new DefaultServiceOrderService(servicePath);
}
/**
* {@inheritDoc}
*
*/
@Override
@Nonnull
public DefaultServiceOrderServiceBatch batch()
{
return new DefaultServiceOrderServiceBatch(this);
}
@Override
@Nonnull
public ServiceOrderFluentHelper getAllServiceOrder()
{
return new ServiceOrderFluentHelper(servicePath);
}
@Override
@Nonnull
public ServiceOrderByKeyFluentHelper getServiceOrderByKey( final String serviceOrder )
{
return new ServiceOrderByKeyFluentHelper(servicePath, serviceOrder);
}
@Override
@Nonnull
public ServiceOrderCreateFluentHelper createServiceOrder( @Nonnull final ServiceOrder serviceOrder )
{
return new ServiceOrderCreateFluentHelper(servicePath, serviceOrder);
}
@Override
@Nonnull
public ServiceOrderUpdateFluentHelper updateServiceOrder( @Nonnull final ServiceOrder serviceOrder )
{
return new ServiceOrderUpdateFluentHelper(servicePath, serviceOrder);
}
@Override
@Nonnull
public ServiceOrderConfirmationFluentHelper getAllServiceOrderConfirmation()
{
return new ServiceOrderConfirmationFluentHelper(servicePath);
}
@Override
@Nonnull
public
ServiceOrderConfirmationByKeyFluentHelper
getServiceOrderConfirmationByKey( final String serviceOrder, final String serviceConfirmation )
{
return new ServiceOrderConfirmationByKeyFluentHelper(servicePath, serviceOrder, serviceConfirmation);
}
@Override
@Nonnull
public ServiceOrderDefectFluentHelper getAllServiceOrderDefect()
{
return new ServiceOrderDefectFluentHelper(servicePath);
}
@Override
@Nonnull
public ServiceOrderDefectByKeyFluentHelper getServiceOrderDefectByKey(
final String serviceOrder,
final String srvcDocTypeDefectCodeProfType,
final Short serviceDefectSequence )
{
return new ServiceOrderDefectByKeyFluentHelper(
servicePath,
serviceOrder,
srvcDocTypeDefectCodeProfType,
serviceDefectSequence);
}
@Override
@Nonnull
public ServiceOrderDefectCreateFluentHelper createServiceOrderDefect(
@Nonnull final ServiceOrderDefect serviceOrderDefect )
{
return new ServiceOrderDefectCreateFluentHelper(servicePath, serviceOrderDefect);
}
@Override
@Nonnull
public ServiceOrderDefectUpdateFluentHelper updateServiceOrderDefect(
@Nonnull final ServiceOrderDefect serviceOrderDefect )
{
return new ServiceOrderDefectUpdateFluentHelper(servicePath, serviceOrderDefect);
}
@Override
@Nonnull
public ServiceOrderDefectDeleteFluentHelper deleteServiceOrderDefect(
@Nonnull final ServiceOrderDefect serviceOrderDefect )
{
return new ServiceOrderDefectDeleteFluentHelper(servicePath, serviceOrderDefect);
}
@Override
@Nonnull
public ServiceOrderItemFluentHelper getAllServiceOrderItem()
{
return new ServiceOrderItemFluentHelper(servicePath);
}
@Override
@Nonnull
public
ServiceOrderItemByKeyFluentHelper
getServiceOrderItemByKey( final String serviceOrder, final String serviceOrderItem )
{
return new ServiceOrderItemByKeyFluentHelper(servicePath, serviceOrder, serviceOrderItem);
}
@Override
@Nonnull
public ServiceOrderItemCreateFluentHelper createServiceOrderItem( @Nonnull final ServiceOrderItem serviceOrderItem )
{
return new ServiceOrderItemCreateFluentHelper(servicePath, serviceOrderItem);
}
@Override
@Nonnull
public ServiceOrderItemUpdateFluentHelper updateServiceOrderItem( @Nonnull final ServiceOrderItem serviceOrderItem )
{
return new ServiceOrderItemUpdateFluentHelper(servicePath, serviceOrderItem);
}
@Override
@Nonnull
public ServiceOrderItemDeleteFluentHelper deleteServiceOrderItem( @Nonnull final ServiceOrderItem serviceOrderItem )
{
return new ServiceOrderItemDeleteFluentHelper(servicePath, serviceOrderItem);
}
@Override
@Nonnull
public ServiceOrderItemConfirmationFluentHelper getAllServiceOrderItemConfirmation()
{
return new ServiceOrderItemConfirmationFluentHelper(servicePath);
}
@Override
@Nonnull
public ServiceOrderItemConfirmationByKeyFluentHelper getServiceOrderItemConfirmationByKey(
final String serviceOrder,
final String serviceOrderItem,
final String serviceConfirmation,
final String serviceConfirmationItem )
{
return new ServiceOrderItemConfirmationByKeyFluentHelper(
servicePath,
serviceOrder,
serviceOrderItem,
serviceConfirmation,
serviceConfirmationItem);
}
@Override
@Nonnull
public ServiceOrderItemPriceElementFluentHelper getAllServiceOrderItemPriceElement()
{
return new ServiceOrderItemPriceElementFluentHelper(servicePath);
}
@Override
@Nonnull
public ServiceOrderItemPriceElementByKeyFluentHelper getServiceOrderItemPriceElementByKey(
final String serviceOrder,
final String serviceOrderItem,
final String pricingProcedureStep,
final String pricingProcedureCounter )
{
return new ServiceOrderItemPriceElementByKeyFluentHelper(
servicePath,
serviceOrder,
serviceOrderItem,
pricingProcedureStep,
pricingProcedureCounter);
}
@Override
@Nonnull
public ServiceOrderItemPriceElementCreateFluentHelper createServiceOrderItemPriceElement(
@Nonnull final ServiceOrderItemPriceElement serviceOrderItemPriceElement )
{
return new ServiceOrderItemPriceElementCreateFluentHelper(servicePath, serviceOrderItemPriceElement);
}
@Override
@Nonnull
public ServiceOrderItemPriceElementUpdateFluentHelper updateServiceOrderItemPriceElement(
@Nonnull final ServiceOrderItemPriceElement serviceOrderItemPriceElement )
{
return new ServiceOrderItemPriceElementUpdateFluentHelper(servicePath, serviceOrderItemPriceElement);
}
@Override
@Nonnull
public ServiceOrderItemRefObjectFluentHelper getAllServiceOrderItemRefObject()
{
return new ServiceOrderItemRefObjectFluentHelper(servicePath);
}
@Override
@Nonnull
public ServiceOrderItemRefObjectByKeyFluentHelper getServiceOrderItemRefObjectByKey(
final String serviceOrder,
final String serviceOrderItem,
final String serviceReferenceEquipment,
final String serviceRefFunctionalLocation )
{
return new ServiceOrderItemRefObjectByKeyFluentHelper(
servicePath,
serviceOrder,
serviceOrderItem,
serviceReferenceEquipment,
serviceRefFunctionalLocation);
}
@Override
@Nonnull
public ServiceOrderItemRefObjectCreateFluentHelper createServiceOrderItemRefObject(
@Nonnull final ServiceOrderItemRefObject serviceOrderItemRefObject )
{
return new ServiceOrderItemRefObjectCreateFluentHelper(servicePath, serviceOrderItemRefObject);
}
@Override
@Nonnull
public ServiceOrderItemRefObjectDeleteFluentHelper deleteServiceOrderItemRefObject(
@Nonnull final ServiceOrderItemRefObject serviceOrderItemRefObject )
{
return new ServiceOrderItemRefObjectDeleteFluentHelper(servicePath, serviceOrderItemRefObject);
}
@Override
@Nonnull
public ServiceOrderItemTextFluentHelper getAllServiceOrderItemText()
{
return new ServiceOrderItemTextFluentHelper(servicePath);
}
@Override
@Nonnull
public ServiceOrderItemTextByKeyFluentHelper getServiceOrderItemTextByKey(
final String serviceOrder,
final String serviceOrderItem,
final String language,
final String longTextID )
{
return new ServiceOrderItemTextByKeyFluentHelper(
servicePath,
serviceOrder,
serviceOrderItem,
language,
longTextID);
}
@Override
@Nonnull
public ServiceOrderItemTextCreateFluentHelper createServiceOrderItemText(
@Nonnull final ServiceOrderItemText serviceOrderItemText )
{
return new ServiceOrderItemTextCreateFluentHelper(servicePath, serviceOrderItemText);
}
@Override
@Nonnull
public ServiceOrderItemTextUpdateFluentHelper updateServiceOrderItemText(
@Nonnull final ServiceOrderItemText serviceOrderItemText )
{
return new ServiceOrderItemTextUpdateFluentHelper(servicePath, serviceOrderItemText);
}
@Override
@Nonnull
public ServiceOrderItemTextDeleteFluentHelper deleteServiceOrderItemText(
@Nonnull final ServiceOrderItemText serviceOrderItemText )
{
return new ServiceOrderItemTextDeleteFluentHelper(servicePath, serviceOrderItemText);
}
@Override
@Nonnull
public ServiceOrderPersonRespFluentHelper getAllServiceOrderPersonResp()
{
return new ServiceOrderPersonRespFluentHelper(servicePath);
}
@Override
@Nonnull
public
ServiceOrderPersonRespByKeyFluentHelper
getServiceOrderPersonRespByKey( final String serviceOrder, final String personResponsible )
{
return new ServiceOrderPersonRespByKeyFluentHelper(servicePath, serviceOrder, personResponsible);
}
@Override
@Nonnull
public ServiceOrderPersonRespCreateFluentHelper createServiceOrderPersonResp(
@Nonnull final ServiceOrderPersonResp serviceOrderPersonResp )
{
return new ServiceOrderPersonRespCreateFluentHelper(servicePath, serviceOrderPersonResp);
}
@Override
@Nonnull
public ServiceOrderPersonRespUpdateFluentHelper updateServiceOrderPersonResp(
@Nonnull final ServiceOrderPersonResp serviceOrderPersonResp )
{
return new ServiceOrderPersonRespUpdateFluentHelper(servicePath, serviceOrderPersonResp);
}
@Override
@Nonnull
public ServiceOrderPersonRespDeleteFluentHelper deleteServiceOrderPersonResp(
@Nonnull final ServiceOrderPersonResp serviceOrderPersonResp )
{
return new ServiceOrderPersonRespDeleteFluentHelper(servicePath, serviceOrderPersonResp);
}
@Override
@Nonnull
public ServiceOrderPriceElementFluentHelper getAllServiceOrderPriceElement()
{
return new ServiceOrderPriceElementFluentHelper(servicePath);
}
@Override
@Nonnull
public ServiceOrderPriceElementByKeyFluentHelper getServiceOrderPriceElementByKey(
final String serviceOrder,
final String pricingProcedureStep,
final String pricingProcedureCounter )
{
return new ServiceOrderPriceElementByKeyFluentHelper(
servicePath,
serviceOrder,
pricingProcedureStep,
pricingProcedureCounter);
}
@Override
@Nonnull
public ServiceOrderPriceElementCreateFluentHelper createServiceOrderPriceElement(
@Nonnull final ServiceOrderPriceElement serviceOrderPriceElement )
{
return new ServiceOrderPriceElementCreateFluentHelper(servicePath, serviceOrderPriceElement);
}
@Override
@Nonnull
public ServiceOrderPriceElementUpdateFluentHelper updateServiceOrderPriceElement(
@Nonnull final ServiceOrderPriceElement serviceOrderPriceElement )
{
return new ServiceOrderPriceElementUpdateFluentHelper(servicePath, serviceOrderPriceElement);
}
@Override
@Nonnull
public ServiceOrderRefObjectFluentHelper getAllServiceOrderRefObject()
{
return new ServiceOrderRefObjectFluentHelper(servicePath);
}
@Override
@Nonnull
public ServiceOrderRefObjectByKeyFluentHelper getServiceOrderRefObjectByKey(
final String serviceOrder,
final String serviceReferenceEquipment,
final String serviceRefFunctionalLocation )
{
return new ServiceOrderRefObjectByKeyFluentHelper(
servicePath,
serviceOrder,
serviceReferenceEquipment,
serviceRefFunctionalLocation);
}
@Override
@Nonnull
public ServiceOrderRefObjectCreateFluentHelper createServiceOrderRefObject(
@Nonnull final ServiceOrderRefObject serviceOrderRefObject )
{
return new ServiceOrderRefObjectCreateFluentHelper(servicePath, serviceOrderRefObject);
}
@Override
@Nonnull
public ServiceOrderRefObjectDeleteFluentHelper deleteServiceOrderRefObject(
@Nonnull final ServiceOrderRefObject serviceOrderRefObject )
{
return new ServiceOrderRefObjectDeleteFluentHelper(servicePath, serviceOrderRefObject);
}
@Override
@Nonnull
public ServiceOrderTextFluentHelper getAllServiceOrderText()
{
return new ServiceOrderTextFluentHelper(servicePath);
}
@Override
@Nonnull
public
ServiceOrderTextByKeyFluentHelper
getServiceOrderTextByKey( final String serviceOrder, final String language, final String longTextID )
{
return new ServiceOrderTextByKeyFluentHelper(servicePath, serviceOrder, language, longTextID);
}
@Override
@Nonnull
public ServiceOrderTextCreateFluentHelper createServiceOrderText( @Nonnull final ServiceOrderText serviceOrderText )
{
return new ServiceOrderTextCreateFluentHelper(servicePath, serviceOrderText);
}
@Override
@Nonnull
public ServiceOrderTextUpdateFluentHelper updateServiceOrderText( @Nonnull final ServiceOrderText serviceOrderText )
{
return new ServiceOrderTextUpdateFluentHelper(servicePath, serviceOrderText);
}
@Override
@Nonnull
public ServiceOrderTextDeleteFluentHelper deleteServiceOrderText( @Nonnull final ServiceOrderText serviceOrderText )
{
return new ServiceOrderTextDeleteFluentHelper(servicePath, serviceOrderText);
}
}