Class AuthorizationEntity

    • Field Detail

      • id

        protected java.lang.String id
      • revision

        protected int revision
      • authorizationType

        protected int authorizationType
      • permissions

        protected int permissions
      • userId

        protected java.lang.String userId
      • groupId

        protected java.lang.String groupId
      • resourceType

        protected java.lang.Integer resourceType
      • resourceId

        protected java.lang.String resourceId
      • removalTime

        protected java.util.Date removalTime
      • rootProcessInstanceId

        protected java.lang.String rootProcessInstanceId
    • Constructor Detail

      • AuthorizationEntity

        public AuthorizationEntity()
      • AuthorizationEntity

        public AuthorizationEntity​(int type)
    • Method Detail

      • resetPermissions

        protected void resetPermissions()
      • isEveryPermissionGranted

        public boolean isEveryPermissionGranted()
        Description copied from interface: Authorization
        Allows checking whether this authorization grants every single permission.
        Specified by:
        isEveryPermissionGranted in interface Authorization
        Returns:
        true if every single permission is granted otherwise false
      • isEveryPermissionRevoked

        public boolean isEveryPermissionRevoked()
        Description copied from interface: Authorization
        Allows checking whether this authorization revokes every single permission.
        Specified by:
        isEveryPermissionRevoked in interface Authorization
        Returns:
        true if every single permission is revoked otherwise false
      • setAuthorizationType

        public void setAuthorizationType​(int authorizationType)
      • getGroupId

        public java.lang.String getGroupId()
        Specified by:
        getGroupId in interface Authorization
        Returns:
        the id of the group this authorization is created for
      • setGroupId

        public void setGroupId​(java.lang.String groupId)
        Description copied from interface: Authorization
        set the id of the group this authorization is created for
        Specified by:
        setGroupId in interface Authorization
      • getUserId

        public java.lang.String getUserId()
        Specified by:
        getUserId in interface Authorization
        Returns:
        the id of the user this authorization is created for
      • setUserId

        public void setUserId​(java.lang.String userId)
        Description copied from interface: Authorization
        set the id of the user this authorization is created for
        Specified by:
        setUserId in interface Authorization
      • getResourceType

        public int getResourceType()
        Specified by:
        getResourceType in interface Authorization
        Returns:
        the type of the resource
      • getResource

        public java.lang.Integer getResource()
      • getResourceId

        public java.lang.String getResourceId()
        Specified by:
        getResourceId in interface Authorization
        Returns:
        the id of the resource
      • setResourceId

        public void setResourceId​(java.lang.String resourceId)
        Description copied from interface: Authorization
        set the id of the resource
        Specified by:
        setResourceId in interface Authorization
      • setId

        public void setId​(java.lang.String id)
        Specified by:
        setId in interface DbEntity
      • setPermissions

        public void setPermissions​(int permissions)
      • getPermissions

        public int getPermissions()
      • getCachedPermissions

        public java.util.Set<Permission> getCachedPermissions()
      • getPersistentState

        public java.lang.Object getPersistentState()
        Description copied from interface: DbEntity
        Returns a representation of the object, as would be stored in the database. Used when deciding if updates have occurred to the object or not since it was last loaded.
        Specified by:
        getPersistentState in interface DbEntity
      • getRemovalTime

        public java.util.Date getRemovalTime()
        Description copied from interface: Authorization
        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. An authorization belongs to a historic instance when its resource type is Resources.HISTORIC_TASK.
        Specified by:
        getRemovalTime in interface Authorization
        Returns:
        • the date the historic instance authorization is cleaned up
        • null if not related to a historic instance resource
        • null if removal time strategy is end and the top-level instance is not finished
      • setRemovalTime

        public void setRemovalTime​(java.util.Date removalTime)
      • getRootProcessInstanceId

        public java.lang.String getRootProcessInstanceId()
        Description copied from interface: Authorization
        The process instance id of the top-level (root) process instance the historic instance authorization is related to A root process instance id is only assigned to a historic instance authorization. An authorization is related to a historic instance when its resource type is Resources.HISTORIC_TASK.
        Specified by:
        getRootProcessInstanceId in interface Authorization
        Returns:
        • the process instance id of the top-level (root) process instance
        • null if not related to a historic instance resource
      • setRootProcessInstanceId

        public void setRootProcessInstanceId​(java.lang.String rootProcessInstanceId)
      • getReferencedEntityIds

        public java.util.Set<java.lang.String> getReferencedEntityIds()
        Description copied from interface: HasDbReferences

        Scope: IN-MEMORY references

        Specified by:
        getReferencedEntityIds in interface HasDbReferences
        Returns:
        the ids of the entities that this entity references. Should only return ids for entities of the same type
      • getReferencedEntitiesIdAndClass

        public java.util.Map<java.lang.String,​java.lang.Class> getReferencedEntitiesIdAndClass()
        Description copied from interface: HasDbReferences

        Scope: IN-MEMORY references

        Specified by:
        getReferencedEntitiesIdAndClass in interface HasDbReferences
        Returns:
        a map of the ids and the entities' classes that this entity references. It's used when trying to determine if there was an Optimistic Locking occurrence on an INSERT or UPDATE of an object of this type.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object