|
||||||||||
| 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 QualifiedUserspublic UserInRole[] getUserInRoles()
getUserInRoles in interface QualifiedUserspublic void addUserInRole(UserInRole user)
QualifiedUsers
addUserInRole in interface QualifiedUsersuser - to be addedpublic UserInRole createUserInRole()
QualifiedUsers
createUserInRole in interface QualifiedUserspublic Iterator<UserInRole> iterateUserInRole()
QualifiedUsers
iterateUserInRole in interface QualifiedUserspublic void removeUserInRoles()
QualifiedUsers
removeUserInRoles in interface QualifiedUserspublic RelatedUser[] getRelatedUsers()
getRelatedUsers in interface QualifiedUserspublic RelatedGroup[] getRelatedGroups()
getRelatedGroups in interface QualifiedUserspublic RelatedUser getRelatedUser(RelatedUser relatedUser)
QualifiedUsers
getRelatedUser in interface QualifiedUsersrelatedUser - the reference to look for
nullpublic RelatedGroup getRelatedGroup(RelatedGroup relatedGroup)
QualifiedUsers
getRelatedGroup in interface QualifiedUsersrelatedGroup - the reference to look for
nullpublic void addRelatedUser(RelatedUser user)
QualifiedUsers
addRelatedUser in interface QualifiedUsersuser - to be addedpublic void addRelatedGroup(RelatedGroup group)
QualifiedUsers
addRelatedGroup in interface QualifiedUsersgroup - to be addedpublic RelatedUser createRelatedUser()
QualifiedUsers
createRelatedUser in interface QualifiedUserspublic RelatedGroup createRelatedGroup()
QualifiedUsers
createRelatedGroup in interface QualifiedUserspublic Iterator<RelatedUser> iterateRelatedUser()
QualifiedUsers
iterateRelatedUser in interface QualifiedUserspublic Iterator<RelatedGroup> iterateRelatedGroup()
QualifiedUsers
iterateRelatedGroup in interface QualifiedUsers
public void removeRelatedUser(RelatedUser reference)
throws WorkflowException
QualifiedUsers
removeRelatedUser in interface QualifiedUsersreference - the reference of the RelatedUser to be removed
WorkflowException - when something goes wrong
public void removeRelatedGroup(RelatedGroup reference)
throws WorkflowException
QualifiedUsers
removeRelatedGroup in interface QualifiedUsersreference - the reference of the RelatedGroup to be removed
WorkflowException - when something goes wrongpublic String getRole()
getRole in interface QualifiedUserspublic void setRole(String role)
QualifiedUsers
setRole in interface QualifiedUsersrole - role as a Stringpublic String getMessage()
getMessage in interface QualifiedUserspublic void setMessage(String message)
setMessage in interface QualifiedUsersmessage - message as a Stringpublic String getSenderId()
getSenderId in interface QualifiedUserspublic void setSenderId(String senderId)
senderId - the user id
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||