[jboss-user] [jBPM] - Re: The users or groups which human task server add is stored in db?
Arun V G
do-not-reply at jboss.com
Thu Feb 16 23:29:33 EST 2012
Arun V G [https://community.jboss.org/people/arunvg] created the discussion
"Re: The users or groups which human task server add is stored in db?"
To view the discussion, visit: https://community.jboss.org/message/717356#717356
--------------------------------------------------------------
Hi Jimmy ,
From other forum posts and my experiments what I found is that the better way for identity managment is to use the UserGroupCallback interface. Using this you can avoid implicit addition of users/groups in runtime.
org.jbpm.task.service.UserGroupCallback is the interface provided for this purpose.
The interface has three methods :
* boolean existsUser(String userId)
+Validates whether the input userid is valid for your application. If you are doing an evaluation , always return a true, the user assigned to the task in the process definition would be automatically added to the+
+ ORGANIZATIONALENTITY table ( magic :) )+
* boolean existsGroup(String groupId)
+ Validates whether the input groupId is valid for your application.Similar to above for evaluation we can return true and the above magic repeats.
+
.
* List<String> getGroupsForUser(String userId, List<String> groupIds, List<String> allExistingGroupIds)
+ +
+ Never tried this, but as in case of the other methods , the method signature says it all..+
Just shared my thoughts may be it would help you .
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/717356#717356]
Start a new discussion in jBPM at Community
[https://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/20120216/c1d4c5e4/attachment.html
More information about the jboss-user
mailing list