Class RolesFilter


public class RolesFilter extends PageFilter
Class used to filter the results received when calling the Grants endpoint. Related to the RolesEntity entity.

This class is not thread-safe.

See Also:
  • Constructor Details

    • RolesFilter

      public RolesFilter()
  • Method Details

    • withName

      public RolesFilter withName(String name)
      Filter by name
      Parameters:
      name - only retrieve items with this name.
      Returns:
      this filter instance
    • withPage

      public RolesFilter withPage(int pageNumber, int amountPerPage)
      Filter by page
      Overrides:
      withPage in class PageFilter
      Parameters:
      pageNumber - the page number to retrieve.
      amountPerPage - the amount of items per page to retrieve.
      Returns:
      this filter instance
    • withTotals

      public RolesFilter withTotals(boolean includeTotals)
      Include the query summary
      Overrides:
      withTotals in class PageFilter
      Parameters:
      includeTotals - whether to include or not the query summary.
      Returns:
      this filter instance