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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected StringgroupIdprotected Stringidprotected static EnginePersistenceLoggerLOGprotected ProcessDefinitionEntityprocessDefprotected StringprocessDefIdprotected TaskEntitytaskprotected StringtaskIdprotected StringtenantIdprotected Stringtypeprotected StringuserId
-
Constructor Summary
Constructors Constructor Description IdentityLinkEntity()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IdentityLinkEntitycreateAndInsert()voiddelete()voiddelete(boolean withHistory)voidfireHistoricIdentityLinkEvent(HistoryEventType eventType)StringgetGroupId()If the identity link involves a group, then this will be a non-null id of a group.StringgetId()Get the Id of identityLinkObjectgetPersistentState()Returns a representation of the object, as would be stored in the database.ProcessDefinitionEntitygetProcessDef()StringgetProcessDefId()Get the process definition idMap<String,Class>getReferencedEntitiesIdAndClass()Scope: IN-MEMORY referencesSet<String>getReferencedEntityIds()Scope: IN-MEMORY referencesTaskEntitygetTask()StringgetTaskId()The id of the task associated with this identity link.StringgetTenantId()The id of the tenant associated with this identity link.StringgetType()Returns the type of link.StringgetUserId()If the identity link involves a user, then this will be a non-null id of a user.voidinsert()booleanisGroup()booleanisUser()static IdentityLinkEntitynewIdentityLink()voidsetGroupId(String groupId)voidsetId(String id)voidsetProcessDef(ProcessDefinitionEntity processDef)voidsetProcessDefId(String processDefId)voidsetTask(TaskEntity task)voidsetTenantId(String tenantId)voidsetType(String type)voidsetUserId(String userId)StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.camunda.bpm.engine.impl.db.HasDbReferences
getDependentEntities
-
-
-
-
Field Detail
-
LOG
protected static final EnginePersistenceLogger LOG
-
id
protected String id
-
type
protected String type
-
userId
protected String userId
-
groupId
protected String groupId
-
taskId
protected String taskId
-
processDefId
protected String processDefId
-
tenantId
protected String tenantId
-
task
protected TaskEntity task
-
processDef
protected ProcessDefinitionEntity processDef
-
-
Method Detail
-
getPersistentState
public Object getPersistentState()
Description copied from interface:DbEntityReturns 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:
getPersistentStatein interfaceDbEntity
-
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:IdentityLinkGet the Id of identityLink- Specified by:
getIdin interfaceDbEntity- Specified by:
getIdin interfaceIdentityLink
-
getType
public String getType()
Description copied from interface:IdentityLinkReturns the type of link. SeeIdentityLinkTypefor the native supported types by the process engine.- Specified by:
getTypein interfaceIdentityLink
-
setType
public void setType(String type)
-
getUserId
public String getUserId()
Description copied from interface:IdentityLinkIf 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 theUserQueryAPI.- Specified by:
getUserIdin interfaceIdentityLink
-
setUserId
public void setUserId(String userId)
-
getGroupId
public String getGroupId()
Description copied from interface:IdentityLinkIf 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 theGroupQueryAPI.- Specified by:
getGroupIdin interfaceIdentityLink
-
setGroupId
public void setGroupId(String groupId)
-
getTaskId
public String getTaskId()
Description copied from interface:IdentityLinkThe id of the task associated with this identity link.- Specified by:
getTaskIdin interfaceIdentityLink
-
getProcessDefId
public String getProcessDefId()
Description copied from interface:IdentityLinkGet the process definition id- Specified by:
getProcessDefIdin interfaceIdentityLink
-
setProcessDefId
public void setProcessDefId(String processDefId)
-
getTenantId
public String getTenantId()
Description copied from interface:IdentityLinkThe id of the tenant associated with this identity link.- Specified by:
getTenantIdin interfaceIdentityLink
-
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:HasDbReferencesScope: IN-MEMORY references
- Specified by:
getReferencedEntityIdsin interfaceHasDbReferences- 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:HasDbReferencesScope: IN-MEMORY references
- Specified by:
getReferencedEntitiesIdAndClassin interfaceHasDbReferences- 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.
-
-