org.rhq.core.domain.resource
Enum CreateDeletePolicy

java.lang.Object
  extended by java.lang.Enum<CreateDeletePolicy>
      extended by org.rhq.core.domain.resource.CreateDeletePolicy
All Implemented Interfaces:
Serializable, Comparable<CreateDeletePolicy>

public enum CreateDeletePolicy
extends Enum<CreateDeletePolicy>

Indicates whether or not resource of a particular type can be created and/or deleted by the user. More specifically, through the ResourceFactoryAgentService inteface into the plugin container.


Enum Constant Summary
BOTH
          Resources of this type can be both created and deleted by the user.
CREATE_ONLY
          Resources of this type may be created by users, but not deleted.
DELETE_ONLY
          Resources of this type may be deleted by users, but not created.
NEITHER
          Resources of this type can neither be created nor deleted by the user.
 
Method Summary
static CreateDeletePolicy valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CreateDeletePolicy[] 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

NEITHER

public static final CreateDeletePolicy NEITHER
Resources of this type can neither be created nor deleted by the user.


CREATE_ONLY

public static final CreateDeletePolicy CREATE_ONLY
Resources of this type may be created by users, but not deleted.


DELETE_ONLY

public static final CreateDeletePolicy DELETE_ONLY
Resources of this type may be deleted by users, but not created.


BOTH

public static final CreateDeletePolicy BOTH
Resources of this type can be both created and deleted by the user.

Method Detail

values

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

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

valueOf

public static CreateDeletePolicy 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 © 2008-2009 RHQ Project Advisory Board (Red Hat, Inc.). All Rights Reserved.