Class IdentityLinkEntity
- java.lang.Object
- 
- org.camunda.bpm.engine.impl.persistence.entity.IdentityLinkEntity
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- DbEntity,- HasDbReferences,- IdentityLink
 
 public class IdentityLinkEntity extends java.lang.Object implements java.io.Serializable, IdentityLink, DbEntity, HasDbReferences - Author:
- Joram Barrez, Deivarayan Azhagappan
- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.lang.StringgroupIdprotected java.lang.Stringidprotected static EnginePersistenceLoggerLOGprotected ProcessDefinitionEntityprocessDefprotected java.lang.StringprocessDefIdprotected TaskEntitytaskprotected java.lang.StringtaskIdprotected java.lang.StringtenantIdprotected java.lang.Stringtypeprotected java.lang.StringuserId
 - 
Constructor SummaryConstructors Constructor Description IdentityLinkEntity()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IdentityLinkEntitycreateAndInsert()voiddelete()voiddelete(boolean withHistory)voidfireHistoricIdentityLinkEvent(HistoryEventType eventType)java.lang.StringgetGroupId()If the identity link involves a group, then this will be a non-null id of a group.java.lang.StringgetId()Get the Id of identityLinkjava.lang.ObjectgetPersistentState()Returns a representation of the object, as would be stored in the database.ProcessDefinitionEntitygetProcessDef()java.lang.StringgetProcessDefId()Get the process definition idjava.util.Map<java.lang.String,java.lang.Class>getReferencedEntitiesIdAndClass()Scope: IN-MEMORY referencesjava.util.Set<java.lang.String>getReferencedEntityIds()Scope: IN-MEMORY referencesTaskEntitygetTask()java.lang.StringgetTaskId()The id of the task associated with this identity link.java.lang.StringgetTenantId()The id of the tenant associated with this identity link.java.lang.StringgetType()Returns the type of link.java.lang.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(java.lang.String groupId)voidsetId(java.lang.String id)voidsetProcessDef(ProcessDefinitionEntity processDef)voidsetProcessDefId(java.lang.String processDefId)voidsetTask(TaskEntity task)voidsetTenantId(java.lang.String tenantId)voidsetType(java.lang.String type)voidsetUserId(java.lang.String userId)java.lang.StringtoString()- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.camunda.bpm.engine.impl.db.HasDbReferencesgetDependentEntities
 
- 
 
- 
- 
- 
Field Detail- 
LOGprotected static final EnginePersistenceLogger LOG 
 - 
idprotected java.lang.String id 
 - 
typeprotected java.lang.String type 
 - 
userIdprotected java.lang.String userId 
 - 
groupIdprotected java.lang.String groupId 
 - 
taskIdprotected java.lang.String taskId 
 - 
processDefIdprotected java.lang.String processDefId 
 - 
tenantIdprotected java.lang.String tenantId 
 - 
taskprotected TaskEntity task 
 - 
processDefprotected ProcessDefinitionEntity processDef 
 
- 
 - 
Method Detail- 
getPersistentStatepublic java.lang.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 interface- DbEntity
 
 - 
createAndInsertpublic static IdentityLinkEntity createAndInsert() 
 - 
newIdentityLinkpublic static IdentityLinkEntity newIdentityLink() 
 - 
insertpublic void insert() 
 - 
deletepublic void delete() 
 - 
deletepublic void delete(boolean withHistory) 
 - 
isUserpublic boolean isUser() 
 - 
isGrouppublic boolean isGroup() 
 - 
getIdpublic java.lang.String getId() Description copied from interface:IdentityLinkGet the Id of identityLink- Specified by:
- getIdin interface- DbEntity
- Specified by:
- getIdin interface- IdentityLink
 
 - 
getTypepublic java.lang.String getType() Description copied from interface:IdentityLinkReturns the type of link. SeeIdentityLinkTypefor the native supported types by the process engine.- Specified by:
- getTypein interface- IdentityLink
 
 - 
setTypepublic void setType(java.lang.String type) 
 - 
getUserIdpublic java.lang.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 interface- IdentityLink
 
 - 
setUserIdpublic void setUserId(java.lang.String userId) 
 - 
getGroupIdpublic java.lang.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 interface- IdentityLink
 
 - 
setGroupIdpublic void setGroupId(java.lang.String groupId) 
 - 
getTaskIdpublic java.lang.String getTaskId() Description copied from interface:IdentityLinkThe id of the task associated with this identity link.- Specified by:
- getTaskIdin interface- IdentityLink
 
 - 
getProcessDefIdpublic java.lang.String getProcessDefId() Description copied from interface:IdentityLinkGet the process definition id- Specified by:
- getProcessDefIdin interface- IdentityLink
 
 - 
setProcessDefIdpublic void setProcessDefId(java.lang.String processDefId) 
 - 
getTenantIdpublic java.lang.String getTenantId() Description copied from interface:IdentityLinkThe id of the tenant associated with this identity link.- Specified by:
- getTenantIdin interface- IdentityLink
 
 - 
setTenantIdpublic void setTenantId(java.lang.String tenantId) 
 - 
getTaskpublic TaskEntity getTask() 
 - 
setTaskpublic void setTask(TaskEntity task) 
 - 
getProcessDefpublic ProcessDefinitionEntity getProcessDef() 
 - 
setProcessDefpublic void setProcessDef(ProcessDefinitionEntity processDef) 
 - 
fireHistoricIdentityLinkEventpublic void fireHistoricIdentityLinkEvent(HistoryEventType eventType) 
 - 
getReferencedEntityIdspublic java.util.Set<java.lang.String> getReferencedEntityIds() Description copied from interface:HasDbReferencesScope: IN-MEMORY references - Specified by:
- getReferencedEntityIdsin interface- HasDbReferences
- Returns:
- the ids of the entities that this entity references. Should only return ids for entities of the same type
 
 - 
getReferencedEntitiesIdAndClasspublic java.util.Map<java.lang.String,java.lang.Class> getReferencedEntitiesIdAndClass() Description copied from interface:HasDbReferencesScope: IN-MEMORY references - Specified by:
- getReferencedEntitiesIdAndClassin 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.
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-