com.plumtree.portalpages.common.passwordvalidation
Class PasswordValidationHelper

java.lang.Object
  extended by com.plumtree.portalpages.common.passwordvalidation.PasswordValidationHelper

public class PasswordValidationHelper
extends java.lang.Object

This class defines constants and helper methods used in the CreateAccountView and PasswordView classes. Some if not all of the constants are used to generate JS constants that will be used for the client-side password validation on the Create Account and Change Account Password pages.

Author:
BobbyT

Field Summary
static java.lang.String CANNOT_CONTAIN_USER_ID_I18N
           
static java.lang.String ENTER_OLD_PASSWORD_I18N
           
static java.lang.String ENTER_USERNAME_I18N
           
static java.lang.String MUST_CONTAIN_NUMBER_I18N
           
static java.lang.String MUST_CONTAIN_PUNCTUATION_I18N
           
static java.lang.String MUST_CONTAIN_UPPER_LOWER_CASE_I18N
           
static java.lang.String NO_BLANK_SPACES_I18N
           
static java.lang.String PASSWORD_TOO_LONG_I18N
           
static java.lang.String PASSWORD_TOO_SHORT_I18N
           
static java.lang.String PASSWORD_VALID_I18N
           
static java.lang.String PASSWORDS_MIN_LENGTH_I18N
           
static java.lang.String PASSWORDS_MUST_BE_SAME_I18N
          i18n strings used for Create Account and Change Password Pages
static java.lang.String STR_CREATE_ACCOUNT_FORM_ID
           
static java.lang.String STR_CURRENT_USERNAME
          Current username of the user logged in.
static java.lang.String STR_INPUT_CONFIRM_PASSWORD_ID
           
static java.lang.String STR_INPUT_DOCREATE_ID
           
static java.lang.String STR_INPUT_NEW_PASSWSORD_ID
           
static java.lang.String STR_INPUT_OLD_PASSWORD_ID
           
static java.lang.String STR_INPUT_OLD_PASSWORD_VALIDATION_STATUS_ID
           
static java.lang.String STR_INPUT_PASSWORD_VALIDATION_STATUS_ID
           
static java.lang.String STR_INPUT_USERNAME_ID
           
static java.lang.String STR_INPUT_USERNAME_VALIDATION_STATUS_ID
           
static java.lang.String STR_INVALID_ICON_FILENAME
           
static java.lang.String STR_INVALID_ICON_URL
           
static java.lang.String STR_JS_CHECK_PASSWORD
          Javscript function: checkPassword, validation function used in PasswordAS/PasswordView
static java.lang.String STR_JS_CREATE_ACCOUNT
          Javascript function: doCreateAccountS, function used in CreateAccountView
static java.lang.String STR_JS_HANDLE_BACKSPACE_INPUT
          Javscript function: handleBackspaceInput, function used in CreateAccountView and PasswordView
static java.lang.String STR_JS_HANDLE_USER_INPUT
          Javscript function: handleUserInput, function used in CreateAccountView and PasswordView
static java.lang.String STR_LOWER_UPPER_CASE_STATUS_ID
           
static java.lang.String STR_LOWER_UPPER_CASE_STATUS_NAME
           
static java.lang.String STR_MIN_MAX_LENGTH_STATUS_ID
          UI Elements that appear on the Create Account and Change Password Views
static java.lang.String STR_MIN_MAX_LENGTH_STATUS_NAME
           
static java.lang.String STR_NUMBER_STATUS_ID
           
static java.lang.String STR_NUMBER_STATUS_NAME
           
static java.lang.String STR_OLD_PASSWORD_VALIDATION_STATUS_NAME
           
static java.lang.String STR_PASSWORD_INCLUDE_CASING
           
static java.lang.String STR_PASSWORD_INCLUDE_NUMBERS
           
static java.lang.String STR_PASSWORD_INCLUDE_PUNCTUATION
           
static java.lang.String STR_PASSWORD_MAX_LENGTH
           
static java.lang.String STR_PASSWORD_MIN_LENGTH
          Password Management Rules Settings
static java.lang.String STR_PASSWORD_NO_USER_IDS
           
static java.lang.String STR_PASSWORD_VALIDATION_JS_NAMESPACE
          The following Javscript Constants will be used to generate JS on the server-side which will be consumed by client-side validation on the Create Account and Change Account Password pages.
static java.lang.String STR_PASSWORD_VALIDATION_STATUS_NAME
           
static java.lang.String STR_PUNCTUATION_STATUS_ID
           
static java.lang.String STR_PUNCTUATION_STATUS_NAME
           
static java.lang.String STR_PW_VALIDATION_JS
          Javascript file that will be included on server side for client-side validation.
static java.lang.String STR_USERNAME_STATUS_ID
           
static java.lang.String STR_USERNAME_STATUS_NAME
           
static java.lang.String STR_USERNAME_VALIDATION_STATUS_NAME
           
static java.lang.String STR_VALID_ICON_FILENAME
           
static java.lang.String STR_VALID_ICON_URL
           
