|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.workflow.engine.user.UserManagerImpl
public class UserManagerImpl
A UserManager implementation built upon the silverpeas user management system.
Constructor Summary | |
---|---|
UserManagerImpl()
The constructor builds and set the shared OrganisationController. |
Method Summary | |
---|---|
UserSettings |
getEmptyUserSettings(String userId,
String peasId)
Get an empty user settings in database The full list of information is described in the process model |
User |
getRelatedUser(User user,
String relation,
String peasId)
Get a user from a given user and relation |
String[] |
getRoleNames(User user,
String modelId)
Returns all the roles of a given user relative to a processModel. |
User |
getUser(String userId)
Returns the user with the given userId |
String[] |
getUserInfoNames()
returns all the known info for an user; Each returned value can be used as a parameter to the User method getInfo(). |
User[] |
getUsers(String[] userIds)
Make a User[] from a userIds' String[]. |
UserSettings |
getUserSettings(String userId,
String peasId)
Get the user settings in database The full list of information is described in the process model |
User[] |
getUsersInGroup(String groupId)
|
User[] |
getUsersInRole(String roleName,
String modelId)
Returns all the users having a given role relative to a processModel. |
void |
resetUserSettings(String userId,
String peasId)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserManagerImpl()
Method Detail |
---|
public User getUser(String userId) throws WorkflowException
getUser
in interface UserManager
userId
-
WorkflowException
- if the userId is unknown.public User[] getUsers(String[] userIds) throws WorkflowException
getUsers
in interface UserManager
userIds
-
WorkflowException
public String[] getRoleNames(User user, String modelId) throws WorkflowException
getRoleNames
in interface UserManager
user
- modelId
-
WorkflowException
public User[] getUsersInRole(String roleName, String modelId) throws WorkflowException
getUsersInRole
in interface UserManager
roleName
- modelId
-
WorkflowException
public User[] getUsersInGroup(String groupId)
getUsersInGroup
in interface UserManager
public String[] getUserInfoNames()
getUserInfoNames
in interface UserManager
public User getRelatedUser(User user, String relation, String peasId) throws WorkflowException
getRelatedUser
in interface UserManager
user
- reference userrelation
- relation between given user and searched userpeasId
- the id of workflow peas associated to that information
WorkflowException
public UserSettings getUserSettings(String userId, String peasId) throws WorkflowException
getUserSettings
in interface UserManager
userId
- the user IdpeasId
- the id of workflow peas associated to that information
WorkflowException
ProcessModel
public void resetUserSettings(String userId, String peasId) throws WorkflowException
resetUserSettings
in interface UserManager
userId
- peasId
-
WorkflowException
public UserSettings getEmptyUserSettings(String userId, String peasId)
getEmptyUserSettings
in interface UserManager
userId
- the user IdpeasId
- the id of workflow peas associated to that information
ProcessModel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |