Package io.camunda.security.auth
Record Class Authorization<T>
java.lang.Object
java.lang.Record
io.camunda.security.auth.Authorization<T>
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAuthorization(io.camunda.zeebe.protocol.record.value.AuthorizationResourceType resourceType, io.camunda.zeebe.protocol.record.value.PermissionType permissionType, List<String> resourceIds, Function<T, String> resourceIdSupplier) Creates an instance of aAuthorizationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static <T> Authorization<T> of(Function<Authorization.Builder<T>, Authorization.Builder<T>> builderFunction) io.camunda.zeebe.protocol.record.value.PermissionTypeReturns the value of thepermissionTyperecord component.Returns the value of theresourceIdsrecord component.Returns the value of theresourceIdSupplierrecord component.io.camunda.zeebe.protocol.record.value.AuthorizationResourceTypeReturns the value of theresourceTyperecord component.final StringtoString()Returns a string representation of this record class.static <T> Authorization<T> withAuthorization(Authorization<T> authorization, String resourceId) static <T> Authorization<T> withAuthorization(Authorization<T> authorization, Function<T, String> resourceIdSupplier)
-
Constructor Details
-
Authorization
public Authorization(io.camunda.zeebe.protocol.record.value.AuthorizationResourceType resourceType, io.camunda.zeebe.protocol.record.value.PermissionType permissionType, List<String> resourceIds, Function<T, String> resourceIdSupplier) Creates an instance of aAuthorizationrecord class.- Parameters:
resourceType- the value for theresourceTyperecord componentpermissionType- the value for thepermissionTyperecord componentresourceIds- the value for theresourceIdsrecord componentresourceIdSupplier- the value for theresourceIdSupplierrecord component
-
-
Method Details
-
withAuthorization
public static <T> Authorization<T> withAuthorization(Authorization<T> authorization, String resourceId) -
withAuthorization
public static <T> Authorization<T> withAuthorization(Authorization<T> authorization, Function<T, String> resourceIdSupplier) -
of
public static <T> Authorization<T> of(Function<Authorization.Builder<T>, Authorization.Builder<T>> builderFunction) -
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). -
resourceType
public io.camunda.zeebe.protocol.record.value.AuthorizationResourceType resourceType()Returns the value of theresourceTyperecord component.- Returns:
- the value of the
resourceTyperecord component
-
permissionType
public io.camunda.zeebe.protocol.record.value.PermissionType permissionType()Returns the value of thepermissionTyperecord component.- Returns:
- the value of the
permissionTyperecord component
-
resourceIds
Returns the value of theresourceIdsrecord component.- Returns:
- the value of the
resourceIdsrecord component
-
resourceIdSupplier
Returns the value of theresourceIdSupplierrecord component.- Returns:
- the value of the
resourceIdSupplierrecord component
-