Class AuthorizationEntity

    • Field Detail

      • revision

        protected int revision
      • authorizationType

        protected int authorizationType
      • permissions

        protected int permissions
      • userId

        protected String userId
      • groupId

        protected String groupId
      • resourceType

        protected Integer resourceType
      • resourceId

        protected String resourceId
      • removalTime

        protected Date removalTime
      • rootProcessInstanceId

        protected 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 String getGroupId()
        Specified by:
        getGroupId in interface Authorization
        Returns:
        the id of the group this authorization is created for
      • setGroupId

        public void setGroupId​(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 String getUserId()
        Specified by:
        getUserId in interface Authorization
        Returns:
        the id of the user this authorization is created for
      • setUserId

        public void setUserId​(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 Integer getResource()
      • setPermissions

        public void setPermissions​(int permissions)
      • getPermissions

        public int getPermissions()
      • getCachedPermissions

        public Set<Permission> getCachedPermissions()
      • getPersistentState

        public 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 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​(Date removalTime)
      • getRootProcessInstanceId

        public 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​(String rootProcessInstanceId)
      • getReferencedEntityIds

        public Set<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 Map<String,​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.