public interface SignupManager
Modifier and Type | Method and Description |
---|---|
boolean |
canSignUpWith(String token)
Return true if the given token is valid for a user to self-sign-up.
|
String |
createUserPendingConfirmation(com.atlassian.user.User user,
String password)
Creates a new user and marks her disabled pending her email confirmation?
|
boolean |
doesUserHaveOutdatedSignupToken(com.atlassian.user.User user) |
void |
enableConfirmedUser(com.atlassian.user.User user)
Enable previously disabled user who signed up and confirmed her email.
|
String |
getRelativeSignupURL() |
String |
getRestrictedDomains()
Returns comma separated list of domains.
|
String |
getSignUpToken()
Gets the current sign-up token, or creates a new one and returns it.
|
String |
getSignupURL() |
boolean |
isDomainRestrictedSignupEnabled() |
boolean |
isEmailOnRestrictedDomain(String email)
Checks if the given email address is on one of the configured restricted domains.
|
boolean |
isEmailSentOnInviteSignUp() |
boolean |
isPendingConfirmation(com.atlassian.user.User user)
Is given user tried to sign up but hasn't confirmed her email yet?
|
boolean |
isPublicSignupPermitted()
Returns true if users can sign themselves for this instance.
|
boolean |
isTokenForUserValid(com.atlassian.user.User user,
String token) |
String |
refreshAndGetToken()
Creates a new sign-up token and returns it.
|
String |
restorePreviousToken()
Restore the previous private-signup token and returns it.
|
void |
sendConfirmationEmail(String token,
com.atlassian.user.User user)
Sends a confirmation email to the given new user.
|
NotificationSendResult |
sendInvites(SendUserInviteEvent event)
Send invitation emails with a message to a list of email addresses.
|
void |
sendWelcomeEmail(ConfluenceUser user)
Sends a welcome email to the given new user.
|
void |
setDomainRestrictedSignupMode(String allowedDomains)
Set the domains that user's email address should belong to to be able to sign up.
|
void |
setEmailSentOnInviteSignUp(boolean notify) |
void |
setPrivateSignupMode() |
void |
setPublicSignupMode() |
String getSignUpToken()
boolean canSignUpWith(String token)
token
- a sign-up token from a URL given to an invited userString refreshAndGetToken()
boolean isEmailSentOnInviteSignUp()
void setEmailSentOnInviteSignUp(boolean notify)
notify
- true if notification emails should be sent to admins when a user signs themselves up, false if notString restorePreviousToken()
String getSignupURL()
String getRelativeSignupURL()
boolean isPublicSignupPermitted()
NotificationSendResult sendInvites(SendUserInviteEvent event)
void sendConfirmationEmail(String token, com.atlassian.user.User user)
token
- the token that the user must validate againstuser
- the new uservoid sendWelcomeEmail(ConfluenceUser user)
user
- the new uservoid setPublicSignupMode()
void setPrivateSignupMode()
void setDomainRestrictedSignupMode(String allowedDomains)
allowedDomains
- comma separated list of domainsString getRestrictedDomains()
boolean isEmailOnRestrictedDomain(String email)
email
- the email address. Can be null.boolean isPendingConfirmation(com.atlassian.user.User user)
user
- String createUserPendingConfirmation(com.atlassian.user.User user, String password) throws com.atlassian.crowd.exception.runtime.OperationFailedException, com.atlassian.crowd.exception.InvalidUserException, com.atlassian.crowd.exception.InvalidCredentialException, com.atlassian.crowd.exception.OperationNotPermittedException
user
- the new userpassword
- the password for the new usercom.atlassian.crowd.exception.runtime.OperationFailedException
com.atlassian.crowd.exception.InvalidUserException
com.atlassian.crowd.exception.InvalidCredentialException
com.atlassian.crowd.exception.OperationNotPermittedException
void enableConfirmedUser(com.atlassian.user.User user) throws com.atlassian.crowd.exception.runtime.UserNotFoundException, com.atlassian.crowd.exception.runtime.OperationFailedException, com.atlassian.crowd.exception.InvalidUserException, com.atlassian.crowd.exception.OperationNotPermittedException
user
- com.atlassian.crowd.exception.runtime.UserNotFoundException
com.atlassian.crowd.exception.runtime.OperationFailedException
com.atlassian.crowd.exception.InvalidUserException
com.atlassian.crowd.exception.OperationNotPermittedException
boolean isTokenForUserValid(com.atlassian.user.User user, String token)
user
- token
- boolean doesUserHaveOutdatedSignupToken(com.atlassian.user.User user)
user
- boolean isDomainRestrictedSignupEnabled()
Copyright © 2003–2016 Atlassian. All rights reserved.