This content has been marked as final.
Show 1 reply
-
1. Re: List of Users
bdaw Jan 30, 2009 1:04 PM (in response to anil.saldhana)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.