|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UserService
UserService provides User manipulation methods exposed for remote API and actions.
| Nested Class Summary | |
|---|---|
static class |
UserService.CreateUserValidationResult
|
static class |
UserService.DeleteUserValidationResult
|
static class |
UserService.FieldName
|
| 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 user,
String username,
String password,
String confirmPassword,
String email,
String fullname)
Deprecated. Use validateCreateUserForSignup(com.atlassian.crowd.embedded.api.User, String, String, String, String, String) or
validateCreateUserForSetup(com.atlassian.crowd.embedded.api.User, String, String, String, String, String) instead. Since v5.0. |
UserService.DeleteUserValidationResult |
validateDeleteUser(com.atlassian.crowd.embedded.api.User loggedInUser,
String username)
Validates removing a user for the admin section. |
| Method Detail |
|---|
UserService.CreateUserValidationResult validateCreateUserForSignup(com.atlassian.crowd.embedded.api.User loggedInUser,
String username,
String password,
String confirmPassword,
String email,
String fullname)
loggedInUser - 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 validateCreateUserForSetup(com.atlassian.crowd.embedded.api.User loggedInUser,
String username,
String password,
String confirmPassword,
String email,
String fullname)
loggedInUser - 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 validateCreateUserForSignupOrSetup(com.atlassian.crowd.embedded.api.User user,
String username,
String password,
String confirmPassword,
String email,
String fullname)
validateCreateUserForSignup(com.atlassian.crowd.embedded.api.User, String, String, String, String, String) or
validateCreateUserForSetup(com.atlassian.crowd.embedded.api.User, String, String, String, String, String) instead. Since v5.0.
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.atlassian.crowd.embedded.api.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(com.atlassian.crowd.embedded.api.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(com.atlassian.crowd.embedded.api.User user,
String username,
String password,
String confirmPassword,
String email,
String fullname,
Long directoryId)
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.atlassian.crowd.embedded.api.User createUserFromSignup(UserService.CreateUserValidationResult result)
throws PermissionException,
CreateException
result - The validation result
PermissionException
CreateException
com.atlassian.crowd.embedded.api.User createUserWithNotification(UserService.CreateUserValidationResult result)
throws PermissionException,
CreateException
result - The validation result
PermissionException
CreateException
com.atlassian.crowd.embedded.api.User createUserNoNotification(UserService.CreateUserValidationResult result)
throws PermissionException,
CreateException
result - The validation result
PermissionException
CreateException
UserService.DeleteUserValidationResult validateDeleteUser(com.atlassian.crowd.embedded.api.User loggedInUser,
String username)
loggedInUser - The remote user trying to remove a userusername - The username of the user to remove. Needs to be valid
void removeUser(com.atlassian.crowd.embedded.api.User loggedInUser,
UserService.DeleteUserValidationResult result)
loggedInUser - the user performing operationresult - The validation result
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||