|
||||||||||
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 | |
---|---|
User |
createUser(UserService.CreateUserValidationResult result)
Given a valid validation result, this will create the user using the details provided in the validation result. |
User |
createUserForSignup(UserService.CreateUserValidationResult result)
Given a valid validation result, this will create the user using the details provided in the validation result. |
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(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(User user,
String username,
String password,
String confirmPassword,
String email,
String fullname)
Validates creating a user for the admin section. |
UserService.CreateUserValidationResult |
validateCreateUserForAdminPasswordRequired(User user,
String username,
String password,
String confirmPassword,
String email,
String fullname)
Validates creating a user for RPC calls. |
UserService.CreateUserValidationResult |
validateCreateUserForSignupOrSetup(User user,
String username,
String password,
String confirmPassword,
String email,
String fullname)
Validates creating a user during setup of JIRA or during public signup. |
UserService.DeleteUserValidationResult |
validateDeleteUser(User loggedInUser,
String username)
Validates removing a user for the admin section. |
Method Detail |
---|
UserService.CreateUserValidationResult validateCreateUserForSignupOrSetup(User user, String username, String password, String confirmPassword, String email, 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(User user, String username, String password, String confirmPassword, String email, 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(User user, String username, String password, String confirmPassword, String email, 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
User createUserForSignup(UserService.CreateUserValidationResult result) throws ImmutableException, DuplicateEntityException
result
- The validation result
ImmutableException
- Generic exception ocurred when creating the user
DuplicateEntityException
- User with this username alread existsUser createUser(UserService.CreateUserValidationResult result) throws ImmutableException, DuplicateEntityException
result
- The validation result
ImmutableException
- Generic exception ocurred when creating the user
DuplicateEntityException
- User with this username alread existsUser createUserNoEvent(UserService.CreateUserValidationResult result) throws ImmutableException, DuplicateEntityException
result
- The validation result
ImmutableException
- Generic exception ocurred when creating the user
DuplicateEntityException
- User with this username alread existsUserService.DeleteUserValidationResult validateDeleteUser(User loggedInUser, String username)
loggedInUser
- The remote user trying to remove an userusername
- The username of the user to remove. Needs to be valid
void removeUser(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 |