com.atlassian.confluence.plugins.easyuser
Class DefaultEasyUserManager
java.lang.Object
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
Constructor Summary |
DefaultEasyUserManager(com.atlassian.bandana.BandanaManager bandanaManager,
com.atlassian.security.random.SecureTokenGenerator secureTokenGenerator)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
DefaultEasyUserManager
public DefaultEasyUserManager(com.atlassian.bandana.BandanaManager bandanaManager,
com.atlassian.security.random.SecureTokenGenerator secureTokenGenerator)
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.