|
Clearspace API (2.5.29) 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 String |
PROPERTY_ACCOUNT_CREATION_ENABLED
|
static String |
PROPERTY_EMAIL_BODY
|
static String |
PROPERTY_EMAIL_SUBJECT
|
static String |
PROPERTY_HUMAN_VALIDATION_ENABLED
|
static String |
PROPERTY_TERMS_ENABLED
|
static String |
PROPERTY_TERMS_URL
|
static String |
PROPERTY_USER_VALIDATION_KEY
|
static String |
PROPERTY_VALIDATION_ENABLED
|
static String |
PROPERTY_VALIDATION_EXPIRATION_PERIOD
|
static String |
PROPERTY_WELCOME_EMAIL_BODY
|
static String |
PROPERTY_WELCOME_EMAIL_SUBJECT
|
static String |
PROPERTY_WELCOME_ENABLED
|
| Method Summary | |
|---|---|
long |
getRegistrationExpirationPeriod()
Returns the period of time from a users time of registration at which their account will be removed if they have not responded to their validation email. |
Collection<com.jivesoftware.community.user.profile.RegistrationProfileField> |
getRegistrationFields()
Returns the collection of fields displayed at registration. |
com.jivesoftware.community.user.profile.RegistrationProfileField |
getRegistrationProfileField(int profileFieldName)
|
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 |
isNewAccountCreationEnabled()
Returns true if new account creation is enabled. |
boolean |
isNewAccountCreationSupported()
Returns true if Clearspace currently supports creation of new accounts. |
boolean |
isRegistrationModerationEnabled()
|
boolean |
isTermsEnabled()
Returns true if terms and conditions is enabled |
boolean |
isValidationEnabled()
Returns true if the email 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. |
User |
registerUser(UserTemplate 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 |
setNewAccountCreationEnabled(boolean newAccountCreationEnabled)
Enables or disbales new account creation. |
void |
setRegistrationExpirationPeriod(long registrationExpirationPeriod)
Sets the period of time from a users time of registration at which their account will be removed if they have not responded to their validation email. |
void |
setRegistrationModerationEnabled(boolean isRegistrationModerationEnabled)
|
void |
setTermsEnabled(boolean termsEnabled)
Sets terms and conditions to be enabled / disabled |
void |
setTermsURL(String termsURL)
Sets the string url representing the terms and conditions page |
void |
setValidationEnabled(boolean validationEnabled)
Enables or disables the email validation feature. |
void |
setWelcomeEnabled(boolean welcomeEnabled)
Sets welcome email to be enabled / disabled |
void |
updateRegistrationFields(Collection<com.jivesoftware.community.user.profile.RegistrationProfileField> registrationFields)
Updates the ordering of registration profile fields with the ordering specified. |
boolean |
validateAccount(long userID,
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 |
| Field Detail |
|---|
static final String PROPERTY_VALIDATION_ENABLED
static final String PROPERTY_VALIDATION_EXPIRATION_PERIOD
static final String PROPERTY_HUMAN_VALIDATION_ENABLED
static final String PROPERTY_EMAIL_SUBJECT
static final String PROPERTY_EMAIL_BODY
static final String PROPERTY_USER_VALIDATION_KEY
static final String PROPERTY_WELCOME_ENABLED
static final String PROPERTY_WELCOME_EMAIL_SUBJECT
static final String PROPERTY_WELCOME_EMAIL_BODY
static final String PROPERTY_TERMS_ENABLED
static final String PROPERTY_TERMS_URL
static final String PROPERTY_ACCOUNT_CREATION_ENABLED
| Method Detail |
|---|
boolean isNewAccountCreationEnabled()
void setNewAccountCreationEnabled(boolean newAccountCreationEnabled)
newAccountCreationEnabled - true to enable new account creation and false to disable it.boolean isNewAccountCreationSupported()
boolean isValidationEnabled()
void setValidationEnabled(boolean validationEnabled)
validationEnabled - true to enable the validation feature, false to disable.isValidationEnabled()void setRegistrationExpirationPeriod(long registrationExpirationPeriod)
registrationExpirationPeriod - the period of time from a users time of registration at which their account
will be removed if they have not responded to their validation email. This value is measured in millisecondslong getRegistrationExpirationPeriod()
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 disableString getTermsURL()
void setTermsURL(String termsURL)
termsURL - the string url of the terms and conditions pageboolean isRegistrationModerationEnabled()
void setRegistrationModerationEnabled(boolean isRegistrationModerationEnabled)
User registerUser(UserTemplate user)
throws UserAlreadyExistsException,
EmailAlreadyExistsException
UserAlreadyExistsException
EmailAlreadyExistsExceptionvoid 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,
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
IllegalStateException - if the provider user is not currently awaiting validation.
boolean isAccountValidated(long userID)
throws UserNotFoundException
userID - the userID to check
UserNotFoundException - if the user object can not be foundCollection<com.jivesoftware.community.user.profile.RegistrationProfileField> getRegistrationFields()
com.jivesoftware.community.user.profile.RegistrationProfileField getRegistrationProfileField(int profileFieldName)
void updateRegistrationFields(Collection<com.jivesoftware.community.user.profile.RegistrationProfileField> registrationFields)
registrationFields - the collection which provides the ordering
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||