Interface OMSAService<T extends SAPOMSARequest,S extends SAPOMSAResponse>

Type Parameters:
T - Request
S - Response This is the interface containing various OMSA Service functions.
All Known Implementing Classes:
DefaultAbstractOMSAService, DefaultOMSAATPService, DefaultOMSACronJobReservationService, DefaultOMSACronJobSourcingService, DefaultOMSAReservationService, DefaultOMSASourcingService, MockOMSAService

public interface OMSAService<T extends SAPOMSARequest,S extends SAPOMSAResponse>
Javadoc comment for OMSAService
  • Method Summary

    Modifier and Type
    Method
    Description
    callOMSA(org.springframework.http.HttpEntity<T> entity, ConsumedDestinationModel destinationModel, String url, org.springframework.http.HttpMethod method)
    Calls the OMSA API
    default org.springframework.http.HttpEntity<T>
    Creates HTTP entity for OMSA API calls
    default String
    get the sap product code from the product
    boolean
    Checks if OMSA falgs are enabled
  • Method Details

    • callOMSA

      S callOMSA(org.springframework.http.HttpEntity<T> entity, ConsumedDestinationModel destinationModel, String url, org.springframework.http.HttpMethod method) throws OMSAException
      Calls the OMSA API
      Parameters:
      entity - entity
      destinationModel - destinationModel
      url - url
      method - method
      Returns:
      boolean
      Throws:
      OMSAException - OMSAException
    • getProductCode

      default String getProductCode(ProductModel product)
      get the sap product code from the product
      Parameters:
      product - product
      Returns:
      String sapProductId
    • isEnabled

      boolean isEnabled(BaseStoreModel store)
      Checks if OMSA falgs are enabled
      Parameters:
      store - store
      Returns:
      boolean
    • createHttpEntity

      default org.springframework.http.HttpEntity<T> createHttpEntity(T request)
      Creates HTTP entity for OMSA API calls
      Parameters:
      request - request
      Returns:
      HttpEntity