Package io.camunda.security.reader
Record Class TenantAccess
java.lang.Object
java.lang.Record
io.camunda.security.reader.TenantAccess
-
Constructor Summary
ConstructorsConstructorDescriptionTenantAccess(boolean allowed, boolean wildcard, List<String> tenantIds) Creates an instance of aTenantAccessrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanallowed()Returns the value of theallowedrecord component.static TenantAccessCreates aTenantAccessallowing access the tenants passed withtenantIds.booleandenied()Returns true if the access to all provided tenantIds is denied.static TenantAccessCreates aTenantAccessdenying access to any tenant passed withtenantIds.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thetenantIdsrecord component.final StringtoString()Returns a string representation of this record class.booleanwildcard()Returns the value of thewildcardrecord component.static TenantAccessCreates aTenantAccessallowing wildcard access to any tenant.
-
Constructor Details
-
TenantAccess
Creates an instance of aTenantAccessrecord class.- Parameters:
allowed- the value for theallowedrecord componentwildcard- the value for thewildcardrecord componenttenantIds- the value for thetenantIdsrecord component
-
-
Method Details
-
denied
public boolean denied()Returns true if the access to all provided tenantIds is denied. -
allowed
Creates aTenantAccessallowing access the tenants passed withtenantIds. -
denied
Creates aTenantAccessdenying access to any tenant passed withtenantIds. -
wildcard
Creates aTenantAccessallowing wildcard access to any tenant. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
allowed
public boolean allowed()Returns the value of theallowedrecord component.- Returns:
- the value of the
allowedrecord component
-
wildcard
public boolean wildcard()Returns the value of thewildcardrecord component.- Returns:
- the value of the
wildcardrecord component
-
tenantIds
Returns the value of thetenantIdsrecord component.- Returns:
- the value of the
tenantIdsrecord component
-