|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.bc.user.DefaultUserService
public class DefaultUserService
Default implementation of UserService
interface. Contains metohods to create/delete users hiding UserUtil internals.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.atlassian.jira.bc.user.UserService |
---|
UserService.CreateUserValidationResult, UserService.DeleteUserValidationResult, UserService.FieldName |
Constructor Summary | |
---|---|
DefaultUserService(UserUtil userUtil,
PermissionManager permissionManager,
ApplicationProperties applicationProperties)
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultUserService(UserUtil userUtil, PermissionManager permissionManager, ApplicationProperties applicationProperties)
Method Detail |
---|
public 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)
UserService
validateCreateUserForSignupOrSetup
in interface UserService
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
public 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)
UserService
validateCreateUserForAdminPasswordRequired
in interface UserService
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
public 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)
UserService
validateCreateUserForAdmin
in interface UserService
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
public com.opensymphony.user.User createUserNoEvent(UserService.CreateUserValidationResult result) throws com.opensymphony.user.ImmutableException, com.opensymphony.user.DuplicateEntityException
UserService
createUserNoEvent
in interface UserService
result
- The validation result
com.opensymphony.user.ImmutableException
- Generic exception ocurred when creating the user
com.opensymphony.user.DuplicateEntityException
- User with this username alread existspublic com.opensymphony.user.User createUserForSignup(UserService.CreateUserValidationResult result) throws com.opensymphony.user.ImmutableException, com.opensymphony.user.DuplicateEntityException
UserService
createUserForSignup
in interface UserService
result
- The validation result
com.opensymphony.user.ImmutableException
- Generic exception ocurred when creating the user
com.opensymphony.user.DuplicateEntityException
- User with this username alread existspublic com.opensymphony.user.User createUser(UserService.CreateUserValidationResult result) throws com.opensymphony.user.ImmutableException, com.opensymphony.user.DuplicateEntityException
UserService
createUser
in interface UserService
result
- The validation result
com.opensymphony.user.ImmutableException
- Generic exception ocurred when creating the user
com.opensymphony.user.DuplicateEntityException
- User with this username alread existspublic UserService.DeleteUserValidationResult validateDeleteUser(com.opensymphony.user.User loggedInUser, java.lang.String username)
UserService
validateDeleteUser
in interface UserService
loggedInUser
- The remote user trying to remove an userusername
- The username of the user to remove. Needs to be valid
public void removeUser(com.opensymphony.user.User user, UserService.DeleteUserValidationResult result)
UserService
removeUser
in interface UserService
user
- the user to delete
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |