public class DefaultSignupManager extends Object implements SignupManager
| Modifier and Type | Field and Description |
|---|---|
static String |
NOTIFY_ON_SIGNUP_TOKEN |
static String |
PREVIOUS_SIGNUP_TOKEN |
static String |
SIGNUP_TOKEN |
| Constructor and Description |
|---|
DefaultSignupManager(com.atlassian.bandana.BandanaManager bandanaManager,
com.atlassian.security.random.SecureTokenGenerator secureTokenGenerator,
UserAccessor userAccessor,
UserVerificationTokenManager userVerificationTokenManager,
com.atlassian.crowd.embedded.api.CrowdService crowdService,
SettingsManager settingsManager,
com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer,
EmailService notificationsService,
NotificationsSender notificationsSender,
com.atlassian.event.api.EventPublisher eventPublisher,
UserChecker userChecker,
PersonalInformationManager personalInformationManager,
com.atlassian.core.task.MultiQueueTaskManager taskManager,
I18NBeanFactory i18NBeanFactory,
DataSourceFactory dataSourceFactory)
Deprecated.
since 7.17
|
DefaultSignupManager(com.atlassian.bandana.BandanaManager bandanaManager,
com.atlassian.security.random.SecureTokenGenerator secureTokenGenerator,
UserVerificationTokenManager userVerificationTokenManager,
com.atlassian.crowd.embedded.api.CrowdService crowdService,
SettingsManager settingsManager,
com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer,
EmailService notificationsService,
NotificationsSender notificationsSender,
com.atlassian.event.api.EventPublisher eventPublisher,
UserChecker userChecker,
PersonalInformationManager personalInformationManager,
com.atlassian.core.task.MultiQueueTaskManager taskManager,
I18NBeanFactory i18NBeanFactory,
DataSourceFactory dataSourceFactory) |
| 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 them disabled pending their 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 their 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 their 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() |
public static final String SIGNUP_TOKEN
public static final String PREVIOUS_SIGNUP_TOKEN
public static final String NOTIFY_ON_SIGNUP_TOKEN
public DefaultSignupManager(com.atlassian.bandana.BandanaManager bandanaManager,
com.atlassian.security.random.SecureTokenGenerator secureTokenGenerator,
UserVerificationTokenManager userVerificationTokenManager,
com.atlassian.crowd.embedded.api.CrowdService crowdService,
SettingsManager settingsManager,
com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer,
EmailService notificationsService,
NotificationsSender notificationsSender,
com.atlassian.event.api.EventPublisher eventPublisher,
UserChecker userChecker,
PersonalInformationManager personalInformationManager,
com.atlassian.core.task.MultiQueueTaskManager taskManager,
I18NBeanFactory i18NBeanFactory,
DataSourceFactory dataSourceFactory)
@Deprecated public DefaultSignupManager(com.atlassian.bandana.BandanaManager bandanaManager, com.atlassian.security.random.SecureTokenGenerator secureTokenGenerator, UserAccessor userAccessor, UserVerificationTokenManager userVerificationTokenManager, com.atlassian.crowd.embedded.api.CrowdService crowdService, SettingsManager settingsManager, com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer, EmailService notificationsService, NotificationsSender notificationsSender, com.atlassian.event.api.EventPublisher eventPublisher, UserChecker userChecker, PersonalInformationManager personalInformationManager, com.atlassian.core.task.MultiQueueTaskManager taskManager, I18NBeanFactory i18NBeanFactory, DataSourceFactory dataSourceFactory)
public String refreshAndGetToken()
SignupManagerrefreshAndGetToken in interface SignupManagerpublic boolean canSignUpWith(String token)
SignupManagercanSignUpWith in interface SignupManagertoken - a sign-up token from a URL given to an invited userpublic boolean isEmailSentOnInviteSignUp()
isEmailSentOnInviteSignUp in interface SignupManagerpublic boolean isPublicSignupPermitted()
SignupManagerisPublicSignupPermitted in interface SignupManagerpublic String getRelativeSignupURL()
getRelativeSignupURL in interface SignupManagerpublic String getSignupURL()
getSignupURL in interface SignupManagerpublic void setEmailSentOnInviteSignUp(boolean notify)
setEmailSentOnInviteSignUp in interface SignupManagernotify - true if notification emails should be sent to admins when a user signs themselves up, false if notpublic String restorePreviousToken()
SignupManagerrestorePreviousToken in interface SignupManagerpublic String getSignUpToken()
SignupManagergetSignUpToken in interface SignupManagerpublic NotificationSendResult sendInvites(SendUserInviteEvent event)
SignupManagersendInvites in interface SignupManagerpublic void sendConfirmationEmail(String token, com.atlassian.user.User user)
SignupManagersendConfirmationEmail in interface SignupManagertoken - the token that the user must validate againstuser - the new userpublic void sendWelcomeEmail(ConfluenceUser user)
SignupManagersendWelcomeEmail in interface SignupManageruser - the new userpublic void setPublicSignupMode()
setPublicSignupMode in interface SignupManagerpublic void setPrivateSignupMode()
setPrivateSignupMode in interface SignupManagerpublic void setDomainRestrictedSignupMode(String allowedDomains)
SignupManagersetDomainRestrictedSignupMode in interface SignupManagerallowedDomains - comma separated list of domainspublic String getRestrictedDomains()
SignupManagergetRestrictedDomains in interface SignupManagerpublic boolean isEmailOnRestrictedDomain(String email)
SignupManagerisEmailOnRestrictedDomain in interface SignupManageremail - the email address. Can be null.public boolean isPendingConfirmation(com.atlassian.user.User user)
SignupManagerisPendingConfirmation in interface SignupManagerpublic boolean isTokenForUserValid(com.atlassian.user.User user,
String token)
isTokenForUserValid in interface SignupManagerpublic boolean doesUserHaveOutdatedSignupToken(com.atlassian.user.User user)
doesUserHaveOutdatedSignupToken in interface SignupManagerpublic 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
SignupManagerenableConfirmedUser in interface SignupManagercom.atlassian.crowd.exception.runtime.UserNotFoundExceptioncom.atlassian.crowd.exception.runtime.OperationFailedExceptioncom.atlassian.crowd.exception.InvalidUserExceptioncom.atlassian.crowd.exception.OperationNotPermittedExceptionpublic 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
SignupManagercreateUserPendingConfirmation in interface SignupManageruser - the new userpassword - the password for the new usercom.atlassian.crowd.exception.runtime.OperationFailedExceptioncom.atlassian.crowd.exception.InvalidUserExceptioncom.atlassian.crowd.exception.InvalidCredentialExceptioncom.atlassian.crowd.exception.OperationNotPermittedExceptionpublic boolean isDomainRestrictedSignupEnabled()
isDomainRestrictedSignupEnabled in interface SignupManagerCopyright © 2003–2022 Atlassian. All rights reserved.