Package com.auth0.client.mgmt.filter
Class GrantsFilter
java.lang.Object
com.auth0.client.mgmt.filter.BaseFilter
com.auth0.client.mgmt.filter.GrantsFilter
Class used to filter the results received when calling the Grants endpoint. Related to the
GrantsEntity
entity.
This class is not thread-safe.
- See Also:
BaseFilter
-
Field Summary
Fields inherited from class com.auth0.client.mgmt.filter.BaseFilter
parameters
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionwithAudience(String audience)
Filter by audiencewithClientId(String clientId)
Filter by client idwithPage(int pageNumber, int amountPerPage)
Filter by pagewithTotals(boolean includeTotals)
Include the query summaryMethods inherited from class com.auth0.client.mgmt.filter.BaseFilter
getAsMap
-
Constructor Details
-
GrantsFilter
public GrantsFilter()
-
-
Method Details
-
withClientId
Filter by client id- Parameters:
clientId
- only retrieve items with this client id.- Returns:
- this filter instance
-
withAudience
Filter by audience- Parameters:
audience
- only retrieve the item with this audience.- Returns:
- this filter instance
-
withPage
Filter by page- Parameters:
pageNumber
- the page number to retrieve.amountPerPage
- the amount of items per page to retrieve.- Returns:
- this filter instance
-
withTotals
Include the query summary- Parameters:
includeTotals
- whether to include or not the query summary.- Returns:
- this filter instance
-