Hemaraj A [
http://community.jboss.org/people/ahemaraj] created the discussion
"Re: jBPM - implementing external User Management like LDAP"
To view the discussion, visit:
http://community.jboss.org/message/632658#632658
--------------------------------------------------------------
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
[
http://community.jboss.org/message/632658#632658]
Start a new discussion in jBPM at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]