Package com.linkedin.restli.examples.groups.server.api

Examples of com.linkedin.restli.examples.groups.server.api.GroupMembershipSearchQuery


                                              @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);
  }
View Full Code Here


  @Override
  public List<GroupMembership> getAll(@PagingContextParam PagingContext pagingContext)
  {
    return _app.getMembershipMgr()
               .search(new GroupMembershipSearchQuery(GroupMembershipSearchQuery.WILDCARD,
                                                      pagingContext.getStart(),
                                                      pagingContext.getCount()));
  }
View Full Code Here

TOP

Related Classes of com.linkedin.restli.examples.groups.server.api.GroupMembershipSearchQuery

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.