static java.lang.String STR_WARNING_ICON_FILENAME
           
 
Constructor Summary
PasswordValidationHelper()
           
 
Method Summary
static java.lang.String GetPasswordValidationJSURL(AActivitySpace owner)
          Gets the URL of the javascript used for client-side validation.
static java.lang.String GetPortalImageServerFolderURL(AActivitySpace owner)
          Gets the URL of the portal imageserver folder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STR_JS_CREATE_ACCOUNT

public static final java.lang.String STR_JS_CREATE_ACCOUNT
Javascript function: doCreateAccountS, function used in CreateAccountView

See Also:
Constant Field Values

STR_JS_HANDLE_USER_INPUT

public static final java.lang.String STR_JS_HANDLE_USER_INPUT
Javscript function: handleUserInput, function used in CreateAccountView and PasswordView

See Also:
Constant Field Values

STR_JS_HANDLE_BACKSPACE_INPUT

public static final java.lang.String STR_JS_HANDLE_BACKSPACE_INPUT
Javscript function: handleBackspaceInput, function used in CreateAccountView and PasswordView

See Also:
Constant Field Values

STR_JS_CHECK_PASSWORD

public static final java.lang.String STR_JS_CHECK_PASSWORD
Javscript function: checkPassword, validation function used in PasswordAS/PasswordView

See Also:
Constant Field Values

STR_PW_VALIDATION_JS

public static final java.lang.String STR_PW_VALIDATION_JS
Javascript file that will be included on server side for client-side validation.

See Also:
Constant Field Values

STR_PASSWORD_VALIDATION_JS_NAMESPACE

public static final java.lang.String STR_PASSWORD_VALIDATION_JS_NAMESPACE
The following Javscript Constants will be used to generate JS on the server-side which will be consumed by client-side validation on the Create Account and Change Account Password pages. These constants will be used in ptpasswordvalidation.js.

See Also:
Constant Field Values

STR_CURRENT_USERNAME

public static final java.lang.String STR_CURRENT_USERNAME
Current username of the user logged in. This constant is used when performing validation on the Change Password page.

See Also:
Constant Field Values

STR_PASSWORD_MIN_LENGTH

public static final java.lang.String STR_PASSWORD_MIN_LENGTH
Password Management Rules Settings

See Also:
Constant Field Values

STR_PASSWORD_MAX_LENGTH

public static final java.lang.String STR_PASSWORD_MAX_LENGTH
See Also:
Constant Field Values

STR_PASSWORD_INCLUDE_NUMBERS

public static final java.lang.String STR_PASSWORD_INCLUDE_NUMBERS
See Also:
Constant Field Values

STR_PASSWORD_INCLUDE_CASING

public static final java.lang.String STR_PASSWORD_INCLUDE_CASING
See Also:
Constant Field Values

STR_PASSWORD_INCLUDE_PUNCTUATION

public static final java.lang.String STR_PASSWORD_INCLUDE_PUNCTUATION
See Also:
Constant Field Values

STR_PASSWORD_NO_USER_IDS

public static final java.lang.String STR_PASSWORD_NO_USER_IDS
See Also:
Constant Field Values

PASSWORDS_MUST_BE_SAME_I18N

public static final java.lang.String PASSWORDS_MUST_BE_SAME_I18N
i18n strings used for Create Account and Change Password Pages

See Also:
Constant Field Values

PASSWORDS_MIN_LENGTH_I18N

public static final java.lang.String PASSWORDS_MIN_LENGTH_I18N
See Also:
Constant Field Values

ENTER_USERNAME_I18N

public static final java.lang.String ENTER_USERNAME_I18N
See Also:
Constant Field Values

ENTER_OLD_PASSWORD_I18N

public static final java.lang.String ENTER_OLD_PASSWORD_I18N
See Also:
Constant Field Values

PASSWORD_TOO_SHORT_I18N

public static final java.lang.String PASSWORD_TOO_SHORT_I18N
See Also:
Constant Field Values

PASSWORD_TOO_LONG_I18N

public static final java.lang.String PASSWORD_TOO_LONG_I18N
See Also:
Constant Field Values

NO_BLANK_SPACES_I18N

public static final java.lang.String NO_BLANK_SPACES_I18N
See Also:
Constant Field Values

MUST_CONTAIN_UPPER_LOWER_CASE_I18N

public static final java.lang.String MUST_CONTAIN_UPPER_LOWER_CASE_I18N
See Also:
Constant Field Values

MUST_CONTAIN_NUMBER_I18N

public static final java.lang.String MUST_CONTAIN_NUMBER_I18N
See Also:
Constant Field Values

MUST_CONTAIN_PUNCTUATION_I18N

public static final java.lang.String MUST_CONTAIN_PUNCTUATION_I18N
See Also:
Constant Field Values

CANNOT_CONTAIN_USER_ID_I18N

public static final java.lang.String CANNOT_CONTAIN_USER_ID_I18N
See Also:
Constant Field Values

PASSWORD_VALID_I18N

public static final java.lang.String PASSWORD_VALID_I18N
See Also:
Constant Field Values

STR_MIN_MAX_LENGTH_STATUS_ID

public static final java.lang.String STR_MIN_MAX_LENGTH_STATUS_ID
UI Elements that appear on the Create Account and Change Password Views

