pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.component.survey
Enum SurveyControllerError

java.lang.Object
  extended by java.lang.Enum<SurveyControllerError>
      extended by org.torweg.pulse.component.survey.SurveyControllerError
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SurveyControllerError>

public enum SurveyControllerError
extends java.lang.Enum<SurveyControllerError>

Error-Codes of the SurveyController (for usage in XSL).

Version:
$Revision: 1583 $
Author:
Daniel Dietz

Enum Constant Summary
INVALID_TOKEN
          The passed token did not return a valid SurveyToken for the Survey.
IS_FINISHED
          The current execution-Date > the start- Date of the Survey currently being processed.
MISSING_REQUIRED_ROLE
          The User does not have the specific Roles the Survey requires.
NOT_LOGGED_IN
          The Survey is not anonymous and no User is logged in.
NOT_STARTED
          The current execution-Date < the start- Date of the Survey currently being processed.
SURVEY_ERROR
          A Survey-related error, such as: no id has been passed no Survey could be loaded for the passed id
 
Method Summary
static SurveyControllerError valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SurveyControllerError[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SURVEY_ERROR

public static final SurveyControllerError SURVEY_ERROR
A Survey-related error, such as:

NOT_STARTED

public static final SurveyControllerError NOT_STARTED
The current execution-Date < the start- Date of the Survey currently being processed.


IS_FINISHED

public static final SurveyControllerError IS_FINISHED
The current execution-Date > the start- Date of the Survey currently being processed.


NOT_LOGGED_IN

public static final SurveyControllerError NOT_LOGGED_IN
The Survey is not anonymous and no User is logged in.


MISSING_REQUIRED_ROLE

public static final SurveyControllerError MISSING_REQUIRED_ROLE
The User does not have the specific Roles the Survey requires.


INVALID_TOKEN

public static final SurveyControllerError INVALID_TOKEN
The passed token did not return a valid SurveyToken for the Survey.

Method Detail

values

public static final SurveyControllerError[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(SurveyControllerError c : SurveyControllerError.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static SurveyControllerError valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name