Search in sources :

Example 1 with MybatisUserDataManager

use of org.activiti.engine.impl.persistence.entity.data.impl.MybatisUserDataManager in project tutorials by eugenp.

the class ActivitiSpringSecurityApplication method processEngineInitializer.

@Bean
InitializingBean processEngineInitializer() {
    return new InitializingBean() {

        public void afterPropertiesSet() throws Exception {
            processEngineConfiguration.setUserEntityManager(new SpringSecurityUserManager(processEngineConfiguration, new MybatisUserDataManager(processEngineConfiguration), userManager));
            processEngineConfiguration.setGroupEntityManager(new SpringSecurityGroupManager(processEngineConfiguration, new MybatisGroupDataManager(processEngineConfiguration)));
        }
    };
}
Also used : MybatisUserDataManager(org.activiti.engine.impl.persistence.entity.data.impl.MybatisUserDataManager) MybatisGroupDataManager(org.activiti.engine.impl.persistence.entity.data.impl.MybatisGroupDataManager) SpringSecurityUserManager(com.baeldung.activiti.security.config.SpringSecurityUserManager) SpringSecurityGroupManager(com.baeldung.activiti.security.config.SpringSecurityGroupManager) InitializingBean(org.springframework.beans.factory.InitializingBean) Bean(org.springframework.context.annotation.Bean) InitializingBean(org.springframework.beans.factory.InitializingBean)

Aggregations

SpringSecurityGroupManager (com.baeldung.activiti.security.config.SpringSecurityGroupManager)1 SpringSecurityUserManager (com.baeldung.activiti.security.config.SpringSecurityUserManager)1 MybatisGroupDataManager (org.activiti.engine.impl.persistence.entity.data.impl.MybatisGroupDataManager)1 MybatisUserDataManager (org.activiti.engine.impl.persistence.entity.data.impl.MybatisUserDataManager)1 InitializingBean (org.springframework.beans.factory.InitializingBean)1 Bean (org.springframework.context.annotation.Bean)1