[jbpm-dev] [Design of JBoss jBPM] - IdentityService API Usage update
jeff.yuchang
do-not-reply at jboss.com
Thu Jun 11 02:33:43 EDT 2009
Hi all,
Noted from the test cases code, we all use the groupName as groupId by default, this is fine with the jbpm-built-in implementation, as these two are the same, but they are different in the jboss idm implementation.
So I am going to update those test cases, using the groupId, instead of groupName, take org.jbpm.examples.mail.inline.InlineMailTest.java for example:
| identityService.createGroup("thinkpol");
| identityService.createGroup("innerparty");
| identityService.createMembership("obrien", "thinkpol");
| identityService.createMembership("charr", "innerparty");
| identityService.createMembership("obrien", "innerparty");
|
I will updated it as:
| String groupId1 = identityService.createGroup("thinkpol");
| String groupId2 = identityService.createGroup("innerparty");
| identityService.createMembership("obrien", groupId2);
| identityService.createMembership("charr", groupId1);
| identityService.createMembership("obrien", groupId1);
|
Any comments on this update? any objections??
Thanks
Jeff
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4236891#4236891
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4236891
More information about the jbpm-dev
mailing list