[jboss-dev-forums] [Design of JBoss Identity] - List of Users

anil.saldhana@jboss.com do-not-reply at jboss.com
Fri Jan 30 11:52:13 EST 2009


Tom asks:

  | the actual question was:  I'm trying to obtain a list of all users.
  | 
  | I guess this method should do the trick:
  | 
  |       Collection<Identity> identities = identitySession
  |           .getPersistenceManager()
  |           .findIdentity((IdentitySearchControl[])null);
  | 
  | I assume this gets me the users *and* groups, right ?
  | 
  | I only found following search controls:
  | 
  |             if (control instanceof PageSearchControl)
  |             {
  |                pageSearchControl = (PageSearchControl)control;
  |             }
  |             else if (control instanceof SortByNameSearchControl)
  |             {
  |                sortSearchControl = (SortByNameSearchControl)control;
  |             }
  |             else if (control instanceof AttributeFilterSearchControl)
  |             {
  |                attributeFilterControl = (AttributeFilterSearchControl)control;
  |             }
  |             else if (control instanceof NameFilterSearchControl)
  |             {
  |                nameFilterSearchControl = (NameFilterSearchControl)control;
  |             }
  | 
  | Should I be looking into the attributes to filter for the users ?
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4205959#4205959

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4205959



More information about the jboss-dev-forums mailing list