Package africa.absa.inception.security
Class Tenants
- java.lang.Object
-
- africa.absa.inception.security.Tenants
-
- All Implemented Interfaces:
Serializable
public class Tenants extends Object implements Serializable
The Tenants class holds the results of a request to retrieve a list of tenants.- Author:
- Marcus Portmann
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFilter()Returns the optional filter that was applied to the tenants.IntegergetPageIndex()Returns the optional page index.IntegergetPageSize()Returns the optional page size.africa.absa.inception.core.sorting.SortDirectiongetSortDirection()Returns the optional sort direction that was applied to the tenants.List<Tenant>getTenants()Returns the tenants.LonggetTotal()Returns the total number of tenants.
-
-
-
Constructor Detail
-
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 Detail
-
getFilter
public String getFilter()
Returns the optional filter that was applied to the tenants.- Returns:
- the optional filter that was applied to the tenants
-
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
-
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
-
getTotal
public Long getTotal()
Returns the total number of tenants.- Returns:
- the total number of tenants
-
-