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 SignupSettingsService
public void setEmailSentOnSignUp(boolean notify)
setEmailSentOnSignUp
in interface SignupSettingsService
notify
- true if notification emails should be sent to admins when a user signs themselves up, false if notpublic boolean isSignupEnabled()
isSignupEnabled
in interface SignupSettingsService
public void setSignupEnabled(boolean enabled)
setSignupEnabled
in interface SignupSettingsService
enabled
- true if users can sign themselves uppublic List<String> getRestrictedDomains()
SignupSettingsService
getRestrictedDomains
in interface SignupSettingsService
public void setRestrictedDomains(List<String> domains)
SignupSettingsService
setRestrictedDomains
in interface SignupSettingsService
domains
- list of domainspublic boolean isEmailAllowed(String email)
SignupSettingsService
isEmailAllowed
in interface SignupSettingsService
email
- the email address, which must be valid (a string containing one "@").Copyright © 2019 Atlassian. All rights reserved.