Class Users

java.lang.Object
africa.absa.inception.security.Users
All Implemented Interfaces:
Serializable

public class Users extends Object implements Serializable
The Users class holds the results of a request to retrieve a list of users.
Author:
Marcus Portmann
See Also:
  • Constructor Details

    • Users

      public Users()
      Constructs a new Users.
    • Users

      public Users(UUID userDirectoryId, List<User> users, long total, String filter, UserSortBy sortBy, africa.absa.inception.core.sorting.SortDirection sortDirection, Integer pageIndex, Integer pageSize)
      Constructs a new Users.
      Parameters:
      userDirectoryId - the ID for the user directory the users are associated with
      users - the users
      total - the total number of users
      filter - the optional filter that was applied to the users
      sortBy - the optional method used to sort the users e.g. by name
      sortDirection - the optional sort direction that was applied to the users
      pageIndex - the optional page index
      pageSize - the optional page size
  • Method Details

    • getFilter

      public String getFilter()
      Returns the optional filter that was applied to the users.
      Returns:
      the optional filter that was applied to the users
    • getPageIndex

      public Integer getPageIndex()
      Returns the optional page index.
      Returns:
      the optional page index
    • getPageSize

      public Integer getPageSize()
      Returns the optional page size.
      Returns:
      the optional page size
    • getSortBy

      public UserSortBy getSortBy()
      Returns the optional method used to sort the users e.g. by name.
      Returns:
      the optional method used to sort the users
    • getSortDirection

      public africa.absa.inception.core.sorting.SortDirection getSortDirection()
      Returns the optional sort direction that was applied to the users.
      Returns:
      the optional sort direction that was applied to the users
    • getTotal

      public Long getTotal()
      Returns the total number of users.
      Returns:
      the total number of users
    • getUserDirectoryId

      public UUID getUserDirectoryId()
      Returns the ID for the user directory the users are associated with.
      Returns:
      the ID for the user directory the users are associated with
    • getUsers

      public List<User> getUsers()
      Returns the users.
      Returns:
      the users