Class DefaultInboundRequestService
- java.lang.Object
-
- de.hybris.platform.odata2services.odata.monitoring.impl.DefaultInboundRequestService
-
- All Implemented Interfaces:
InboundRequestService
public class DefaultInboundRequestService extends java.lang.Object implements InboundRequestService
The default implementation of theInboundRequestService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classDefaultInboundRequestService.InboundRequestPartsCoordinatorReceives collections of the parts, from which anInboundRequestis created, and coordinates access to the collections in a way that after each iteration the state contains parts (batch entry, change set entry and media) related to exactly sameInboundRequest.
-
Constructor Summary
Constructors Constructor Description DefaultInboundRequestService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected UserModelfindUser(java.lang.String userId)protected ModelServicegetModelService()protected UserServicegetUserService()voidregister(InboundRequestServiceParameter parameter)Collects entities contained in the incoming request and the corresponding response, turns them intoInboundRequestand persists them.voidregister(java.util.List<RequestBatchEntity> requests, java.util.List<ResponseChangeSetEntity> responses, java.util.List<InboundRequestMediaModel> medias)Collects entities contained in the incoming request and the corresponding response, turns them intoInboundRequestand persists them.voidregister(java.util.List<RequestBatchEntity> requests, java.util.List<ResponseChangeSetEntity> responses, java.util.List<InboundRequestMediaModel> medias, HttpMethod httpMethod)Collects entities contained in the incoming request and the corresponding response, turns them intoInboundRequestand persists them.voidsetModelService(ModelService modelService)voidsetUserService(UserService userService)
-
-
-
Method Detail
-
register
public void register(java.util.List<RequestBatchEntity> requests, java.util.List<ResponseChangeSetEntity> responses, java.util.List<InboundRequestMediaModel> medias)
Description copied from interface:InboundRequestServiceCollects entities contained in the incoming request and the corresponding response, turns them intoInboundRequestand persists them.- Specified by:
registerin interfaceInboundRequestService- Parameters:
requests- information pertaining the inbound requests extracted from the requests.responses- information pertaining the inbound requests extracted from the responses.medias- request bodies for all entities contained in a request.
-
register
public void register(java.util.List<RequestBatchEntity> requests, java.util.List<ResponseChangeSetEntity> responses, java.util.List<InboundRequestMediaModel> medias, HttpMethod httpMethod)
Description copied from interface:InboundRequestServiceCollects entities contained in the incoming request and the corresponding response, turns them intoInboundRequestand persists them.- Specified by:
registerin interfaceInboundRequestService- Parameters:
requests- information pertaining the inbound requests extracted from the requests.responses- information pertaining the inbound requests extracted from the responses.medias- request bodies for all entities contained in a request.httpMethod- HTTP method used to make the request
-
register
public void register(InboundRequestServiceParameter parameter)
Description copied from interface:InboundRequestServiceCollects entities contained in the incoming request and the corresponding response, turns them intoInboundRequestand persists them.- Specified by:
registerin interfaceInboundRequestService- Parameters:
parameter- information necessary to create an InboundRequest
-
findUser
protected UserModel findUser(java.lang.String userId)
-
getModelService
protected ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
getUserService
protected UserService getUserService()
-
setUserService
public void setUserService(UserService userService)
-
-