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

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

public final class LectueFieldVerifier
extends java.lang.Object

Field Verifier Utility for entity Lecture.

Version:
$LastChangedRevision: 231 $
Author:
Enrico Homann

Field Summary
static int ATTRIBUTE_MODULENO_MAX_NUMBER
          Maximum number of chars for attribute loginName.
static int ATTRIBUTE_MODULENO_MIN_NUMBER
          Minimum number of chars for attribute loginName.
static int ATTRIBUTE_PREFACE_MAX_CHARS
          Maximum number of chars for clear text password.
static int ATTRIBUTE_PREFACE_MIN_CHARS
          Minimum number of chars for clear text password.
static int ATTRIBUTE_TITLE_MAX_CHARS
          Maximum number of chars for attribute displayName.
static int ATTRIBUTE_TITLE_MIN_CHARS
          Minimum number of chars for attribute displayName.
 
Method Summary
static java.lang.String checkValidityModuleNo(java.lang.Long nValue)
          Will check for validity of attribute 'loginName'.
static java.lang.String checkValidityPreface(java.lang.String sValue)
          Will check for validity of attribute 'emailAddress'.
static java.lang.String checkValidityTitle(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_MODULENO_MIN_NUMBER

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

See Also:
Constant Field Values

ATTRIBUTE_MODULENO_MAX_NUMBER

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

See Also:
Constant Field Values

ATTRIBUTE_TITLE_MIN_CHARS

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

See Also:
Constant Field Values

ATTRIBUTE_TITLE_MAX_CHARS

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

See Also:
Constant Field Values

ATTRIBUTE_PREFACE_MIN_CHARS

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

See Also:
Constant Field Values

ATTRIBUTE_PREFACE_MAX_CHARS

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

See Also:
Constant Field Values
Method Detail

checkValidityModuleNo

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

Parameters:
nValue - Long
Returns:
String

checkValidityTitle

public static java.lang.String checkValidityTitle(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

checkValidityPreface

public static java.lang.String checkValidityPreface(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