Class SignupSettingsServiceImpl

java.lang.Object
com.atlassian.crowd.service.SignupSettingsServiceImpl
All Implemented Interfaces:
SignupSettingsService

public class SignupSettingsServiceImpl extends Object implements SignupSettingsService
  • Field Details

  • Constructor Details

    • SignupSettingsServiceImpl

      public SignupSettingsServiceImpl(PluginPropertyManager pluginPropertyManager)
  • Method Details

    • isEmailSentOnSignUp

      public boolean isEmailSentOnSignUp()
      Specified by:
      isEmailSentOnSignUp in interface SignupSettingsService
      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 interface SignupSettingsService
      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 interface SignupSettingsService
      Returns:
      true if users can sign themselves up, false if not
    • setSignupEnabled

      public void setSignupEnabled(boolean enabled)
      Specified by:
      setSignupEnabled in interface SignupSettingsService
      Parameters:
      enabled - true if users can sign themselves up
    • getRestrictedDomains

      public List<String> 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 interface SignupSettingsService
      Returns:
      list of domains
    • setRestrictedDomains

      public void setRestrictedDomains(List<String> domains)
      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 interface SignupSettingsService
      Parameters:
      domains - list of domains
    • isEmailAllowed

      public boolean isEmailAllowed(String email)
      Description copied from interface: SignupSettingsService
      Checks if the given email address is allowed to sign up. This will be true if:
      • The email address' domain is in the list of restricted domains, or
      • There are no restricted domains.
      This is always false if signup is disabled.
      Specified by:
      isEmailAllowed in interface SignupSettingsService
      Parameters:
      email - the email address, which must be valid (a string containing one "@").