Class IdentityLinkEntity

    • Constructor Detail

      • IdentityLinkEntity

        public IdentityLinkEntity()
    • Method Detail

      • 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
      • insert

        public void insert()
      • delete

        public void delete()
      • delete

        public void delete​(boolean withHistory)
      • isUser

        public boolean isUser()
      • isGroup

        public boolean isGroup()
      • setType

        public void setType​(String type)
      • getUserId

        public String getUserId()
        Description copied from interface: IdentityLink
        If the identity link involves a user, then this will be a non-null id of a user. That userId can be used to query for user information through the UserQuery API.
        Specified by:
        getUserId in interface IdentityLink
      • setUserId

        public void setUserId​(String userId)
      • getGroupId

        public String getGroupId()
        Description copied from interface: IdentityLink
        If the identity link involves a group, then this will be a non-null id of a group. That groupId can be used to query for user information through the GroupQuery API.
        Specified by:
        getGroupId in interface IdentityLink
      • setGroupId

        public void setGroupId​(String groupId)
      • getTaskId

        public String getTaskId()
        Description copied from interface: IdentityLink
        The id of the task associated with this identity link.
        Specified by:
        getTaskId in interface IdentityLink
      • setProcessDefId

        public void setProcessDefId​(String processDefId)
      • setTenantId

        public void setTenantId​(String tenantId)
      • setTask

        public void setTask​(TaskEntity task)
      • fireHistoricIdentityLinkEvent

        public void fireHistoricIdentityLinkEvent​(HistoryEventType eventType)
      • 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.