Class QualifiedUsersImpl
- java.lang.Object
-
- org.silverpeas.core.workflow.engine.model.QualifiedUsersImpl
-
- All Implemented Interfaces:
Serializable
,QualifiedUsers
public class QualifiedUsersImpl extends Object implements QualifiedUsers, Serializable
Class implementing the representation of the <allowedUsers>, <workingUsers>, <notifiedUsers> and <interestedUsers> elements of a Process Model.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description QualifiedUsersImpl()
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRelatedUser(RelatedUser user)
Add a RelatedUser to the collectionvoid
addUserInRole(UserInRole user)
Add a UserInRole to the collectionUserInRole
createUserInRole()
Create a new UserInRoleBoolean
getLinkDisabled()
Get the linkDisabled status associated to the related users (only used for notification)String
getMessage()
Get the message associated to the related users (only used for notification)RelatedGroup[]
getRelatedGroups()
Get the related groupsRelatedUser
getRelatedUser(RelatedUser relatedUser)
Get the related user equivalent to the one specifiedRelatedUser[]
getRelatedUsers()
Get the participants and related usersString
getRole()
Get the role to which the related user will be affectedString
getSenderId()
Get the user id used as sender for message.UserInRole
getUserInRole(String strRoleName)
Get the userInRolesUserInRole[]
getUserInRoles()
Get the userInRolesIterator<RelatedUser>
iterateRelatedUser()
Iterate through the RelatedUser objectsIterator<UserInRole>
iterateUserInRole()
Iterate through the UserInRole objectsvoid
removeRelatedUser(RelatedUser reference)
Remove a RelatedUser from the collectionvoid
removeUserInRoles()
Remove all UserInRole from the collectionvoid
setLinkDisabled(Boolean linkDisabled)
Set the linkDisabled status associated to the related users (only used for notification)void
setMessage(String message)
Set the message associated to the related users (only used for notification)void
setRole(String role)
Set the role to which the related user will be affectedvoid
setSenderId(String senderId)
Set the user id used as sender for message.
-
-
-
Method Detail
-
getUserInRole
public UserInRole getUserInRole(String strRoleName)
Get the userInRoles- Specified by:
getUserInRole
in interfaceQualifiedUsers
- Returns:
- the userInRoles as a Vector
-
getUserInRoles
public UserInRole[] getUserInRoles()
Get the userInRoles- Specified by:
getUserInRoles
in interfaceQualifiedUsers
- Returns:
- the userInRoles as an array
-
addUserInRole
public void addUserInRole(UserInRole user)
Description copied from interface:QualifiedUsers
Add a UserInRole to the collection- Specified by:
addUserInRole
in interfaceQualifiedUsers
- Parameters:
user
- to be added
-
createUserInRole
public UserInRole createUserInRole()
Description copied from interface:QualifiedUsers
Create a new UserInRole- Specified by:
createUserInRole
in interfaceQualifiedUsers
- Returns:
- an object implementing UserInRole
-
iterateUserInRole
public Iterator<UserInRole> iterateUserInRole()
Description copied from interface:QualifiedUsers
Iterate through the UserInRole objects- Specified by:
iterateUserInRole
in interfaceQualifiedUsers
- Returns:
- an iterator
-
removeUserInRoles
public void removeUserInRoles()
Description copied from interface:QualifiedUsers
Remove all UserInRole from the collection- Specified by:
removeUserInRoles
in interfaceQualifiedUsers
-
getRelatedUsers
public RelatedUser[] getRelatedUsers()
Get the participants and related users- Specified by:
getRelatedUsers
in interfaceQualifiedUsers
- Returns:
- the participants and related users as an array
-
getRelatedGroups
public RelatedGroup[] getRelatedGroups()
Get the related groups- Specified by:
getRelatedGroups
in interfaceQualifiedUsers
- Returns:
- the related groups as an array
-
getRelatedUser
public RelatedUser getRelatedUser(RelatedUser relatedUser)
Description copied from interface:QualifiedUsers
Get the related user equivalent to the one specified- Specified by:
getRelatedUser
in interfaceQualifiedUsers
- Parameters:
relatedUser
- the reference to look for- Returns:
- the related users as referenced or
null
-
addRelatedUser
public void addRelatedUser(RelatedUser user)
Description copied from interface:QualifiedUsers
Add a RelatedUser to the collection- Specified by:
addRelatedUser
in interfaceQualifiedUsers
- Parameters:
user
- to be added
-
iterateRelatedUser
public Iterator<RelatedUser> iterateRelatedUser()
Description copied from interface:QualifiedUsers
Iterate through the RelatedUser objects- Specified by:
iterateRelatedUser
in interfaceQualifiedUsers
- Returns:
- an iterator
-
removeRelatedUser
public void removeRelatedUser(RelatedUser reference) throws WorkflowException
Description copied from interface:QualifiedUsers
Remove a RelatedUser from the collection- Specified by:
removeRelatedUser
in interfaceQualifiedUsers
- Parameters:
reference
- the reference of the RelatedUser to be removed- Throws:
WorkflowException
- when something goes wrong
-
getRole
public String getRole()
Get the role to which the related user will be affected- Specified by:
getRole
in interfaceQualifiedUsers
- Returns:
- the role name
-
setRole
public void setRole(String role)
Description copied from interface:QualifiedUsers
Set the role to which the related user will be affected- Specified by:
setRole
in interfaceQualifiedUsers
- Parameters:
role
- role as a String
-
getMessage
public String getMessage()
Get the message associated to the related users (only used for notification)- Specified by:
getMessage
in interfaceQualifiedUsers
- Returns:
- the message
-
setMessage
public void setMessage(String message)
Set the message associated to the related users (only used for notification)- Specified by:
setMessage
in interfaceQualifiedUsers
- Parameters:
message
- message as a String
-
getSenderId
public String getSenderId()
Get the user id used as sender for message.- Specified by:
getSenderId
in interfaceQualifiedUsers
- Returns:
-
setSenderId
public void setSenderId(String senderId)
Set the user id used as sender for message.- Parameters:
senderId
- the user id
-
getLinkDisabled
public Boolean getLinkDisabled()
Get the linkDisabled status associated to the related users (only used for notification)- Specified by:
getLinkDisabled
in interfaceQualifiedUsers
- Returns:
- the status of linkDisabled
-
setLinkDisabled
public void setLinkDisabled(Boolean linkDisabled)
Set the linkDisabled status associated to the related users (only used for notification)- Specified by:
setLinkDisabled
in interfaceQualifiedUsers
- Parameters:
linkDisabled
- status as a boolean
-
-