Package com.atlassian.crowd.service
Interface SignupSettingsService
- All Known Implementing Classes:
SignupSettingsServiceImpl
public interface SignupSettingsService
-
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> allowedDomains) Set the domains that user's email address should belong to to be able to sign up.void
setSignupEnabled
(boolean enabled)
-
Method Details
-
isEmailSentOnSignUp
boolean isEmailSentOnSignUp()- Returns:
- true if notification emails should be sent to admins when a user signs themselves up.
-
setEmailSentOnSignUp
void setEmailSentOnSignUp(boolean notify) - Parameters:
notify
- true if notification emails should be sent to admins when a user signs themselves up, false if not
-
setSignupEnabled
void setSignupEnabled(boolean enabled) - Parameters:
enabled
- true if users can sign themselves up
-
isSignupEnabled
boolean isSignupEnabled()- Returns:
- true if users can sign themselves up, false if not
-
setRestrictedDomains
Set the domains that user's email address should belong to to be able to sign up.- Parameters:
allowedDomains
- list of domains
-
getRestrictedDomains
Returns list of domains. Users with email in those domains are allowed to sign up. Provided domain restricted sign up is enabled.- Returns:
- list of domains
-
isEmailAllowed
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.- Parameters:
email
- the email address, which must be valid (a string containing one "@").
-