Package africa.absa.inception.security
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Users()Constructs a new Users.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFilter()Returns the optional filter that was applied to the users.IntegergetPageIndex()Returns the optional page index.IntegergetPageSize()Returns the optional page size.UserSortBygetSortBy()Returns the optional method used to sort the users e.g.africa.absa.inception.core.sorting.SortDirectiongetSortDirection()Returns the optional sort direction that was applied to the users.LonggetTotal()Returns the total number of users.UUIDgetUserDirectoryId()Returns the Universally Unique Identifier (UUID) for the user directory the users are associated with.List<User>getUsers()Returns the users.
-
-
-
Constructor Detail
-
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 Universally Unique Identifier (UUID) 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 Detail
-
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 Universally Unique Identifier (UUID) for the user directory the users are associated with.- Returns:
- the Universally Unique Identifier (UUID) for the user directory the users are associated with
-
-