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:
  • 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 tenants
      total - the total number of tenants
      filter - the optional filter that was applied to the tenants
      sortDirection - the optional sort direction that was applied to the tenants
      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 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
    • getTenants

      public List<Tenant> getTenants()
      Returns the tenants.
      Returns:
      the tenants
    • getTotal

      public Long getTotal()
      Returns the total number of tenants.
      Returns:
      the total number of tenants