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.Loggerloggerprivate static com.fasterxml.jackson.databind.ObjectMappermapperprivate MongoStorageServicestorageService
-
Constructor Summary
Constructors Constructor Description DocumentHandlerServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleAddDocument(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)voidhandleRemoveDocument(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:DocumentHandlerServiceThis method does handle added document.- Specified by:
handleAddDocumentin interfaceDocumentHandlerService- Parameters:
request- of bean request contains an instructions for added document
-
handleRemoveDocument
public void handleRemoveDocument(DocumentRequestMessage request)
Description copied from interface:DocumentHandlerServiceThis method does handle removed document.- Specified by:
handleRemoveDocumentin 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:
handleFindDocumentResponsein interfaceDocumentHandlerService
-
handleAddDocumentResponse
public java.util.Map<java.lang.String,java.lang.Object> handleAddDocumentResponse(DocumentRequestMessage request)
- Specified by:
handleAddDocumentResponsein interfaceDocumentHandlerService
-
handleRemoveDocumentResponse
public java.util.Map<java.lang.String,java.lang.Object> handleRemoveDocumentResponse(DocumentRequestMessage request)
- Specified by:
handleRemoveDocumentResponsein interfaceDocumentHandlerService
-
-