Class DocumentHandlerServiceImpl
- java.lang.Object
-
- co.mastermindcms.framework.services.DocumentHandlerServiceImpl
-
- All Implemented Interfaces:
DocumentHandlerService
,java.io.Serializable
@Service public class DocumentHandlerServiceImpl extends java.lang.Object implements DocumentHandlerService
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static org.slf4j.Logger
logger
private static com.fasterxml.jackson.databind.ObjectMapper
mapper
private MongoStorageService
storageService
-
Constructor Summary
Constructors Constructor Description DocumentHandlerServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleAddDocument(DocumentRequestMessage request)
This method does handle added document.java.util.Map<java.lang.String,java.lang.Object>
handleAddDocumentResponse(DocumentRequestMessage request)
java.util.Map<java.lang.String,java.lang.Object>
handleFindDocumentResponse(DocumentRequestMessage request)
void
handleRemoveDocument(DocumentRequestMessage request)
This method does handle removed document.java.util.Map<java.lang.String,java.lang.Object>
handleRemoveDocumentResponse(DocumentRequestMessage request)
-
-
-
Field Detail
-
logger
private static final org.slf4j.Logger logger
-
mapper
private static final com.fasterxml.jackson.databind.ObjectMapper mapper
-
storageService
@Autowired private MongoStorageService storageService
-
-
Method Detail
-
handleAddDocument
public void handleAddDocument(DocumentRequestMessage request)
Description copied from interface:DocumentHandlerService
This method does handle added document.- Specified by:
handleAddDocument
in interfaceDocumentHandlerService
- Parameters:
request
- of bean request contains an instructions for added document
-
handleRemoveDocument
public void handleRemoveDocument(DocumentRequestMessage request)
Description copied from interface:DocumentHandlerService
This method does handle removed document.- Specified by:
handleRemoveDocument
in interfaceDocumentHandlerService
- Parameters:
request
- of bean request contains an instructions for removed document
-
handleFindDocumentResponse
public java.util.Map<java.lang.String,java.lang.Object> handleFindDocumentResponse(DocumentRequestMessage request)
- Specified by:
handleFindDocumentResponse
in interfaceDocumentHandlerService
-
handleAddDocumentResponse
public java.util.Map<java.lang.String,java.lang.Object> handleAddDocumentResponse(DocumentRequestMessage request)
- Specified by:
handleAddDocumentResponse
in interfaceDocumentHandlerService
-
handleRemoveDocumentResponse
public java.util.Map<java.lang.String,java.lang.Object> handleRemoveDocumentResponse(DocumentRequestMessage request)
- Specified by:
handleRemoveDocumentResponse
in interfaceDocumentHandlerService
-
-