com.atlassian.confluence.plugins.easyuser
Class DefaultEasyUserManager

java.lang.Object
  extended by com.atlassian.confluence.plugins.easyuser.DefaultEasyUserManager
All Implemented Interfaces:
EasyUserManager

public class DefaultEasyUserManager
extends Object
implements EasyUserManager

Handles easy-user creation in its myriad forms.

Since:
v4.2

Field Summary
static String NOTIFY_ON_SIGNUP_TOKEN
           
static String SIGNUP_TOKEN
           
 
Constructor Summary
DefaultEasyUserManager(com.atlassian.bandana.BandanaManager bandanaManager, com.atlassian.security.random.SecureTokenGenerator secureTokenGenerator)
           
 
Method Summary
 boolean canSignUpWith(String token)
          Return true if the given token is valid for a user to self-sign-up.
 String getSignUpToken()
          Gets the current sign-up token, or creates a new one and returns it.
 Boolean isEmailSentOnInviteSignUp()
           
 String refreshAndGetToken()
          Creates a new sign-up token and returns it.
 void setEmailSentOnInviteSignUp(boolean notify)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SIGNUP_TOKEN

public static final String SIGNUP_TOKEN
See Also:
Constant Field Values

NOTIFY_ON_SIGNUP_TOKEN

public static final String NOTIFY_ON_SIGNUP_TOKEN
See Also:
Constant Field Values
Constructor Detail

DefaultEasyUserManager

public DefaultEasyUserManager(com.atlassian.bandana.BandanaManager bandanaManager,
                              com.atlassian.security.random.SecureTokenGenerator secureTokenGenerator)
Method Detail

getSignUpToken

public String getSignUpToken()
Description copied from interface: EasyUserManager
Gets the current sign-up token, or creates a new one and returns it.

Specified by:
getSignUpToken in interface EasyUserManager
Returns:
a random sign-up token

refreshAndGetToken

public String refreshAndGetToken()
Description copied from interface: EasyUserManager
Creates a new sign-up token and returns it. This invalidates the previous token.

Specified by:
refreshAndGetToken in interface EasyUserManager
Returns:
a random sign-up token

canSignUpWith

public boolean canSignUpWith(String token)
Description copied from interface: EasyUserManager
Return true if the given token is valid for a user to self-sign-up.

Specified by:
canSignUpWith in interface EasyUserManager
Parameters:
token - a sign-up token from a URL given to an invited user

isEmailSentOnInviteSignUp

public Boolean isEmailSentOnInviteSignUp()
Specified by:
isEmailSentOnInviteSignUp in interface EasyUserManager
Returns:
true if notification emails should be sent to admins when a user signs themselves up.

setEmailSentOnInviteSignUp

public void setEmailSentOnInviteSignUp(boolean notify)
Specified by:
setEmailSentOnInviteSignUp in interface EasyUserManager
Parameters:
notify - true if notification emails should be sent to admins when a user signs themselves up, false if not


Copyright © 2003-2012 Atlassian. All Rights Reserved.