Class BeanHandlerServiceImpl
- java.lang.Object
- 
- co.mastermindcms.framework.services.BeanHandlerServiceImpl
 
- 
- All Implemented Interfaces:
- BeanHandlerService,- java.io.Serializable
 
 @Service public class BeanHandlerServiceImpl extends java.lang.Object implements BeanHandlerService - See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description private org.springframework.context.ApplicationContextappContextprivate CommonPropertiescommonPropertiesprivate static com.fasterxml.jackson.databind.ObjectMappermapperprivate MongoStorageServicemongoStorageServiceprivate org.springframework.data.mongodb.core.MongoTemplatemongoTemplateprivate org.springframework.session.data.mongo.MongoIndexedSessionRepositorysessionRepositoryprivate UserManagementServiceuserManagementService
 - 
Constructor SummaryConstructors Constructor Description BeanHandlerServiceImpl()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetBean(java.lang.String beanId)This method returns a bean instance.java.lang.ObjectgetRepository(java.lang.String repositoryId)This method does return repository.java.lang.ObjectgetSessionBean(java.lang.String beanId)This method returns a session bean instance.private java.lang.ObjectgetSessionBeanAsObject(java.lang.String beanId)<T> ThandleBeanInvokeResponse(BeanRequestMessage request)This method does invoke to get instance of bean.<T> ThandleBeanUpdateResponse(BeanRequestMessage request)This method does update a bean and get instance of updated bean.voidhandleInvoke(BeanRequestMessage request)This method does invoke a bean methods.voidhandleRepositoryCall(RepositoryRequestMessage request)This method does repository call.<T> java.util.List<T>handleRepositoryInvoke(RepositoryRequestMessage request)This method does repository call.<T> ThandleRepositoryUpdate(RepositoryRequestMessage request)This method does repository call.voidhandleUpdate(BeanRequestMessage request)This method does update of bean.voidupdateSessionBean(java.lang.String beanId, java.lang.Object bean)This method does update of session bean.
 
- 
- 
- 
Field Detail- 
appContext@Autowired private org.springframework.context.ApplicationContext appContext 
 - 
sessionRepository@Autowired private org.springframework.session.data.mongo.MongoIndexedSessionRepository sessionRepository 
 - 
commonProperties@Autowired private CommonProperties commonProperties 
 - 
userManagementService@Autowired private UserManagementService userManagementService 
 - 
mongoStorageService@Autowired private MongoStorageService mongoStorageService 
 - 
mongoTemplate@Autowired private org.springframework.data.mongodb.core.MongoTemplate mongoTemplate 
 - 
mapperprivate static final com.fasterxml.jackson.databind.ObjectMapper mapper 
 
- 
 - 
Method Detail- 
getRepositorypublic java.lang.Object getRepository(java.lang.String repositoryId) Description copied from interface:BeanHandlerServiceThis method does return repository.- Specified by:
- getRepositoryin interface- BeanHandlerService
- Parameters:
- repositoryId- identification bean, which will be returned
- Returns:
- object
 
 - 
getBeanpublic java.lang.Object getBean(java.lang.String beanId) Description copied from interface:BeanHandlerServiceThis method returns a bean instance.- Specified by:
- getBeanin interface- BeanHandlerService
- Parameters:
- beanId- identification bean, which will be returned
- Returns:
- a bean instance
 
 - 
getSessionBeanpublic java.lang.Object getSessionBean(java.lang.String beanId) Description copied from interface:BeanHandlerServiceThis method returns a session bean instance.- Specified by:
- getSessionBeanin interface- BeanHandlerService
- Parameters:
- beanId- identification bean, which will be returned
- Returns:
- a bean instance
 
 - 
updateSessionBeanpublic void updateSessionBean(java.lang.String beanId, java.lang.Object bean)Description copied from interface:BeanHandlerServiceThis method does update of session bean.- Specified by:
- updateSessionBeanin interface- BeanHandlerService
- Parameters:
- beanId- identification bean, which will be updated
- bean- representation of bean, which will be copied to current instance
 
 - 
handleUpdatepublic void handleUpdate(BeanRequestMessage request) Description copied from interface:BeanHandlerServiceThis method does update of bean.- Specified by:
- handleUpdatein interface- BeanHandlerService
- Parameters:
- request- contains an instructions for updated fields
 
 - 
handleInvokepublic void handleInvoke(BeanRequestMessage request) Description copied from interface:BeanHandlerServiceThis method does invoke a bean methods.- Specified by:
- handleInvokein interface- BeanHandlerService
- Parameters:
- request- contains an instructions for invoked fields
 
 - 
handleRepositoryCallpublic void handleRepositoryCall(RepositoryRequestMessage request) Description copied from interface:BeanHandlerServiceThis method does repository call.- Specified by:
- handleRepositoryCallin interface- BeanHandlerService
- Parameters:
- request- contains an instructions for repository call
 
 - 
handleBeanInvokeResponsepublic <T> T handleBeanInvokeResponse(BeanRequestMessage request) Description copied from interface:BeanHandlerServiceThis method does invoke to get instance of bean.- Specified by:
- handleBeanInvokeResponsein interface- BeanHandlerService
- Type Parameters:
- T- class type of entity
- Parameters:
- request- contains an instructions for invoked fields
- Returns:
- map representation of object
 
 - 
handleBeanUpdateResponsepublic <T> T handleBeanUpdateResponse(BeanRequestMessage request) Description copied from interface:BeanHandlerServiceThis method does update a bean and get instance of updated bean.- Specified by:
- handleBeanUpdateResponsein interface- BeanHandlerService
- Type Parameters:
- T- class type of entity
- Parameters:
- request- contains an instructions for invoked fields
- Returns:
- map representation of object
 
 - 
handleRepositoryInvokepublic <T> java.util.List<T> handleRepositoryInvoke(RepositoryRequestMessage request) Description copied from interface:BeanHandlerServiceThis method does repository call.- Specified by:
- handleRepositoryInvokein interface- BeanHandlerService
- Type Parameters:
- T- class type of entity
- Parameters:
- request- contains an instructions for invoked fields.
- Returns:
- list of objects representation
 
 - 
handleRepositoryUpdatepublic <T> T handleRepositoryUpdate(RepositoryRequestMessage request) Description copied from interface:BeanHandlerServiceThis method does repository call.- Specified by:
- handleRepositoryUpdatein interface- BeanHandlerService
- Type Parameters:
- T- class type of entity
- Parameters:
- request- contains an instructions for invoked fields.
- Returns:
- map representation of object
 
 - 
getSessionBeanAsObjectprivate java.lang.Object getSessionBeanAsObject(java.lang.String beanId) 
 
- 
 
-