public class SignupSettingsServiceImpl extends Object implements SignupSettingsService
| Modifier and Type | Field and Description |
|---|---|
static String |
NOTIFY_ON_SIGNUP |
static String |
RESTRICTED_DOMAINS |
static String |
SIGN_UP_ENABLED |
| Constructor and Description |
|---|
SignupSettingsServiceImpl(PluginPropertyManager pluginPropertyManager) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getRestrictedDomains()
Returns list of domains.
|
boolean |
isEmailAllowed(String email)
Checks if the given email address is allowed to sign up.
|
boolean |
isEmailSentOnSignUp() |
boolean |
isSignupEnabled() |
void |
setEmailSentOnSignUp(boolean notify) |
void |
setRestrictedDomains(List<String> domains)
Set the domains that user's email address should belong to to be able to sign up.
|
void |
setSignupEnabled(boolean enabled) |
public static final String NOTIFY_ON_SIGNUP
public static final String SIGN_UP_ENABLED
public static final String RESTRICTED_DOMAINS
public SignupSettingsServiceImpl(PluginPropertyManager pluginPropertyManager)
public boolean isEmailSentOnSignUp()
isEmailSentOnSignUp in interface SignupSettingsServicepublic void setEmailSentOnSignUp(boolean notify)
setEmailSentOnSignUp in interface SignupSettingsServicenotify - true if notification emails should be sent to admins when a user signs themselves up, false if notpublic boolean isSignupEnabled()
isSignupEnabled in interface SignupSettingsServicepublic void setSignupEnabled(boolean enabled)
setSignupEnabled in interface SignupSettingsServiceenabled - true if users can sign themselves uppublic List<String> getRestrictedDomains()
SignupSettingsServicegetRestrictedDomains in interface SignupSettingsServicepublic void setRestrictedDomains(List<String> domains)
SignupSettingsServicesetRestrictedDomains in interface SignupSettingsServicedomains - list of domainspublic boolean isEmailAllowed(String email)
SignupSettingsServiceisEmailAllowed in interface SignupSettingsServiceemail - the email address, which must be valid (a string containing one "@").Copyright © 2021 Atlassian. All rights reserved.