Class FindUsersRequest

Object
PagedRequest
FindUsersRequest
All Implemented Interfaces:
Serializable

public class FindUsersRequest extends PagedRequest
The search criteria for users.

Only parameters that are specified in this request and have not null values are used for filtering. All other parameters are ignored.

The returned users satisfy all constraints that are specified in this search criteria.

By default a result containing 1000 users is returned.

See Also:
  • Constructor Details Link icon

    • FindUsersRequest Link icon

      public FindUsersRequest()
  • Method Details Link icon

    • builder Link icon

      public static FindUsersRequest.Builder builder()
    • getUserIds Link icon

      public List<String> getUserIds()
      The IDs of the users.
    • getName Link icon

      public String getName()
      The name of the user. The search will take place in the fields specified by the 'nameSearchFields' parameter.
    • getNameSearchFields Link icon

      public Set<NameSearchField> getNameSearchFields()
      The user fields that will be searched for occurrences of the name parameter.

      It defaults to USERNAME, FIRSTNAME, LASTNAME, FIRSTNAME_LASTNAME and LASTNAME_FIRSTNAME.

    • getGroupId Link icon

      public UUID getGroupId()
      The ID of the group the searched users should belong to.
    • isOnlyLoggedIn Link icon

      public boolean isOnlyLoggedIn()
      Whether only currently logged in users should be returned.
    • isIncludeDisabled Link icon

      public boolean isIncludeDisabled()
      Whether disabled users should be included in the search results.
    • getSortOrder Link icon

      public SortOrder getSortOrder()
    • getSortField Link icon

      public NameSearchField getSortField()
    • setUserIds Link icon

      public void setUserIds(List<String> userIds)
      The IDs of the users.
    • setName Link icon

      public void setName(String name)
      The name of the user. The search will take place in the fields specified by the 'nameSearchFields' parameter.
    • setNameSearchFields Link icon

      public void setNameSearchFields(Set<NameSearchField> nameSearchFields)
      The user fields that will be searched for occurrences of the name parameter.

      It defaults to USERNAME, FIRSTNAME, LASTNAME, FIRSTNAME_LASTNAME and LASTNAME_FIRSTNAME.

    • setGroupId Link icon

      public void setGroupId(UUID groupId)
      The ID of the group the searched users should belong to.
    • setOnlyLoggedIn Link icon

      public void setOnlyLoggedIn(boolean onlyLoggedIn)
      Whether only currently logged in users should be returned.
    • setIncludeDisabled Link icon

      public void setIncludeDisabled(boolean includeDisabled)
      Whether disabled users should be included in the search results.
    • setSortOrder Link icon

      public void setSortOrder(SortOrder sortOrder)
    • setSortField Link icon

      public void setSortField(NameSearchField sortField)
    • equals Link icon

      public boolean equals(Object o)
      Overrides:
      equals in class PagedRequest
    • canEqual Link icon

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class PagedRequest
    • hashCode Link icon

      public int hashCode()
      Overrides:
      hashCode in class PagedRequest
    • toString Link icon

      public String toString()
      Overrides:
      toString in class PagedRequest