de.hs_rm.cs.lecturenotes.shared.policy
Class UserFieldVerifier

java.lang.Object
  extended by de.hs_rm.cs.lecturenotes.shared.policy.UserFieldVerifier

public final class UserFieldVerifier
extends java.lang.Object

Field Verifier Utility for entity User.

Version:
$LastChangedRevision: 231 $
Author:
Enrico Homann

Field Summary
static int ATTRIBUTE_CLEARTEXTPASSWORD_MAX_CHARS
          Maximum number of chars for clear text password.
static int ATTRIBUTE_CLEARTEXTPASSWORD_MIN_CHARS
          Minimum number of chars for clear text password.
static int ATTRIBUTE_DISPLAYNAME_MAX_CHARS
          Maximum number of chars for attribute displayName.
static int ATTRIBUTE_DISPLAYNAME_MIN_CHARS
          Minimum number of chars for attribute displayName.
static int ATTRIBUTE_LOGINNAME_MAX_CHARS
          Maximum number of chars for attribute loginName.
static int ATTRIBUTE_LOGINNAME_MIN_CHARS
          Minimum number of chars for attribute loginName.
 
Method Summary
static java.lang.String checkValidityClearTextPassword(java.lang.String sValue)
          Will check for validity for clear text password input (not the sha password hash).
static java.lang.String checkValidityDisplayName(java.lang.String sValue)
          Will check for validity of attribute 'loginName'.
static java.lang.String checkValidityEmailAddress(java.lang.String sValue)
          Will check for validity of attribute 'emailAddress'.
static java.lang.String checkValidityLoginName(java.lang.String sValue)
          Will check for validity of attribute 'loginName'.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTRIBUTE_LOGINNAME_MIN_CHARS

public static final int ATTRIBUTE_LOGINNAME_MIN_CHARS
Minimum number of chars for attribute loginName.

See Also:
Constant Field Values

ATTRIBUTE_LOGINNAME_MAX_CHARS

public static final int ATTRIBUTE_LOGINNAME_MAX_CHARS
Maximum number of chars for attribute loginName.

See Also:
Constant Field Values

ATTRIBUTE_DISPLAYNAME_MIN_CHARS

public static final int ATTRIBUTE_DISPLAYNAME_MIN_CHARS
Minimum number of chars for attribute displayName.

See Also:
Constant Field Values

ATTRIBUTE_DISPLAYNAME_MAX_CHARS

public static final int ATTRIBUTE_DISPLAYNAME_MAX_CHARS
Maximum number of chars for attribute displayName.

See Also:
Constant Field Values

ATTRIBUTE_CLEARTEXTPASSWORD_MIN_CHARS

public static final int ATTRIBUTE_CLEARTEXTPASSWORD_MIN_CHARS
Minimum number of chars for clear text password.

See Also:
Constant Field Values

ATTRIBUTE_CLEARTEXTPASSWORD_MAX_CHARS

public static final int ATTRIBUTE_CLEARTEXTPASSWORD_MAX_CHARS
Maximum number of chars for clear text password.

See Also:
Constant Field Values
Method Detail

checkValidityLoginName

public static java.lang.String checkValidityLoginName(java.lang.String sValue)
Will check for validity of attribute 'loginName'. Returns a error message if invalid or null if value is valid.

Parameters:
sValue - String
Returns:
String

checkValidityDisplayName

public static java.lang.String checkValidityDisplayName(java.lang.String sValue)
Will check for validity of attribute 'loginName'. Returns a error message if invalid or null if value is valid.

Parameters:
sValue - String
Returns:
String

checkValidityEmailAddress

public static java.lang.String checkValidityEmailAddress(java.lang.String sValue)
Will check for validity of attribute 'emailAddress'. Returns a error message if invalid or null if value is valid.

Parameters:
sValue - String
Returns:
String

checkValidityClearTextPassword

public static java.lang.String checkValidityClearTextPassword(java.lang.String sValue)
Will check for validity for clear text password input (not the sha password hash). Returns a error message if invalid or null if value is valid.

Parameters:
sValue - String
Returns:
String