org.camunda.bpm.engine.impl.persistence.entity
Class IdentityLinkEntity

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

public class IdentityLinkEntity
extends Object
implements Serializable, IdentityLink, DbEntity

Author:
Joram Barrez, Deivarayan Azhagappan
See Also:
Serialized Form

Field Summary
protected  String groupId
           
protected  String id
           
protected static EnginePersistenceLogger LOG
           
protected  ProcessDefinitionEntity processDef
           
protected  String processDefId
           
protected  TaskEntity task
           
protected  String taskId
           
protected  String tenantId
           
protected  String type
           
protected  String userId
           
 
Constructor Summary
IdentityLinkEntity()
           
 
Method Summary
static IdentityLinkEntity createAndInsert()
           
 void delete()
           
 void fireHistoricIdentityLinkEvent(HistoryEventType eventType)
           
 String getGroupId()
          If the identity link involves a group, then this will be a non-null id of a group.
 String getId()
          Get the Id of identityLink
 Object getPersistentState()
          Returns a representation of the object, as would be stored in the database.
 ProcessDefinitionEntity getProcessDef()
           
 String getProcessDefId()
          Get the process definition id
 TaskEntity getTask()
           
 String getTaskId()
          The id of the task associated with this identity link.
 String getTenantId()
          The id of the tenant associated with this identity link.
 String getType()
          Returns the type of link.
 String getUserId()
          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 newIdentityLink()
           
 void setGroupId(String groupId)
           
 void setId(String id)
           
 void setProcessDef(ProcessDefinitionEntity processDef)
           
 void setProcessDefId(String processDefId)
           
 void setTask(TaskEntity task)
           
 void setTenantId(String tenantId)
           
 void setType(String type)
           
 void setUserId(String userId)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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
Constructor Detail

IdentityLinkEntity

public IdentityLinkEntity()
Method Detail

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()

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)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2016 camunda services GmbH. All rights reserved.