|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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,
UserManager userManager,
JiraContactHelper jiraContactHelper,
I18nHelper.BeanFactory i18nFactory)
|
|
| Method Summary | |
|---|---|
com.atlassian.crowd.embedded.api.User |
createUserFromSignup(UserService.CreateUserValidationResult result)
Given a valid validation result, this will create the user using the details provided in the validation result. |
com.atlassian.crowd.embedded.api.User |
createUserNoNotification(UserService.CreateUserValidationResult result)
Given a valid validation result, this will create the user using the details provided in the validation result. |
com.atlassian.crowd.embedded.api.User |
createUserWithNotification(UserService.CreateUserValidationResult result)
Given a valid validation result, this will create the user using the details provided in the validation result. |
void |
removeUser(com.atlassian.crowd.embedded.api.User loggedInUser,
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.atlassian.crowd.embedded.api.User user,
String username,
String password,
String confirmPassword,
String email,
String fullname)
Validates creating a user for the admin section. |
UserService.CreateUserValidationResult |
validateCreateUserForAdmin(com.atlassian.crowd.embedded.api.User user,
String username,
String password,
String confirmPassword,
String email,
String fullname,
Long directoryId)
Validates creating a user for the admin section. |
UserService.CreateUserValidationResult |
validateCreateUserForAdminPasswordRequired(com.atlassian.crowd.embedded.api.User user,
String username,
String password,
String confirmPassword,
String email,
String fullname)
Validates creating a user for RPC calls. |
UserService.CreateUserValidationResult |
validateCreateUserForSetup(com.atlassian.crowd.embedded.api.User loggedInUser,
String username,
String password,
String confirmPassword,
String email,
String fullname)
Validates creating a user during setup of JIRA. |
UserService.CreateUserValidationResult |
validateCreateUserForSignup(com.atlassian.crowd.embedded.api.User loggedInUser,
String username,
String password,
String confirmPassword,
String email,
String fullname)
Validates creating a user during public signup. |
UserService.CreateUserValidationResult |
validateCreateUserForSignupOrSetup(com.atlassian.crowd.embedded.api.User loggedInUser,
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(com.atlassian.crowd.embedded.api.User loggedInUser,
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,
UserManager userManager,
JiraContactHelper jiraContactHelper,
I18nHelper.BeanFactory i18nFactory)
| Method Detail |
|---|
public UserService.CreateUserValidationResult validateCreateUserForSignup(com.atlassian.crowd.embedded.api.User loggedInUser,
String username,
String password,
String confirmPassword,
String email,
String fullname)
UserService
validateCreateUserForSignup in interface UserServiceloggedInUser - 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 validateCreateUserForSetup(com.atlassian.crowd.embedded.api.User loggedInUser,
String username,
String password,
String confirmPassword,
String email,
String fullname)
UserService
validateCreateUserForSetup in interface UserServiceloggedInUser - 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 validateCreateUserForSignupOrSetup(com.atlassian.crowd.embedded.api.User loggedInUser,
String username,
String password,
String confirmPassword,
String email,
String fullname)
UserService
validateCreateUserForSignupOrSetup in interface UserServiceloggedInUser - 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.atlassian.crowd.embedded.api.User user,
String username,
String password,
String confirmPassword,
String email,
String fullname)
UserService
validateCreateUserForAdminPasswordRequired in interface UserServiceuser - 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.atlassian.crowd.embedded.api.User user,
String username,
String password,
String confirmPassword,
String email,
String fullname)
UserService
validateCreateUserForAdmin in interface UserServiceuser - 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.atlassian.crowd.embedded.api.User user,
String username,
String password,
String confirmPassword,
String email,
String fullname,
Long directoryId)
UserService
validateCreateUserForAdmin in interface UserServiceuser - 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.atlassian.crowd.embedded.api.User createUserNoNotification(UserService.CreateUserValidationResult result)
throws PermissionException,
CreateException
UserService
createUserNoNotification in interface UserServiceresult - The validation result
PermissionException
CreateException
public com.atlassian.crowd.embedded.api.User createUserFromSignup(UserService.CreateUserValidationResult result)
throws PermissionException,
CreateException
UserService
createUserFromSignup in interface UserServiceresult - The validation result
PermissionException
CreateException
public com.atlassian.crowd.embedded.api.User createUserWithNotification(UserService.CreateUserValidationResult result)
throws PermissionException,
CreateException
UserService
createUserWithNotification in interface UserServiceresult - The validation result
PermissionException
CreateException
public UserService.DeleteUserValidationResult validateDeleteUser(com.atlassian.crowd.embedded.api.User loggedInUser,
String username)
UserService
validateDeleteUser in interface UserServiceloggedInUser - The remote user trying to remove a userusername - The username of the user to remove. Needs to be valid
public void removeUser(com.atlassian.crowd.embedded.api.User loggedInUser,
UserService.DeleteUserValidationResult result)
UserService
removeUser in interface UserServiceloggedInUser - the user performing operationresult - The validation result
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||