Package africa.absa.inception.security
Class Tenants
java.lang.Object
africa.absa.inception.security.Tenants
- All Implemented Interfaces:
Serializable
The Tenants class holds the results of a request to retrieve a list of tenants.
- Author:
- Marcus Portmann
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the optional filter that was applied to the tenants.Returns the optional page index.Returns the optional page size.africa.absa.inception.core.sorting.SortDirectionReturns the optional sort direction that was applied to the tenants.Returns the tenants.getTotal()Returns the total number of tenants.
-
Constructor Details
-
Tenants
public Tenants()Constructs a new Tenants. -
Tenants
public Tenants(List<Tenant> tenants, long total, String filter, africa.absa.inception.core.sorting.SortDirection sortDirection, Integer pageIndex, Integer pageSize) Constructs a new Tenants.- Parameters:
tenants- the tenantstotal- the total number of tenantsfilter- the optional filter that was applied to the tenantssortDirection- the optional sort direction that was applied to the tenantspageIndex- the optional page indexpageSize- the optional page size
-
-
Method Details
-
getFilter
Returns the optional filter that was applied to the tenants.- Returns:
- the optional filter that was applied to the tenants
-
getPageIndex
Returns the optional page index.- Returns:
- the optional page index
-
getPageSize
Returns the optional page size.- Returns:
- the optional page size
-
getSortDirection
public africa.absa.inception.core.sorting.SortDirection getSortDirection()Returns the optional sort direction that was applied to the tenants.- Returns:
- the optional sort direction that was applied to the tenants
-
getTenants
Returns the tenants.- Returns:
- the tenants
-
getTotal
Returns the total number of tenants.- Returns:
- the total number of tenants
-