com.stratelia.silverpeas.notificationManager.constant
Enum NotifAction

java.lang.Object
  extended by java.lang.Enum<NotifAction>
      extended by com.stratelia.silverpeas.notificationManager.constant.NotifAction
All Implemented Interfaces:
Serializable, Comparable<NotifAction>

public enum NotifAction
extends Enum<NotifAction>

Author:
Yohann Chastagnier

Enum Constant Summary
CLASSIFIED
           
COMMENT
           
CREATE
           
DECLASSIFIED
           
DELETE
           
PENDING_VALIDATION
           
PUBLISHED
           
REFUSE
           
REPORT
           
RESPONSE
           
SUSPEND
           
UPDATE
           
VALIDATE
           
 
Method Summary
static NotifAction decode(Integer id)
           
 int getId()
           
 int getPriority()
           
static NotifAction valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NotifAction[] 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

CREATE

public static final NotifAction CREATE

UPDATE

public static final NotifAction UPDATE

DELETE

public static final NotifAction DELETE

REPORT

public static final NotifAction REPORT

COMMENT

public static final NotifAction COMMENT

SUSPEND

public static final NotifAction SUSPEND

PENDING_VALIDATION

public static final NotifAction PENDING_VALIDATION

REFUSE

public static final NotifAction REFUSE

VALIDATE

public static final NotifAction VALIDATE

RESPONSE

public static final NotifAction RESPONSE

CLASSIFIED

public static final NotifAction CLASSIFIED

DECLASSIFIED

public static final NotifAction DECLASSIFIED

PUBLISHED

public static final NotifAction PUBLISHED
Method Detail

values

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

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

valueOf

public static NotifAction 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

getId

public int getId()

getPriority

public int getPriority()

decode

public static NotifAction decode(Integer id)


Copyright © 2016 Silverpeas. All Rights Reserved.