Project: stp

com.ibm.rational.wvcm.stp
Enum StpAccessControlEntry.AccessRight

Object
  extended by Enum<StpAccessControlEntry.AccessRight>
      extended by com.ibm.rational.wvcm.stp.StpAccessControlEntry.AccessRight
All Implemented Interfaces:
com.ibm.rational.wvcm.stpex.StpExEnumeration, Serializable, Comparable<StpAccessControlEntry.AccessRight>
Enclosing interface:
StpAccessControlEntry

public static enum StpAccessControlEntry.AccessRight
extends Enum<StpAccessControlEntry.AccessRight>
implements com.ibm.rational.wvcm.stpex.StpExEnumeration

An enumeration of the possible access rights that can be applied to a controlled resource. Not all resources will support all access rights.


Enum Constant Summary
CHANGE_PERMISSION
          Principal can change access rights to the controlled resource
NO_ACCESS
          Principal has no access to the controlled resource
READ_LIMITED
          Principal has limited read access to the controlled resource
READ_ONLY
          Principal can only read the controlled resource
READ_WRITE
          Principal can read and write the controlled resource
 
Method Summary
 String toString()
          The name of the access right for display purposes
static StpAccessControlEntry.AccessRight valueOf(String name)
          Returns the enum constant of this type with the specified name.
static StpAccessControlEntry.AccessRight[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CHANGE_PERMISSION

public static final StpAccessControlEntry.AccessRight CHANGE_PERMISSION
Principal can change access rights to the controlled resource


NO_ACCESS

public static final StpAccessControlEntry.AccessRight NO_ACCESS
Principal has no access to the controlled resource


READ_LIMITED

public static final StpAccessControlEntry.AccessRight READ_LIMITED
Principal has limited read access to the controlled resource


READ_ONLY

public static final StpAccessControlEntry.AccessRight READ_ONLY
Principal can only read the controlled resource


READ_WRITE

public static final StpAccessControlEntry.AccessRight READ_WRITE
Principal can read and write the controlled resource

Method Detail

toString

public String toString()
The name of the access right for display purposes

Overrides:
toString in class Enum<StpAccessControlEntry.AccessRight>

valueOf

public static StpAccessControlEntry.AccessRight 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

values

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

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

Generated Thu 6-Nov-2014 11:02 PM

Copyright © IBM 2014. All rights reserved.