Package com.atlassian.crowd.service
Class SignupSettingsServiceImpl
java.lang.Object
com.atlassian.crowd.service.SignupSettingsServiceImpl
- All Implemented Interfaces:
SignupSettingsService
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns list of domains.boolean
isEmailAllowed
(String email) Checks if the given email address is allowed to sign up.boolean
boolean
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)
-
Field Details
-
NOTIFY_ON_SIGNUP
- See Also:
-
SIGN_UP_ENABLED
- See Also:
-
RESTRICTED_DOMAINS
- See Also:
-
-
Constructor Details
-
SignupSettingsServiceImpl
-
-
Method Details
-
isEmailSentOnSignUp
public boolean isEmailSentOnSignUp()- Specified by:
isEmailSentOnSignUp
in interfaceSignupSettingsService
- Returns:
- true if notification emails should be sent to admins when a user signs themselves up.
-
setEmailSentOnSignUp
public void setEmailSentOnSignUp(boolean notify) - Specified by:
setEmailSentOnSignUp
in interfaceSignupSettingsService
- Parameters:
notify
- true if notification emails should be sent to admins when a user signs themselves up, false if not
-
isSignupEnabled
public boolean isSignupEnabled()- Specified by:
isSignupEnabled
in interfaceSignupSettingsService
- Returns:
- true if users can sign themselves up, false if not
-
setSignupEnabled
public void setSignupEnabled(boolean enabled) - Specified by:
setSignupEnabled
in interfaceSignupSettingsService
- Parameters:
enabled
- true if users can sign themselves up
-
getRestrictedDomains
Description copied from interface:SignupSettingsService
Returns list of domains. Users with email in those domains are allowed to sign up. Provided domain restricted sign up is enabled.- Specified by:
getRestrictedDomains
in interfaceSignupSettingsService
- Returns:
- list of domains
-
setRestrictedDomains
Description copied from interface:SignupSettingsService
Set the domains that user's email address should belong to to be able to sign up.- Specified by:
setRestrictedDomains
in interfaceSignupSettingsService
- Parameters:
domains
- list of domains
-
isEmailAllowed
Description copied from interface:SignupSettingsService
Checks if the given email address is allowed to sign up. This will betrue
if:- The email address' domain is in the list of restricted domains, or
- There are no restricted domains.
false
if signup is disabled.- Specified by:
isEmailAllowed
in interfaceSignupSettingsService
- Parameters:
email
- the email address, which must be valid (a string containing one "@").
-