de.hs_rm.cs.lecturenotes.shared
Enum ResponseStatusEnum

java.lang.Object
  extended by java.lang.Enum<ResponseStatusEnum>
      extended by de.hs_rm.cs.lecturenotes.shared.ResponseStatusEnum
All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable, java.io.Serializable, java.lang.Comparable<ResponseStatusEnum>

public enum ResponseStatusEnum
extends java.lang.Enum<ResponseStatusEnum>
implements com.google.gwt.user.client.rpc.IsSerializable

General status enum for transport methods. SUCCESS shall be given for completion of a successful operation, while FAILURE shall be given for unsuccessful operations.

Version:
$LastChangedRevision: 242 $
Author:
Enrico Homann

Enum Constant Summary
FAILURE
          Indicates an error while operating.
SERVLETEXCEPTION_ALLOW_LECTURE_MEDIAUPLOAD_FOR_OWNERONLY
          Used for ServletException Handling outside GWT RPC scope.
SUCCESS
          Indicates a successful operation.
 
Method Summary
static ResponseStatusEnum valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ResponseStatusEnum[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SUCCESS

public static final ResponseStatusEnum SUCCESS
Indicates a successful operation.


FAILURE

public static final ResponseStatusEnum FAILURE
Indicates an error while operating.


SERVLETEXCEPTION_ALLOW_LECTURE_MEDIAUPLOAD_FOR_OWNERONLY

public static final ResponseStatusEnum SERVLETEXCEPTION_ALLOW_LECTURE_MEDIAUPLOAD_FOR_OWNERONLY
Used for ServletException Handling outside GWT RPC scope. Indicates that a media upload was done not by the owner.

Method Detail

values

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

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

valueOf

public static ResponseStatusEnum 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
java.lang.NullPointerException - if the argument is null