Class AuthorizationDto


  • public class AuthorizationDto
    extends Object
    AuthorizationDto
    • Constructor Detail

      • AuthorizationDto

        public AuthorizationDto()
    • Method Detail

      • getId

        public String getId()
        The id of the authorization.
        Returns:
        id
      • setId

        public void setId​(String id)
      • getType

        public Integer getType()
        The type of the authorization (0=global, 1=grant, 2=revoke). See the [User Guide](https://docs.camunda.org/manual/7.18/user-guide/process-engine/authorization-service.md#authorization-type) for more information about authorization types.
        Returns:
        type
      • setType

        public void setType​(Integer type)
      • getPermissions

        public List<String> getPermissions()
        An array of Strings holding the permissions provided by this authorization.
        Returns:
        permissions
      • setPermissions

        public void setPermissions​(List<String> permissions)
      • getUserId

        public String getUserId()
        The id of the user this authorization has been created for. The value `*` represents a global authorization ranging over all users.
        Returns:
        userId
      • setUserId

        public void setUserId​(String userId)
      • getGroupId

        public String getGroupId()
        The id of the group this authorization has been created for.
        Returns:
        groupId
      • setGroupId

        public void setGroupId​(String groupId)
      • getResourceType

        public Integer getResourceType()
        An integer representing the resource type. See the [User Guide](https://docs.camunda.org/manual/7.18/user-guide/process-engine/authorization-service/#resources) for a list of integer representations of resource types.
        Returns:
        resourceType
      • setResourceType

        public void setResourceType​(Integer resourceType)
      • getResourceId

        public String getResourceId()
        The resource Id. The value `*` represents an authorization ranging over all instances of a resource.
        Returns:
        resourceId
      • setResourceId

        public void setResourceId​(String resourceId)
      • getRemovalTime

        public Date getRemovalTime()
        The removal time indicates the date a historic instance authorization is cleaned up. A removal time can only be assigned to a historic instance authorization. Can be `null` when not related to a historic instance resource or when the removal time strategy is end and the root process instance is not finished. Default format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`.
        Returns:
        removalTime
      • setRemovalTime

        public void setRemovalTime​(Date removalTime)
      • getRootProcessInstanceId

        public String getRootProcessInstanceId()
        The process instance id of the root process instance the historic instance authorization is related to. Can be `null` if not related to a historic instance resource.
        Returns:
        rootProcessInstanceId
      • setRootProcessInstanceId

        public void setRootProcessInstanceId​(String rootProcessInstanceId)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object