[jboss-dev-forums] [Design of JBoss Identity] - Re: JBoss Identity Design Preview

bdaw do-not-reply at jboss.com
Mon Oct 27 03:45:00 EDT 2008


I was thinking about using something similar to JNDI SearchControl mechanism. Then offset/limit and orderByName/ascending could be placed in two separate objects passed in an array. 


  | Collection<Identity> findAssociatedIdentities(Group group, boolean inherited) throws IdentityException;
  | 
  | Collection<Identity> findAssociatedIdentities(Group group, boolean inherited, IdentitySearchControl[] isc) throws IdentityException;
  | 

One benefit is to let add other parameters in the future, the other is easy discovery of supported features (is specific control supported). 

What kind of extensions do you have in mind btw?


"jeff.yuchang" wrote : Hi,
  | 
  | One thought for the API:
  | 
  |    Collection findAssociatedIdentities(Group group,
  |                                            boolean inherited,
  |                                            int offset, int limit,
  |                                            boolean orderedByName,
  |                                            boolean ascending) throws IdentityException;
  | 
  | For this API, can we wrap the offset, limit, orderedByName, ascending into a parameter Object, so that it other project might be easier to extend this class meet some other projects needs.
  | 
  | I also noticed that the other methods, such as findAssociatedGroups(....).
  | 
  | Thoughts?

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

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



More information about the jboss-dev-forums mailing list