org.gcube.portlets.user.homelibrary.home.workspace.events
Enum WorkspaceEventType

java.lang.Object
  extended by java.lang.Enum<WorkspaceEventType>
      extended by org.gcube.portlets.user.homelibrary.home.workspace.events.WorkspaceEventType
All Implemented Interfaces:
Serializable, Comparable<WorkspaceEventType>

public enum WorkspaceEventType
extends Enum<WorkspaceEventType>

Define a event type.

Author:
Federico De Faveri defaveri@isti.cnr.it

Enum Constant Summary
ITEM_CREATED
          A new item has been created.
ITEM_IMPORTED
          An item has been imported.
ITEM_REMOVED
          An item has been deleted.
ITEM_RENAMED
           
ITEM_SENT
          An item has been sent.
 
Method Summary
static WorkspaceEventType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static WorkspaceEventType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ITEM_CREATED

public static final WorkspaceEventType ITEM_CREATED
A new item has been created.


ITEM_REMOVED

public static final WorkspaceEventType ITEM_REMOVED
An item has been deleted.


ITEM_IMPORTED

public static final WorkspaceEventType ITEM_IMPORTED
An item has been imported.


ITEM_RENAMED

public static final WorkspaceEventType ITEM_RENAMED

ITEM_SENT

public static final WorkspaceEventType ITEM_SENT
An item has been sent.

Method Detail

values

public static WorkspaceEventType[] 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 (WorkspaceEventType c : WorkspaceEventType.values())
    System.out.println(c);

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

valueOf

public static WorkspaceEventType valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2013. All Rights Reserved.