@QueryParam("firstName") @Optional String firstName,
@QueryParam("lastName") @Optional String lastName,
@QueryParam("email") @Optional String email,
@QueryParam("sort") @Optional MembershipSortOrder sortOrder)
{
GroupMembershipSearchQuery query = new GroupMembershipSearchQuery(groupID,
pagingContext.getStart(),
pagingContext.getCount());
if (firstName != null) query.setFirstName(firstName);
if (lastName != null) query.setLastName(lastName);
if (email != null) query.setEmailAddress(email);
if (sortOrder != null) query.setSortOrder(sortOrder);
if (level != null) query.setMembershipLevel(MembershipLevel.valueOf(level));
return _app.getMembershipMgr().search(query);
}