Record Class CapabilityGrantListQuery
java.lang.Object
java.lang.Record
co.ankatech.ankasecure.keymanagement.query.CapabilityGrantListQuery
- Record Components:
actorId- the grantee actor;nullfor every actorassetKid- the key the grant covers;nullfor every keyexchangeContextId- the exchange context the grant is bound to;nullfor every contextconstraintPolicyId- the constraint policy the grant carries;nullfor every policypage- the zero-based page number;nullfor the server default (0)size- the page size;nullfor the server default (25)sort- sort criteria asproperty,ASC|DESC;nullfor the server default (createdAt,DESC)
public record CapabilityGrantListQuery(UUID actorId, String assetKid, UUID exchangeContextId, UUID constraintPolicyId, Integer page, Integer size, List<String> sort)
extends Record
The filters and page of a capability grant listing (
capabilityGrants().list).
Its components are exactly the query parameters of the listCapabilityGrants operation; a null
component sends nothing, so the server applies its default.
CapabilityGrantListQuery.firstPage().withAssetKid("payments-signing-key")
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactorId()Returns the value of theactorIdrecord component.assetKid()Returns the value of theassetKidrecord component.Returns the value of theconstraintPolicyIdrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexchangeContextIdrecord component.static CapabilityGrantListQueryfinal inthashCode()Returns a hash code value for this object.page()Returns the value of thepagerecord component.size()Returns the value of thesizerecord component.sort()Returns the value of thesortrecord component.final StringtoString()Returns a string representation of this record class.withActorId(UUID value) withAssetKid(String value) withConstraintPolicyId(UUID value) withExchangeContextId(UUID value)
-
Constructor Details
-
Method Details
-
firstPage
- Returns:
- the first page with the server's defaults and no filter
-
withActorId
- Parameters:
value- the newactorId;nullclears it- Returns:
- a copy of this query with
actorIdreplaced
-
withAssetKid
- Parameters:
value- the newassetKid;nullclears it- Returns:
- a copy of this query with
assetKidreplaced
-
withExchangeContextId
- Parameters:
value- the newexchangeContextId;nullclears it- Returns:
- a copy of this query with
exchangeContextIdreplaced
-
withConstraintPolicyId
- Parameters:
value- the newconstraintPolicyId;nullclears it- Returns:
- a copy of this query with
constraintPolicyIdreplaced
-
withPage
- Parameters:
value- the newpage;nullclears it- Returns:
- a copy of this query with
pagereplaced
-
withSize
- Parameters:
value- the newsize;nullclears it- Returns:
- a copy of this query with
sizereplaced
-
withSort
- Parameters:
value- the newsort;nullclears it- Returns:
- a copy of this query with
sortreplaced
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
actorId
Returns the value of theactorIdrecord component.- Returns:
- the value of the
actorIdrecord component
-
assetKid
Returns the value of theassetKidrecord component.- Returns:
- the value of the
assetKidrecord component
-
exchangeContextId
Returns the value of theexchangeContextIdrecord component.- Returns:
- the value of the
exchangeContextIdrecord component
-
constraintPolicyId
Returns the value of theconstraintPolicyIdrecord component.- Returns:
- the value of the
constraintPolicyIdrecord component
-
page
Returns the value of thepagerecord component.- Returns:
- the value of the
pagerecord component
-
size
Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
sort
Returns the value of thesortrecord component.- Returns:
- the value of the
sortrecord component
-