org.opends.server.admin.std.meta
Enum BackendCfgDefn.WritabilityMode

java.lang.Object
  extended by java.lang.Enum<BackendCfgDefn.WritabilityMode>
      extended by org.opends.server.admin.std.meta.BackendCfgDefn.WritabilityMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<BackendCfgDefn.WritabilityMode>
Enclosing class:
BackendCfgDefn

public static enum BackendCfgDefn.WritabilityMode
extends java.lang.Enum<BackendCfgDefn.WritabilityMode>

Defines the set of permissable values for the "writability-mode" property.

Specifies the behavior that the backend should use when processing write operations.


Enum Constant Summary
DISABLED
          Causes all write attempts to fail.
ENABLED
          Allows write operations to be performed in that backend (if the requested operation is valid, the user has permission to perform the operation, the backend supports that type of write operation, and the global writability mode property is also enabled).
INTERNAL_ONLY
          Causes external write attempts to fail but allows writes by replication and internal operations.
 
Method Summary
 java.lang.String toString()
          
static BackendCfgDefn.WritabilityMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static BackendCfgDefn.WritabilityMode[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DISABLED

public static final BackendCfgDefn.WritabilityMode DISABLED
Causes all write attempts to fail.


ENABLED

public static final BackendCfgDefn.WritabilityMode ENABLED
Allows write operations to be performed in that backend (if the requested operation is valid, the user has permission to perform the operation, the backend supports that type of write operation, and the global writability mode property is also enabled).


INTERNAL_ONLY

public static final BackendCfgDefn.WritabilityMode INTERNAL_ONLY
Causes external write attempts to fail but allows writes by replication and internal operations.

Method Detail

values

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

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

valueOf

public static BackendCfgDefn.WritabilityMode 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

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Enum<BackendCfgDefn.WritabilityMode>