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 Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected static final EnginePersistenceLoggerprotected ProcessDefinitionEntityprotected Stringprotected TaskEntityprotected Stringprotected Stringprotected Stringprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IdentityLinkEntityvoiddelete()voiddelete(boolean withHistory) voidfireHistoricIdentityLinkEvent(HistoryEventType eventType) If the identity link involves a group, then this will be a non-null id of a group.getId()Get the Id of identityLinkReturns a representation of the object, as would be stored in the database.Get the process definition idScope: IN-MEMORY referencesScope: IN-MEMORY referencesgetTask()The id of the task associated with this identity link.The id of the tenant associated with this identity link.getType()Returns the type of link.If the identity link involves a user, then this will be a non-null id of a user.voidinsert()booleanisGroup()booleanisUser()static IdentityLinkEntityvoidsetGroupId(String groupId) voidvoidsetProcessDef(ProcessDefinitionEntity processDef) voidsetProcessDefId(String processDefId) voidsetTask(TaskEntity task) voidsetTenantId(String tenantId) voidvoidtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.camunda.bpm.engine.impl.db.HasDbReferences
getDependentEntities
-
Field Details
-
LOG
-
id
-
type
-
userId
-
groupId
-
taskId
-
processDefId
-
tenantId
-
task
-
processDef
-
-
Constructor Details
-
IdentityLinkEntity
public IdentityLinkEntity()
-
-
Method Details
-
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
-
newIdentityLink
-
insert
public void insert() -
delete
public void delete() -
delete
public void delete(boolean withHistory) -
isUser
public boolean isUser() -
isGroup
public boolean isGroup() -
getId
Description copied from interface:IdentityLinkGet the Id of identityLink- Specified by:
getIdin interfaceDbEntity- Specified by:
getIdin interfaceIdentityLink
-
setId
-
getType
Description copied from interface:IdentityLinkReturns the type of link. SeeIdentityLinkTypefor the native supported types by the process engine.- Specified by:
getTypein interfaceIdentityLink
-
setType
-
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
-
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
-
getTaskId
Description copied from interface:IdentityLinkThe id of the task associated with this identity link.- Specified by:
getTaskIdin interfaceIdentityLink
-
getProcessDefId
Description copied from interface:IdentityLinkGet the process definition id- Specified by:
getProcessDefIdin interfaceIdentityLink
-
setProcessDefId
-
getTenantId
Description copied from interface:IdentityLinkThe id of the tenant associated with this identity link.- Specified by:
getTenantIdin interfaceIdentityLink
-
setTenantId
-
getTask
-
setTask
-
getProcessDef
-
setProcessDef
-
fireHistoricIdentityLinkEvent
-
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
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.
-
toString
-