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

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

public final class AnnotationFieldVerifierUtil
extends java.lang.Object

Field Verifier Utility for entity Annotation.

Version:
$LastChangedRevision: 241 $
Author:
Enrico Homann

Field Summary
static int ATTRBIUTE_CONTENT_MIN_CHARS
          Minimum number of chars for attribute content.
static int ATTRIBUTE_TITLE_MAX_CHARS
          Maximum number of chars for attribute title.
static int ATTRIBUTE_TITLE_MIN_CHARS
          Minimum number of chars for attribute title.
 
Method Summary
static java.lang.String checkValidityContent(java.lang.String sValue)
          Will check for validity of attribute 'content'.
static java.lang.String checkValidityCreationUnixTimestamp(long value)
          Will check for validity of attribute 'creationUnixTimestamp'.
static java.lang.String checkValidityId(long value)
          Will check for validity of attribute 'id'.
static java.lang.String checkValidityLastModifiedUnixTimestamp(long value)
          Will check for validity of attribute 'lastModifiedUnixTimestamp'.
static java.lang.String checkValidityParagraphId(long value)
          Will check for validity of attribute 'paragraphId'.
static java.lang.String checkValidityParentId(long value)
          Will check for validity of attribute 'parentId'.
static java.lang.String checkValidityPosition(long value)
          Will check for validity of attribute 'position'.
static java.lang.String checkValidityTitle(java.lang.String sValue)
          Will check for validity of attribute 'title'.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTRIBUTE_TITLE_MIN_CHARS

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

See Also:
Constant Field Values

ATTRIBUTE_TITLE_MAX_CHARS

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

See Also:
Constant Field Values

ATTRBIUTE_CONTENT_MIN_CHARS

public static final int ATTRBIUTE_CONTENT_MIN_CHARS
Minimum number of chars for attribute content.

See Also:
Constant Field Values
Method Detail

checkValidityId

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

Parameters:
value - id
Returns:
String

checkValidityParagraphId

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

Parameters:
value - id
Returns:
String

checkValidityPosition

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

Parameters:
value - id
Returns:
String

checkValidityParentId

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

Parameters:
value - id
Returns:
String

checkValidityCreationUnixTimestamp

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

Parameters:
value - id
Returns:
String

checkValidityLastModifiedUnixTimestamp

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

Parameters:
value - id
Returns:
String

checkValidityTitle

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

Parameters:
sValue - String
Returns:
String

checkValidityContent

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

Parameters:
sValue - String
Returns:
String