See Also:
Constant Field Values

STR_MIN_MAX_LENGTH_STATUS_NAME

public static final java.lang.String STR_MIN_MAX_LENGTH_STATUS_NAME
See Also:
Constant Field Values

STR_NUMBER_STATUS_ID

public static final java.lang.String STR_NUMBER_STATUS_ID
See Also:
Constant Field Values

STR_NUMBER_STATUS_NAME

public static final java.lang.String STR_NUMBER_STATUS_NAME
See Also:
Constant Field Values

STR_LOWER_UPPER_CASE_STATUS_ID

public static final java.lang.String STR_LOWER_UPPER_CASE_STATUS_ID
See Also:
Constant Field Values

STR_LOWER_UPPER_CASE_STATUS_NAME

public static final java.lang.String STR_LOWER_UPPER_CASE_STATUS_NAME
See Also:
Constant Field Values

STR_PUNCTUATION_STATUS_ID

public static final java.lang.String STR_PUNCTUATION_STATUS_ID
See Also:
Constant Field Values

STR_PUNCTUATION_STATUS_NAME

public static final java.lang.String STR_PUNCTUATION_STATUS_NAME
See Also:
Constant Field Values

STR_USERNAME_STATUS_ID

public static final java.lang.String STR_USERNAME_STATUS_ID
See Also:
Constant Field Values

STR_USERNAME_STATUS_NAME

public static final java.lang.String STR_USERNAME_STATUS_NAME
See Also:
Constant Field Values

STR_INPUT_USERNAME_ID

public static final java.lang.String STR_INPUT_USERNAME_ID
See Also:
Constant Field Values

STR_INPUT_OLD_PASSWORD_ID

public static final java.lang.String STR_INPUT_OLD_PASSWORD_ID
See Also:
Constant Field Values

STR_INPUT_NEW_PASSWSORD_ID

public static final java.lang.String STR_INPUT_NEW_PASSWSORD_ID
See Also:
Constant Field Values

STR_INPUT_CONFIRM_PASSWORD_ID

public static final java.lang.String STR_INPUT_CONFIRM_PASSWORD_ID
See Also:
Constant Field Values

STR_INPUT_USERNAME_VALIDATION_STATUS_ID

public static final java.lang.String STR_INPUT_USERNAME_VALIDATION_STATUS_ID
See Also:
Constant Field Values

STR_USERNAME_VALIDATION_STATUS_NAME

public static final java.lang.String STR_USERNAME_VALIDATION_STATUS_NAME
See Also:
Constant Field Values

STR_INPUT_PASSWORD_VALIDATION_STATUS_ID

public static final java.lang.String STR_INPUT_PASSWORD_VALIDATION_STATUS_ID
See Also:
Constant Field Values

STR_PASSWORD_VALIDATION_STATUS_NAME

public static final java.lang.String STR_PASSWORD_VALIDATION_STATUS_NAME
See Also:
Constant Field Values

STR_INPUT_OLD_PASSWORD_VALIDATION_STATUS_ID

public static final java.lang.String STR_INPUT_OLD_PASSWORD_VALIDATION_STATUS_ID
See Also:
Constant Field Values

STR_OLD_PASSWORD_VALIDATION_STATUS_NAME

public static final java.lang.String STR_OLD_PASSWORD_VALIDATION_STATUS_NAME
See Also:
Constant Field Values

STR_CREATE_ACCOUNT_FORM_ID

public static final java.lang.String STR_CREATE_ACCOUNT_FORM_ID
See Also:
Constant Field Values

STR_INPUT_DOCREATE_ID

public static final java.lang.String STR_INPUT_DOCREATE_ID
See Also:
Constant Field Values

STR_VALID_ICON_URL

public static final java.lang.String STR_VALID_ICON_URL
See Also:
Constant Field Values

STR_VALID_ICON_FILENAME

public static final java.lang.String STR_VALID_ICON_FILENAME
See Also:
Constant Field Values

STR_INVALID_ICON_URL

public static final java.lang.String STR_INVALID_ICON_URL
See Also:
Constant Field Values

STR_INVALID_ICON_FILENAME

public static final java.lang.String STR_INVALID_ICON_FILENAME
See Also:
Constant Field Values

STR_WARNING_ICON_FILENAME

public static final java.lang.String STR_WARNING_ICON_FILENAME
See Also:
Constant Field Values
Constructor Detail

PasswordValidationHelper

public PasswordValidationHelper()
Method Detail

GetPasswordValidationJSURL

public static java.lang.String GetPasswordValidationJSURL(AActivitySpace owner)
Gets the URL of the javascript used for client-side validation.

Parameters:
owner - AActivitySpace
Returns:
String URL of the js file.

GetPortalImageServerFolderURL

public static java.lang.String GetPortalImageServerFolderURL(AActivitySpace owner)
Gets the URL of the portal imageserver folder.

Parameters:
owner - @param owner AActivitySpace
Returns:
String URL to the portal imageserver folder.



Copyright © 2002,2003,2004,2005 Plumtree Software, Inc., All Rights Reserved.