|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UserService
UserService provides User manipulation methds exposed for remote API and actions.
Nested Class Summary | |
---|---|
static class |
UserService.CreateUserValidationResult
|
static class |
UserService.DeleteUserValidationResult
|
static class |
UserService.FieldName
|
Method Summary | |
---|---|
com.opensymphony.user.User |
createUser(UserService.CreateUserValidationResult result)
Given a valid validation result, this will create the user using the details provided in the validation result. |
com.opensymphony.user.User |
createUserForSignup(UserService.CreateUserValidationResult result)
Given a valid validation result, this will create the user using the details provided in the validation result. |
com.opensymphony.user.User |
createUserNoEvent(UserService.CreateUserValidationResult result)
Given a valid validation result, this will create the user using the details provided in the validation result. |
void |
removeUser(com.opensymphony.user.User user,
UserService.DeleteUserValidationResult result)
Given a valid validation result, this will remove the user and removes the user from all the groups. |
UserService.CreateUserValidationResult |
validateCreateUserForAdmin(com.opensymphony.user.User user,
java.lang.String username,
java.lang.String password,
java.lang.String confirmPassword,
java.lang.String email,
java.lang.String fullname)
Validates creating a user for the admin section. |
UserService.CreateUserValidationResult |
validateCreateUserForAdminPasswordRequired(com.opensymphony.user.User user,
java.lang.String username,
java.lang.String password,
java.lang.String confirmPassword,
java.lang.String email,
java.lang.String fullname)
Validates creating a user for RPC calls. |
UserService.CreateUserValidationResult |
validateCreateUserForSignupOrSetup(com.opensymphony.user.User user,
java.lang.String username,
java.lang.String password,
java.lang.String confirmPassword,
java.lang.String email,
java.lang.String fullname)
Validates creating a user during setup of JIRA or during public signup. |
UserService.DeleteUserValidationResult |
validateDeleteUser(com.opensymphony.user.User loggedInUser,
java.lang.String username)
Validates removing a user for the admin section. |
Method Detail |
---|
UserService.CreateUserValidationResult validateCreateUserForSignupOrSetup(com.opensymphony.user.User user, java.lang.String username, java.lang.String password, java.lang.String confirmPassword, java.lang.String email, java.lang.String fullname)
user
- The remote user trying to add a new userusername
- The username of the new user. Needs to be lowercase and unique.password
- The password for the new user.confirmPassword
- The password confirmation. Needs to match password.email
- The email for the new user. Needs to be a valid email address.fullname
- The full name for the new user
UserService.CreateUserValidationResult validateCreateUserForAdminPasswordRequired(com.opensymphony.user.User user, java.lang.String username, java.lang.String password, java.lang.String confirmPassword, java.lang.String email, java.lang.String fullname)
user
- The remote user trying to add a new userusername
- The username of the new user. Needs to be lowercase and unique.password
- The password for the new user.confirmPassword
- The password confirmation. Needs to match password.email
- The email for the new user. Needs to be a valid email address.fullname
- The full name for the new user
UserService.CreateUserValidationResult validateCreateUserForAdmin(com.opensymphony.user.User user, java.lang.String username, java.lang.String password, java.lang.String confirmPassword, java.lang.String email, java.lang.String fullname)
user
- The remote user trying to add a new userusername
- The username of the new user. Needs to be lowercase and unique.password
- The password for the new user.confirmPassword
- The password confirmation. Needs to match password.email
- The email for the new user. Needs to be a valid email address.fullname
- The full name for the new user
com.opensymphony.user.User createUserForSignup(UserService.CreateUserValidationResult result) throws com.opensymphony.user.ImmutableException, com.opensymphony.user.DuplicateEntityException
result
- The validation result
com.opensymphony.user.ImmutableException
- Generic exception ocurred when creating the user
com.opensymphony.user.DuplicateEntityException
- User with this username alread existscom.opensymphony.user.User createUser(UserService.CreateUserValidationResult result) throws com.opensymphony.user.ImmutableException, com.opensymphony.user.DuplicateEntityException
result
- The validation result
com.opensymphony.user.ImmutableException
- Generic exception ocurred when creating the user
com.opensymphony.user.DuplicateEntityException
- User with this username alread existscom.opensymphony.user.User createUserNoEvent(UserService.CreateUserValidationResult result) throws com.opensymphony.user.ImmutableException, com.opensymphony.user.DuplicateEntityException
result
- The validation result
com.opensymphony.user.ImmutableException
- Generic exception ocurred when creating the user
com.opensymphony.user.DuplicateEntityException
- User with this username alread existsUserService.DeleteUserValidationResult validateDeleteUser(com.opensymphony.user.User loggedInUser, java.lang.String username)
loggedInUser
- The remote user trying to remove an userusername
- The username of the user to remove. Needs to be valid
void removeUser(com.opensymphony.user.User user, UserService.DeleteUserValidationResult result)
user
- the user to delete
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |