[jboss-dev-forums] [Design of JBoss Identity] - Re: JBoss Identity IDM 1.0.0.Alpha4 released

thomas.heute@jboss.com do-not-reply at jboss.com
Mon Apr 27 04:07:24 EDT 2009


Congrats !

We should also test with Sybase and DB2.

Just to check i'm trying a snippet here. If i understand the API correctly it means that it will return the 10 first groups associated to a user, sorted by group name.

IdentitySession session = // obtained previously
Query groupQuery = session.createGroupQuery();
groupQuery.addRelatedUser("admin");
groupQuery.sort(SortOrder.ASCENDING);
groupQuery.page(0,10);
Collection roles = groupQuery.execute();

The really cool thing is that this can be easily extended.

The not so cool thing, the javadoc is missing, so I'm not sure I really understand the differences between all add*User* methods ;)

Also the sorting here doesn't give much value. What would be neat is to be able to associate "localizable display names" for groups and be able to sort according to those for a specific language. Here I think that I missed to use "sortAttributeName(String name)" shouldn't it be within the sort method sort(attributeName, order) ?
Also to be picky sorting should be locale dependent (java/text/Collator.html) . I understand that for database storage it will ultimately depend on the collation set on tables and would not change from a call to the other (without hitting performances really bad I mean). It could be different for other implementations (Have no clue about LDAP, I think you can't even sort but I might be wrong).

Also I don't understand why the new AS5 integration is using JMX instead of plain MC. Hint ?







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

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



More information about the jboss-dev-forums mailing list