Package com.atlassian.crowd.service
Interface SignupSettingsService
public interface SignupSettingsService
-
Method Summary
Modifier and TypeMethodDescriptionReturns list of domains.booleanisEmailAllowed(String email) Checks if the given email address is allowed to sign up.booleanbooleanvoidsetEmailSentOnSignUp(boolean notify) voidsetRestrictedDomains(List<String> allowedDomains) Set the domains that user's email address should belong to to be able to sign up.voidsetSignupEnabled(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 betrueif:- The email address' domain is in the list of restricted domains, or
- There are no restricted domains.
falseif signup is disabled.- Parameters:
email- the email address, which must be valid (a string containing one "@").
-