Class Groups

java.lang.Object
africa.absa.inception.security.Groups
All Implemented Interfaces:
Serializable

public class Groups extends Object implements Serializable
The Groups class holds the results of a request to retrieve a list of groups.
Author:
Marcus Portmann
See Also:
  • Constructor Details

    • Groups

      public Groups()
      Constructs a new Groups.
    • Groups

      public Groups(UUID userDirectoryId, List<Group> groups, long total, String filter, africa.absa.inception.core.sorting.SortDirection sortDirection, Integer pageIndex, Integer pageSize)
      Constructs a new Groups.
      Parameters:
      userDirectoryId - the ID for the user directory the groups are associated with
      groups - the groups
      total - the total number of groups
      filter - the optional filter that was applied to the groups
      sortDirection - the optional sort direction that was applied to the groups
      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 groups.
      Returns:
      the optional filter that was applied to the groups
    • getGroups

      public List<Group> getGroups()
      Returns the groups.
      Returns:
      the groups
    • 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 groups.
      Returns:
      the optional sort direction that was applied to the groups
    • getTotal

      public Long getTotal()
      Returns the total number of groups.
      Returns:
      the total number of groups
    • getUserDirectoryId

      public UUID getUserDirectoryId()
      Returns the ID for the user directory the groups are associated with.
      Returns:
      the ID for the user directory the groups are associated with