Skip to Content.
Sympa Menu

grouper-dev - Re: subject API changes

Subject: Grouper Developers Forum

List archive

Re: subject API changes

Chronological Thread 
  • From: Jim Fox <>
  • To: Chris Hyzer <>
  • Cc: Jim Fox <>, "" <>
  • Subject: Re: subject API changes
  • Date: Sat, 31 Oct 2009 15:52:33 -0700

On Oct 31, 2009, at 1:58 PM, Chris Hyzer wrote:

What would really help me though is to get the members of a group
sorted by SubjectId. maybe "getMembersSorted()". Right now I have to
use Collections sort. A sort in the database would be quicker.

If you are using the API, you can sort or page based on db cols (I believe this is in the latest 1.4 branch, but definitely in 1.5):

QueryOptions queryOptions = new QueryOptions().sortAsc ("subject_id");
Set<Member> members = group.getMembers(Group.getDefaultList(), queryOptions);

Perfect. Thanks,


Archive powered by MHonArc 2.6.16.

Top of Page