|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.workflow.engine.model.QualifiedUsersImpl
public class QualifiedUsersImpl
Class implementing the representation of the <allowedUsers>, <workingUsers>, <notifiedUsers> and <interestedUsers> elements of a Process Model.
Constructor Summary | |
---|---|
QualifiedUsersImpl()
Constructor |
Method Summary | |
---|---|
void |
addRelatedGroup(RelatedGroup group)
Add a RelatedGroup to the collection |
void |
addRelatedUser(RelatedUser user)
Add a RelatedUser to the collection |
void |
addUserInRole(UserInRole user)
Add a UserInRole to the collection |
RelatedGroup |
createRelatedGroup()
Create a new RelatedGroup |
RelatedUser |
createRelatedUser()
Create a new RelatedUser |
UserInRole |
createUserInRole()
Create a new UserInRole |
String |
getMessage()
Get the message associated to the related users (only used for notification) |
RelatedGroup |
getRelatedGroup(RelatedGroup relatedGroup)
Get the related group equivalent to the one specified |
RelatedGroup[] |
getRelatedGroups()
Get the related groups |
RelatedUser |
getRelatedUser(RelatedUser relatedUser)
Get the related user equivalent to the one specified |
RelatedUser[] |
getRelatedUsers()
Get the participants and related users |
String |
getRole()
Get the role to which the related user will be affected |
String |
getSenderId()
Get the user id used as sender for message. |
UserInRole |
getUserInRole(String strRoleName)
Get the userInRoles |
UserInRole[] |
getUserInRoles()
Get the userInRoles |
Iterator<RelatedGroup> |
iterateRelatedGroup()
Iterate through the RelatedGroup objects |
Iterator<RelatedUser> |
iterateRelatedUser()
Iterate through the RelatedUser objects |
Iterator<UserInRole> |
iterateUserInRole()
Iterate through the UserInRole objects |
void |
removeRelatedGroup(RelatedGroup reference)
Remove a RelatedGroup from the collection |
void |
removeRelatedUser(RelatedUser reference)
Remove a RelatedUser from the collection |
void |
removeUserInRoles()
Remove all UserInRole from the collection |
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 affected |
void |
setSenderId(String senderId)
Set the user id used as sender for message. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QualifiedUsersImpl()
Method Detail |
---|
public UserInRole getUserInRole(String strRoleName)
getUserInRole
in interface QualifiedUsers
public UserInRole[] getUserInRoles()
getUserInRoles
in interface QualifiedUsers
public void addUserInRole(UserInRole user)
QualifiedUsers
addUserInRole
in interface QualifiedUsers
user
- to be addedpublic UserInRole createUserInRole()
QualifiedUsers
createUserInRole
in interface QualifiedUsers
public Iterator<UserInRole> iterateUserInRole()
QualifiedUsers
iterateUserInRole
in interface QualifiedUsers
public void removeUserInRoles()
QualifiedUsers
removeUserInRoles
in interface QualifiedUsers
public RelatedUser[] getRelatedUsers()
getRelatedUsers
in interface QualifiedUsers
public RelatedGroup[] getRelatedGroups()
getRelatedGroups
in interface QualifiedUsers
public RelatedUser getRelatedUser(RelatedUser relatedUser)
QualifiedUsers
getRelatedUser
in interface QualifiedUsers
relatedUser
- the reference to look for
null
public RelatedGroup getRelatedGroup(RelatedGroup relatedGroup)
QualifiedUsers
getRelatedGroup
in interface QualifiedUsers
relatedGroup
- the reference to look for
null
public void addRelatedUser(RelatedUser user)
QualifiedUsers
addRelatedUser
in interface QualifiedUsers
user
- to be addedpublic void addRelatedGroup(RelatedGroup group)
QualifiedUsers
addRelatedGroup
in interface QualifiedUsers
group
- to be addedpublic RelatedUser createRelatedUser()
QualifiedUsers
createRelatedUser
in interface QualifiedUsers
public RelatedGroup createRelatedGroup()
QualifiedUsers
createRelatedGroup
in interface QualifiedUsers
public Iterator<RelatedUser> iterateRelatedUser()
QualifiedUsers
iterateRelatedUser
in interface QualifiedUsers
public Iterator<RelatedGroup> iterateRelatedGroup()
QualifiedUsers
iterateRelatedGroup
in interface QualifiedUsers
public void removeRelatedUser(RelatedUser reference) throws WorkflowException
QualifiedUsers
removeRelatedUser
in interface QualifiedUsers
reference
- the reference of the RelatedUser to be removed
WorkflowException
- when something goes wrongpublic void removeRelatedGroup(RelatedGroup reference) throws WorkflowException
QualifiedUsers
removeRelatedGroup
in interface QualifiedUsers
reference
- the reference of the RelatedGroup to be removed
WorkflowException
- when something goes wrongpublic String getRole()
getRole
in interface QualifiedUsers
public void setRole(String role)
QualifiedUsers
setRole
in interface QualifiedUsers
role
- role as a Stringpublic String getMessage()
getMessage
in interface QualifiedUsers
public void setMessage(String message)
setMessage
in interface QualifiedUsers
message
- message as a Stringpublic String getSenderId()
getSenderId
in interface QualifiedUsers
public void setSenderId(String senderId)
senderId
- the user id
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |