|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.objectplanet.survey.plugin.api.UserManager
Manage survey system users. Currently it is only possible to get and update users.
Constructor Summary | |
UserManager()
|
Method Summary | |
static User |
getUser(java.lang.String login)
Gets the user by login name. |
static User |
getUser(User user,
long userId)
Gets the user by id. |
static void |
updateUser(User userToUpdate)
Update user information. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UserManager()
Method Detail |
public static User getUser(User user, long userId) throws SurveySystemException, SurveySecurityException
userId
- User iduser
- User object
SurveySecurityException
- Thrown if the user has no permission to
fulfill the operation
SurveySystemException
- If an error occurs in the applicationpublic static User getUser(java.lang.String login) throws SurveySystemException, SurveySecurityException
SurveySecurityException
will be thrown.
login
- Login name
SurveySecurityException
- Thrown if the login doesn't match with
the user's login name.
SurveySystemException
- If an error occurs in the applicationpublic static void updateUser(User userToUpdate) throws SurveySystemException
SurveySystemException
- If an error occurs in the application
|
Copyright © ObjectPlanet Inc. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |