[jboss-dev-forums] [Design of JBoss Identity] - findRoleTypes(IdentitySearchControl[] controls) API discussi
jeff.yuchang
do-not-reply at jboss.com
Mon Mar 30 05:27:18 EDT 2009
In the RoleManager API,
Collection findRoleTypes(IdentitySearchControl[] controls) throws IdentityException;
If users pass a 'null' for this method, it will return all of RoleTypes, my question is that is it better that we have a method like:
getAllRoleTypes() to return all of available role types, instead of passing a null parameter in the API level.
The implementation could be resuing as what we have now, as at first sight, I was not sure how can I get all available role types.
Thoughts?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4221878#4221878
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4221878
More information about the jboss-dev-forums
mailing list