com.zeevbelkin.web.filter.access
Enum Yaaf.UrlAccessChecker.Decision

java.lang.Object
  extended by java.lang.Enum<Yaaf.UrlAccessChecker.Decision>
      extended by com.zeevbelkin.web.filter.access.Yaaf.UrlAccessChecker.Decision
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Yaaf.UrlAccessChecker.Decision>
Enclosing interface:
Yaaf.UrlAccessChecker

public static enum Yaaf.UrlAccessChecker.Decision
extends java.lang.Enum<Yaaf.UrlAccessChecker.Decision>

the checker decision


Enum Constant Summary
ALLOWED
          the checker returns this value if a user is authorized to access the requested resource or access to the resource is not restricted
AUTHENTICATION_REQUIRED
          the checker returns this value if an authorization is required to access the requested resource.
FORBIDDEN
          the checker returns this decision if an authenticated user has no permission to access the requested resource
 
Method Summary
static Yaaf.UrlAccessChecker.Decision valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Yaaf.UrlAccessChecker.Decision[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ALLOWED

public static final Yaaf.UrlAccessChecker.Decision ALLOWED
the checker returns this value if a user is authorized to access the requested resource or access to the resource is not restricted


FORBIDDEN

public static final Yaaf.UrlAccessChecker.Decision FORBIDDEN
the checker returns this decision if an authenticated user has no permission to access the requested resource


AUTHENTICATION_REQUIRED

public static final Yaaf.UrlAccessChecker.Decision AUTHENTICATION_REQUIRED
the checker returns this value if an authorization is required to access the requested resource. If the the user is not authenticated and the filter is configured not to provide login of demand the filter interprets this value as the FORBIDDEN.

Method Detail

values

public static final Yaaf.UrlAccessChecker.Decision[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(Yaaf.UrlAccessChecker.Decision c : Yaaf.UrlAccessChecker.Decision.values())
        System.out.println(c);

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

valueOf

public static Yaaf.UrlAccessChecker.Decision 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