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
Modifier and TypeFieldDescriptionprotected String
protected String
protected static final EnginePersistenceLogger
protected ProcessDefinitionEntity
protected String
protected TaskEntity
protected String
protected String
protected String
protected String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic IdentityLinkEntity
void
delete()
void
delete
(boolean withHistory) void
fireHistoricIdentityLinkEvent
(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.void
insert()
boolean
isGroup()
boolean
isUser()
static IdentityLinkEntity
void
setGroupId
(String groupId) void
void
setProcessDef
(ProcessDefinitionEntity processDef) void
setProcessDefId
(String processDefId) void
setTask
(TaskEntity task) void
setTenantId
(String tenantId) void
void
toString()
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 Details
-
LOG
-
id
-
type
-
userId
-
groupId
-
taskId
-
processDefId
-
tenantId
-
task
-
processDef
-
-
Constructor Details
-
IdentityLinkEntity
public IdentityLinkEntity()
-
-
Method Details
-
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 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:IdentityLink
Get the Id of identityLink- Specified by:
getId
in interfaceDbEntity
- Specified by:
getId
in interfaceIdentityLink
-
setId
-
getType
Description copied from interface:IdentityLink
Returns the type of link. SeeIdentityLinkType
for the native supported types by the process engine.- Specified by:
getType
in interfaceIdentityLink
-
setType
-
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 theUserQuery
API.- Specified by:
getUserId
in interfaceIdentityLink
-
setUserId
-
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 theGroupQuery
API.- Specified by:
getGroupId
in interfaceIdentityLink
-
setGroupId
-
getTaskId
Description copied from interface:IdentityLink
The id of the task associated with this identity link.- Specified by:
getTaskId
in interfaceIdentityLink
-
getProcessDefId
Description copied from interface:IdentityLink
Get the process definition id- Specified by:
getProcessDefId
in interfaceIdentityLink
-
setProcessDefId
-
getTenantId
Description copied from interface:IdentityLink
The id of the tenant associated with this identity link.- Specified by:
getTenantId
in interfaceIdentityLink
-
setTenantId
-
getTask
-
setTask
-
getProcessDef
-
setProcessDef
-
fireHistoricIdentityLinkEvent
-
getReferencedEntityIds
Description copied from interface:HasDbReferences
Scope: IN-MEMORY references
- Specified by:
getReferencedEntityIds
in 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:HasDbReferences
Scope: IN-MEMORY references
- Specified by:
getReferencedEntitiesIdAndClass
in 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
-