Interface MutableAuthorizationState

All Superinterfaces:
AuthorizationState
All Known Implementing Classes:
DbAuthorizationState

public interface MutableAuthorizationState extends AuthorizationState
  • Method Details

    • createOrAddPermission

      void createOrAddPermission(long ownerKey, AuthorizationResourceType resourceType, PermissionType permissionType, List<String> resourceIds)
      Checks if a Permission exists for the provided ownerKey, resourceType and permissionType. If it does, adds the resourceIds to this entry. If it does not, creates a new Permission with the provided resourceIds.
      Parameters:
      ownerKey - the key of the owner of the permissions. This could be a userKey, a roleKey or a groupKey
      resourceType - the type of resource the permissions are for (Eg. Process definition, Job)
      permissionType - The type of permission being granted (Eg. READ, WRITE)
      resourceIds - A list of resourceIds the permissions are granted for (Eg. bpmnProcessId:foo, *)
    • insertOwnerTypeByKey

      void insertOwnerTypeByKey(long ownerKey, AuthorizationOwnerType ownerType)
      Stores the owner type for a new owner in the state.
      Parameters:
      ownerKey - the key of the owner
      ownerType - the type of the owner