JBoss Community

Re: jBPM - implementing external User Management like LDAP

created by Hemaraj A in jBPM - View the full discussion

Hi Tihomir,

 

Thanks for the quick response! I have already added "Administrator" user [User('Administrator')] in TaskServiceSession before starting MinaTaskServer. Please let me know if I need to add "Administrator" user anywhere else. Please find below the UserGroupCallback implementation class:

 

public class UserGroupCallbackImpl implements UserGroupCallback {

     @Autowired

     private LdapUserDao ldapUserDao;

     @Autowired

    private LdapGroupDao ldapGroupDao;

 

    @Override

    public boolean existsUser(String userId) {

        return ldapUserDao.checkUser(String userId);

    }

   

    @Override

    public boolean existsGroup(String groupId) {

        return ldapGroupDao.checkGroup(String groupId);

    }

   

    @Override

    public List<String> getGroupsForUser(String userId) {

        return new ldapUserDao.getGroupsForUser(String userId);

    }

}

 

Please note I have also set System property "jbpm.usergroup.callback" before starting a process:

 

System.setProperty("jbpm.usergroup.callback", "com.workflow.engine.UserGroupCallbackImpl");

 

Please advice.

 

Thanks,

 

Hemaraj

Reply to this message by going to Community

Start a new discussion in jBPM at Community