Package africa.absa.inception.security
Class Users
java.lang.Object
africa.absa.inception.security.Users
- All Implemented Interfaces:
Serializable
The Users class holds the results of a request to retrieve a list of users.
- Author:
- Marcus Portmann
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the optional filter that was applied to the users.Returns the optional page index.Returns the optional page size.Returns the optional method used to sort the users e.g.africa.absa.inception.core.sorting.SortDirectionReturns the optional sort direction that was applied to the users.getTotal()Returns the total number of users.Returns the ID for the user directory the users are associated with.getUsers()Returns the users.
-
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 withusers- the userstotal- the total number of usersfilter- the optional filter that was applied to the userssortBy- the optional method used to sort the users e.g. by namesortDirection- the optional sort direction that was applied to the userspageIndex- the optional page indexpageSize- the optional page size
-
-
Method Details
-
getFilter
Returns the optional filter that was applied to the users.- Returns:
- the optional filter that was applied to the users
-
getPageIndex
Returns the optional page index.- Returns:
- the optional page index
-
getPageSize
Returns the optional page size.- Returns:
- the optional page size
-
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
Returns the total number of users.- Returns:
- the total number of users
-
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
Returns the users.- Returns:
- the users
-