com.silverpeas.workflow.engine.model
Class RelatedUserImpl

java.lang.Object
  extended by com.silverpeas.workflow.engine.AbstractReferrableObject
      extended by com.silverpeas.workflow.engine.model.RelatedUserImpl
All Implemented Interfaces:
RelatedUser, ReferrableObjectIntf, Serializable

public class RelatedUserImpl
extends AbstractReferrableObject
implements RelatedUser, Serializable

Class implementing the representation of the <relatedUser> element of a Process Model.

See Also:
Serialized Form

Constructor Summary
RelatedUserImpl()
          Constructor
 
Method Summary
 Item getFolderItem()
          Get the referred item
 String getKey()
          This method has to be implemented by the referrable object it has to compute the unique key
 Participant getParticipant()
          Get the referred participant
 String getRelation()
          Get the relation between user and participant
 String getRole()
          Get the role to which the related user will be affected
 void setFolderItem(Item folderItem)
          Set the referred item
 void setParticipant(Participant participant)
          Set the referred participant
 void setRelation(String relation)
          Set the relation between user and participant
 void setRole(String role)
          Set the role to which the related user will be affected
 
Methods inherited from class com.silverpeas.workflow.engine.AbstractReferrableObject
equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelatedUserImpl

public RelatedUserImpl()
Constructor

Method Detail

getParticipant

public Participant getParticipant()
Get the referred participant

Specified by:
getParticipant in interface RelatedUser
Returns:
Participant object

setParticipant

public void setParticipant(Participant participant)
Description copied from interface: RelatedUser
Set the referred participant

Specified by:
setParticipant in interface RelatedUser

getFolderItem

public Item getFolderItem()
Get the referred item

Specified by:
getFolderItem in interface RelatedUser

setFolderItem

public void setFolderItem(Item folderItem)
Set the referred item

Specified by:
setFolderItem in interface RelatedUser
Parameters:
folderItem - item to refer

getRelation

public String getRelation()
Get the relation between user and participant

Specified by:
getRelation in interface RelatedUser
Returns:
relation, if null get the participant himself instead of searching related user

setRelation

public void setRelation(String relation)
Set the relation between user and participant

Specified by:
setRelation in interface RelatedUser
Parameters:
relation - relation as a String

getRole

public String getRole()
Get the role to which the related user will be affected

Specified by:
getRole in interface RelatedUser
Returns:
the role name

setRole

public void setRole(String role)
Set the role to which the related user will be affected

Specified by:
setRole in interface RelatedUser
Parameters:
role - role as a String

getKey

public String getKey()
Description copied from class: AbstractReferrableObject
This method has to be implemented by the referrable object it has to compute the unique key

Specified by:
getKey in interface ReferrableObjectIntf
Specified by:
getKey in class AbstractReferrableObject
Returns:
The unique key.
See Also:
equals, hashCode


Copyright © 2016 Silverpeas. All Rights Reserved.