-
1. Re: JBoss Identity IDM 1.0.0.Alpha4 released
theute Apr 27, 2009 4:07 AM (in response to bdaw)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 ? -
2. Re: JBoss Identity IDM 1.0.0.Alpha4 released
bdaw Apr 27, 2009 5:01 AM (in response to bdaw)"thomas.heute@jboss.com" wrote:
The not so cool thing, the javadoc is missing, so I'm not sure I really understand the differences between all add*User* methods ;)
True, my bad. Will have this with the full implementation of the API.
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) ?
With current API the only way to do this is to have attributes like "display_name_en", "display_name_fr" and etc. Sort is done by default based on the id but I think the one you proposed is a good one to have also.
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).
This part (sort/filter by attribute) is not fully implemented now for DB/LDAP. Some parts are more natural in DB, some in LDAP but it is hard to have good efficient impl for both. In some cases results will need to be post process anyway and this will hit performance)
Also I don't understand why the new AS5 integration is using JMX instead of plain MC. Hint ?
I'll leave it for Jeff but I think it will be good to have AS 4.2.x support with JMX as well (for EAP). -
3. Re: JBoss Identity IDM 1.0.0.Alpha4 released
jeff.yuchang Apr 27, 2009 5:03 AM (in response to bdaw)"thomas.heute@jboss.com" wrote:
Also I don't understand why the new AS5 integration is using JMX instead of plain MC. Hint ?
Actually, we do integrated the MC, and then use the @JMX annotation to expose the attributes(This is how we do it in AS5), so that users can view the attributes in the JMX console. I don't know whether we can see the attributes in the POJO somewhere, that is the reason what I expose it into JMX, it is trivial for us to turn it into the POJO.