Class IdentityLinkEntity

java.lang.Object
org.camunda.bpm.engine.impl.persistence.entity.IdentityLinkEntity
All Implemented Interfaces:
Serializable, DbEntity, HasDbReferences, IdentityLink

public class IdentityLinkEntity extends Object implements Serializable, IdentityLink, DbEntity, HasDbReferences
Author:
Joram Barrez, Deivarayan Azhagappan
See Also:
  • Field Details

  • Constructor Details

    • IdentityLinkEntity

      public IdentityLinkEntity()
  • Method Details

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

      public static IdentityLinkEntity createAndInsert()
    • newIdentityLink

      public static IdentityLinkEntity newIdentityLink()
    • insert

      public void insert()
    • delete

      public void delete()
    • delete

      public void delete(boolean withHistory)
    • isUser

      public boolean isUser()
    • isGroup

      public boolean isGroup()
    • getId

      public String getId()
      Description copied from interface: IdentityLink
      Get the Id of identityLink
      Specified by:
      getId in interface DbEntity
      Specified by:
      getId in interface IdentityLink
    • setId

      public void setId(String id)
      Specified by:
      setId in interface DbEntity
    • getType

      public String getType()
      Description copied from interface: IdentityLink
      Returns the type of link. See IdentityLinkType for the native supported types by the process engine.
      Specified by:
      getType in interface IdentityLink
    • 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
    • getProcessDefId

      public String getProcessDefId()
      Description copied from interface: IdentityLink
      Get the process definition id
      Specified by:
      getProcessDefId in interface IdentityLink
    • setProcessDefId

      public void setProcessDefId(String processDefId)
    • getTenantId

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

      public void setTenantId(String tenantId)
    • getTask

      public TaskEntity getTask()
    • setTask

      public void setTask(TaskEntity task)
    • getProcessDef

      public ProcessDefinitionEntity getProcessDef()
    • setProcessDef

      public void setProcessDef(ProcessDefinitionEntity processDef)
    • 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.
    • toString

      public String toString()
      Overrides:
      toString in class Object