Package org.silverpeas.core.workflow.api
Interface UserManager
-
- All Known Implementing Classes:
UserManagerImpl
public interface UserManager
The workflow engine services relate to user management.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description User
getRelatedUser(User user, String relation, String peasId)
Get a user from a given user and relationUser
getUser(String userId)
Returns the user with the given userIdUser[]
getUsers(String[] userIds)
Make a User[] from a userIds' String[].User[]
getUsersInGroup(String groupId)
User[]
getUsersInRole(String roleName, String processModelId)
Returns all the users having a given role relative to a processModel.
-
-
-
Method Detail
-
getUser
User getUser(String userId) throws WorkflowException
Returns the user with the given userId- Returns:
- the user with the given userId.
- Throws:
WorkflowException
- if the userId is unknown.
-
getUsers
User[] getUsers(String[] userIds) throws WorkflowException
Make a User[] from a userIds' String[].- Throws:
WorkflowException
- if a userId is unknown.
-
getUsersInRole
User[] getUsersInRole(String roleName, String processModelId) throws WorkflowException
Returns all the users having a given role relative to a processModel.- Throws:
WorkflowException
-
getRelatedUser
User getRelatedUser(User user, String relation, String peasId) throws WorkflowException
Get a user from a given user and relation- Parameters:
user
- reference userrelation
- relation between given user and searched userpeasId
- the id of workflow peas associated to that information- Returns:
- the user that has the given relation with given user
- Throws:
WorkflowException
-
-