Class ResourceQueryBuilder
Object
se.curity.identityserver.sdk.data.query.ResourceQueryBuilder
Builder of
ResourceQuery instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates a newResourceQueryinstance as defined by this builder.toString()withAttributeExclusions(@Nullable Set<String> attributeExclusions) Adds attribute exclusions to this builder.withAttributeInclusions(@Nullable Set<String> attributeInclusions) Adds attribute inclusions to this builder.Adds attribute inclusions or -exclusions to this builder.withFilter(@Nullable Filter filter) Adds a filter to search by to this builder.withPagination(long startIndex, long count) Adds pagination to this builder.withSecondarySortBy(@Nullable String secondarySortBy) Adds the attribute to secondary sort by to this builder.withSortBy(@Nullable String sortBy) Adds the attribute to sort by to this builder.Deprecated.Adds the order to sort in to this builder.
-
Constructor Details
-
ResourceQueryBuilder
public ResourceQueryBuilder() -
ResourceQueryBuilder
-
-
Method Details
-
withPagination
Adds pagination to this builder.- Parameters:
startIndex- the index of the requested pagecount- the number of entries to include per page- Returns:
- this builder
-
withAttributeInclusions
Adds attribute inclusions to this builder.- Parameters:
attributeInclusions- the resource attributes to include in the result- Returns:
- this builder
-
withAttributeExclusions
Adds attribute exclusions to this builder.- Parameters:
attributeExclusions- the resource attributes to exclude from the result- Returns:
- this builder
-
withAttributesEnumeration
public ResourceQueryBuilder withAttributesEnumeration(ResourceQuery.AttributesEnumeration enumeration) Adds attribute inclusions or -exclusions to this builder.- Parameters:
enumeration- the attributes to include in- or exclude from the result- Returns:
- this builder
-
withSortBy
Adds the attribute to sort by to this builder.- Parameters:
sortBy- the attribute to sort by- Returns:
- this builder
-
withSortOder
@Deprecated public ResourceQueryBuilder withSortOder(@Nullable ResourceQuery.Sorting.SortOrder sortOder) Deprecated.usewithSortOrder(SortOrder)insteadAdds the order to sort in to this builder.- Parameters:
sortOder- the order to sort in- Returns:
- this builder
-
withSortOrder
Adds the order to sort in to this builder.- Parameters:
sortOrder- the order to sort in- Returns:
- this builder
-
withSecondarySortBy
Adds the attribute to secondary sort by to this builder.- Parameters:
secondarySortBy- the attribute to secondary sort by- Returns:
- this builder
- Since:
- 7.0.0
-
withFilter
Adds a filter to search by to this builder.- Parameters:
filter- the filter to search by- Returns:
- this builder
-
build
Creates a newResourceQueryinstance as defined by this builder.- Returns:
- a new
ResourceQueryinstance
-
toString
-
withSortOrder(SortOrder)instead