[jboss-dev-forums] [Design of JBoss Identity] - Re: List of Users
bdaw
do-not-reply at jboss.com
Fri Jan 30 13:04:31 EST 2009
I think the main confusion is a bit about naming:
IdentityType - parent interface for Identity and Group
Identity aka user
Group aka group...
This is covered in the "API" part of the design doc: http://www.jboss.org/community/docs/DOC-13261
The decision to use the name "Identity" and not simply "User" was mainly because "Identity" in some authentication/authorization scenarios can be also machines... Now I'm a bit afraid that it will confuse people.
So for the methods:
| identitySession.getPersistenceManager()
| .findIdentity(null);
|
will return all Identity objects (so all users if you prefer such naming)
| identitySession.getPersistenceManager().
| findGroup(groupType, null)
all Group objects for a given group type.
Then controls only let to narrow or order/sort results.
With RelationshipManager you can get all Group objects associated with a given Identity regardless of the GroupType.
To follow some "real life" scenario with the API look at this API test case:
http://anonsvn.jboss.org/repos/jbossidentity/idm/trunk/idm/src/test/java/org/jboss/identity/idm/impl/api/OrganizationTest.java
One of the tests map small part of the structure of jboss.org projects so should let to understand API concepts better.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4205974#4205974
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4205974
More information about the jboss-dev-forums
mailing list