[jboss-user] [jBPM] - Re: jBPM - implementing external User Management like LDAP
Hemaraj A
do-not-reply at jboss.com
Thu Oct 20 02:23:30 EDT 2011
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&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20111020/6476fedd/attachment.html
More information about the jboss-user
mailing list