Package io.camunda.service
Record Class AuthorizationServices.PatchAuthorizationRequest
java.lang.Object
java.lang.Record
io.camunda.service.AuthorizationServices.PatchAuthorizationRequest
- Enclosing class:
AuthorizationServices<T>
public static record AuthorizationServices.PatchAuthorizationRequest(long ownerKey, PermissionAction action, AuthorizationResourceType resourceType, Map<PermissionType,List<String>> permissions)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPatchAuthorizationRequest(long ownerKey, PermissionAction action, AuthorizationResourceType resourceType, Map<PermissionType, List<String>> permissions) Creates an instance of aPatchAuthorizationRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longownerKey()Returns the value of theownerKeyrecord component.Returns the value of thepermissionsrecord component.Returns the value of theresourceTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PatchAuthorizationRequest
public PatchAuthorizationRequest(long ownerKey, PermissionAction action, AuthorizationResourceType resourceType, Map<PermissionType, List<String>> permissions) Creates an instance of aPatchAuthorizationRequestrecord class.- Parameters:
ownerKey- the value for theownerKeyrecord componentaction- the value for theactionrecord componentresourceType- the value for theresourceTyperecord componentpermissions- the value for thepermissionsrecord component
-
-
Method Details
-
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 '=='. -
ownerKey
public long ownerKey()Returns the value of theownerKeyrecord component.- Returns:
- the value of the
ownerKeyrecord component
-
action
Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-
resourceType
Returns the value of theresourceTyperecord component.- Returns:
- the value of the
resourceTyperecord component
-
permissions
Returns the value of thepermissionsrecord component.- Returns:
- the value of the
permissionsrecord component
-