com.atlassian.xwork.interceptors
Enum RestrictHttpMethodInterceptor.SecurityLevel

java.lang.Object
  extended by java.lang.Enum<RestrictHttpMethodInterceptor.SecurityLevel>
      extended by com.atlassian.xwork.interceptors.RestrictHttpMethodInterceptor.SecurityLevel
All Implemented Interfaces:
Serializable, Comparable<RestrictHttpMethodInterceptor.SecurityLevel>
Enclosing class:
RestrictHttpMethodInterceptor

public static enum RestrictHttpMethodInterceptor.SecurityLevel
extends Enum<RestrictHttpMethodInterceptor.SecurityLevel>


Enum Constant Summary
DEFAULT
          Restrict annotated methods as annotated.
NONE
          Do not restrict access at all
OPT_IN
          Restrict access only on methods that are annotated
STRICT
          Do not allow any invocation of methods that are not annotated
 
Method Summary
abstract  boolean isPermitted(String invocationMethodName, HttpMethod[] permittedMethods, String httpMethod)
           
static RestrictHttpMethodInterceptor.SecurityLevel valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RestrictHttpMethodInterceptor.SecurityLevel[] 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

NONE

public static final RestrictHttpMethodInterceptor.SecurityLevel NONE
Do not restrict access at all


OPT_IN

public static final RestrictHttpMethodInterceptor.SecurityLevel OPT_IN
Restrict access only on methods that are annotated


DEFAULT

public static final RestrictHttpMethodInterceptor.SecurityLevel DEFAULT
Restrict annotated methods as annotated. Allow GET and POST to un-annotated methods named doDefault(). Only allow POST to other methods.


STRICT

public static final RestrictHttpMethodInterceptor.SecurityLevel STRICT
Do not allow any invocation of methods that are not annotated

Method Detail

values

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

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

valueOf

public static RestrictHttpMethodInterceptor.SecurityLevel 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

isPermitted

public abstract boolean isPermitted(String invocationMethodName,
                                    HttpMethod[] permittedMethods,
                                    String httpMethod)


Copyright © 2011 Atlassian Pty Ltd. All Rights Reserved.