|
Clearspace API (1.10.16) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RegistrationManager
Manages validation settings and validating new user accounts.
| Field Summary | |
|---|---|
static java.lang.String |
PROPERTY_EMAIL_BODY
|
static java.lang.String |
PROPERTY_EMAIL_SUBJECT
|
static java.lang.String |
PROPERTY_HUMAN_VALIDATION_ENABLED
|
static java.lang.String |
PROPERTY_TERMS_ENABLED
|
static java.lang.String |
PROPERTY_TERMS_URL
|
static java.lang.String |
PROPERTY_USER_VALIDATION_KEY
|
static java.lang.String |
PROPERTY_VALIDATION_ENABLED
|
static java.lang.String |
PROPERTY_WELCOME_EMAIL_BODY
|
static java.lang.String |
PROPERTY_WELCOME_EMAIL_SUBJECT
|
static java.lang.String |
PROPERTY_WELCOME_ENABLED
|
| Method Summary | |
|---|---|
java.lang.String |
getTermsURL()
Gets the string url representing the terms and conditions page |
boolean |
isAccountValidated(long userID)
Checks if a user account has been validated |
boolean |
isHumanValidationEnabled()
Returns true if the human input validation feature is turned on. |
boolean |
isTermsEnabled()
Returns true if terms and conditions is enabled |
boolean |
isValidationEnabled()
Returns true if the validation feature is turned on. |
boolean |
isWelcomeEnabled()
Returns true if welcome email is enabled |
void |
markAccountForValidation(User user)
Marks the user account for validation and sends a validation request to the user. |
void |
sendWelcomeEmail(User user)
Sends a welcome email to the given user. |
void |
setHumanValidationEnabled(boolean humanValidationEnabled)
Enables or disables the human input validation feature. |
void |
setTermsEnabled(boolean termsEnabled)
Sets terms and conditions to be enabled / disabled |
void |
setTermsURL(java.lang.String termsURL)
Sets the string url representing the terms and conditions page |
void |
setValidationEnabled(boolean validationEnabled)
Enables or disables the validation feature. |
void |
setWelcomeEnabled(boolean welcomeEnabled)
Sets welcome email to be enabled / disabled |
boolean |
validateAccount(long userID,
java.lang.String validationKey)
Validates a user account using a unique validation key and sends a welcome email if welcome email is enabled. |
| Methods inherited from interface com.jivesoftware.community.JiveManager |
|---|
destroy, initialize |
| Field Detail |
|---|
static final java.lang.String PROPERTY_VALIDATION_ENABLED
static final java.lang.String PROPERTY_HUMAN_VALIDATION_ENABLED
static final java.lang.String PROPERTY_EMAIL_SUBJECT
static final java.lang.String PROPERTY_EMAIL_BODY
static final java.lang.String PROPERTY_USER_VALIDATION_KEY
static final java.lang.String PROPERTY_WELCOME_ENABLED
static final java.lang.String PROPERTY_WELCOME_EMAIL_SUBJECT
static final java.lang.String PROPERTY_WELCOME_EMAIL_BODY
static final java.lang.String PROPERTY_TERMS_ENABLED
static final java.lang.String PROPERTY_TERMS_URL
| Method Detail |
|---|
boolean isValidationEnabled()
void setValidationEnabled(boolean validationEnabled)
validationEnabled - true to enable the validation feature, false to disable.boolean isHumanValidationEnabled()
void setHumanValidationEnabled(boolean humanValidationEnabled)
humanValidationEnabled - true to enable the human input validation feature, false to disable.boolean isTermsEnabled()
void setTermsEnabled(boolean termsEnabled)
termsEnabled - true to enable terms and conditions; false to disableboolean isWelcomeEnabled()
void setWelcomeEnabled(boolean welcomeEnabled)
welcomeEnabled - true to enable welcome email; false to disablejava.lang.String getTermsURL()
void setTermsURL(java.lang.String termsURL)
termsURL - the string url of the terms and conditions pagevoid markAccountForValidation(User user)
user - the user to mark as needing validationvoid sendWelcomeEmail(User user)
user - the user to send a welcome email to
boolean validateAccount(long userID,
java.lang.String validationKey)
throws UserNotFoundException
userID - the userID representing the user account to validatevalidationKey - the unique validation key
UserNotFoundException - if the user object can not be found
boolean isAccountValidated(long userID)
throws UserNotFoundException
userID - the userID to check
UserNotFoundException - if the user object can not be found
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||