Interface OMSAService<T extends SAPOMSARequest,S extends SAPOMSAResponse>
- Type Parameters:
T- RequestS- 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 TypeMethodDescriptioncallOMSA(org.springframework.http.HttpEntity<T> entity, ConsumedDestinationModel destinationModel, String url, org.springframework.http.HttpMethod method) Calls the OMSA APIdefault org.springframework.http.HttpEntity<T>createHttpEntity(T request) Creates HTTP entity for OMSA API callsdefault StringgetProductCode(ProductModel product) get the sap product code from the productbooleanisEnabled(BaseStoreModel store) 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- entitydestinationModel- destinationModelurl- urlmethod- method- Returns:
- boolean
- Throws:
OMSAException- OMSAException
-
getProductCode
get the sap product code from the product- Parameters:
product- product- Returns:
- String sapProductId
-
isEnabled
Checks if OMSA falgs are enabled- Parameters:
store- store- Returns:
- boolean
-
createHttpEntity
Creates HTTP entity for OMSA API calls- Parameters:
request- request- Returns:
- HttpEntity
-