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
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 type
           
protected  String userId
           
 
Constructor Summary
IdentityLinkEntity()
           
 
Method Summary
static IdentityLinkEntity createAndInsert()
           
 String getGroupId()
          If the identity link involves a group, then this will be a non-null id of a group.
 String getId()
           
 Object getPersistentState()
          Returns a representation of the object, as would be stored in the database.
 ProcessDefinitionEntity getProcessDef()
           
 String getProcessDefId()
           
 TaskEntity getTask()
           
 String getTaskId()
          The id of the task 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.
 boolean isGroup()
           
 boolean isUser()
           
 void setGroupId(String groupId)
           
 void setId(String id)
           
 void setProcessDef(ProcessDefinitionEntity processDef)
           
 void setProcessDefId(String processDefId)
           
 void setTask(TaskEntity task)
           
 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

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

isUser

public boolean isUser()

isGroup

public boolean isGroup()

getId

public String getId()
Specified by:
getId in interface DbEntity

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

setProcessDefId

public void setProcessDefId(String processDefId)

getTask

public TaskEntity getTask()

setTask

public void setTask(TaskEntity task)

getProcessDef

public ProcessDefinitionEntity getProcessDef()

setProcessDef

public void setProcessDef(ProcessDefinitionEntity processDef)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015 camunda services GmbH. All rights reserved.