org.glassfish.internal.api
Enum AdminAccessController.Access

java.lang.Object
  extended by java.lang.Enum<AdminAccessController.Access>
      extended by org.glassfish.internal.api.AdminAccessController.Access
All Implemented Interfaces:
Serializable, Comparable<AdminAccessController.Access>
Enclosing interface:
AdminAccessController

public static enum AdminAccessController.Access
extends Enum<AdminAccessController.Access>

Represents the possible types of access granted as the result of logging in as an admin user.

The calling logic is responsible for enforcing any restrictions as to what access should be allowed vs. prohibited based on the returned Access value.

Some parts of the authentication logic throw an exception if the user cannot be authenticated but there are some places where it just returns. Hence the NONE case.


Enum Constant Summary
FORBIDDEN
           
FULL
           
NONE
           
 
Method Summary
static AdminAccessController.Access valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AdminAccessController.Access[] 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

FULL

public static final AdminAccessController.Access FULL

FORBIDDEN

public static final AdminAccessController.Access FORBIDDEN

NONE

public static final AdminAccessController.Access NONE
Method Detail

values

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

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

valueOf

public static AdminAccessController.Access 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 © 2012 GlassFish Community. All Rights Reserved.