Enum Class AccessMode

java.lang.Object
java.lang.Enum<AccessMode>
org.gatein.pc.api.state.AccessMode
All Implemented Interfaces:
Serializable, Comparable<AccessMode>, Constable

public enum AccessMode extends Enum<AccessMode>
Type safe enumeration for the access mode to a portlet.
Version:
$Revision: 5776 $
Author:
Julien Viet
  • Enum Constant Details

    • READ_ONLY

      public static final AccessMode READ_ONLY
      Read only access mode.
    • READ_WRITE

      public static final AccessMode READ_WRITE
      Read write access mode.
    • CLONE_BEFORE_WRITE

      public static final AccessMode CLONE_BEFORE_WRITE
      Clone before write access mode.
  • Method Details

    • values

      public static AccessMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static AccessMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<AccessMode>