Class RelatedUserImpl
- java.lang.Object
-
- org.silverpeas.core.workflow.engine.model.RelatedUserImpl
-
- All Implemented Interfaces:
Serializable
,RelatedUser
public class RelatedUserImpl extends Object implements RelatedUser, Serializable
Class implementing the representation of the <relatedUser> element of a Process Model.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RelatedUserImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Item
getFolderItem()
Get the referred itemParticipant
getParticipant()
Get the referred participantString
getRelation()
Get the relation between user and participantString
getRole()
Get the role to which the related user will be affectedint
hashCode()
void
setFolderItem(Item folderItem)
Set the referred itemvoid
setParticipant(Participant participant)
Set the referred participantvoid
setRelation(String relation)
Set the relation between user and participantvoid
setRole(String role)
Set the role to which the related user will be affected
-
-
-
Method Detail
-
getParticipant
public Participant getParticipant()
Get the referred participant- Specified by:
getParticipant
in interfaceRelatedUser
- Returns:
- Participant object
-
setParticipant
public void setParticipant(Participant participant)
Description copied from interface:RelatedUser
Set the referred participant- Specified by:
setParticipant
in interfaceRelatedUser
- Parameters:
participant
- Participant object
-
getFolderItem
public Item getFolderItem()
Get the referred item- Specified by:
getFolderItem
in interfaceRelatedUser
-
setFolderItem
public void setFolderItem(Item folderItem)
Set the referred item- Specified by:
setFolderItem
in interfaceRelatedUser
- Parameters:
folderItem
- item to refer
-
getRelation
public String getRelation()
Get the relation between user and participant- Specified by:
getRelation
in interfaceRelatedUser
- 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 interfaceRelatedUser
- 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 interfaceRelatedUser
- 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 interfaceRelatedUser
- Parameters:
role
- role as a String
-
-