- java.lang.Object
-
- swim.api.policy.PolicyDirective<T>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> PolicyDirective<T>
allow()
static <T> PolicyDirective<T>
allow(T value)
static <T> PolicyDirective<T>
deny()
static <T> PolicyDirective<T>
deny(Object reason)
static <T> PolicyDirective<T>
deny(Policy policy)
static <T> PolicyDirective<T>
deny(Policy policy, Object reason)
static <T> PolicyDirective<T>
forbid()
static <T> PolicyDirective<T>
forbid(Object reason)
static <T> PolicyDirective<T>
forbid(Policy policy)
static <T> PolicyDirective<T>
forbid(Policy policy, Object reason)
T
get()
boolean
isAllowed()
boolean
isDefined()
boolean
isDenied()
boolean
isForbidden()
Policy
policy()
Object
reason()
-
-
-
Method Detail
-
isAllowed
public boolean isAllowed()
-
isDenied
public boolean isDenied()
-
isForbidden
public boolean isForbidden()
-
isDefined
public boolean isDefined()
-
get
public T get()
-
policy
public Policy policy()
-
reason
public Object reason()
-
allow
public static <T> PolicyDirective<T> allow()
-
allow
public static <T> PolicyDirective<T> allow(T value)
-
deny
public static <T> PolicyDirective<T> deny(Policy policy, Object reason)
-
deny
public static <T> PolicyDirective<T> deny(Policy policy)
-
deny
public static <T> PolicyDirective<T> deny(Object reason)
-
deny
public static <T> PolicyDirective<T> deny()
-
forbid
public static <T> PolicyDirective<T> forbid(Policy policy, Object reason)
-
forbid
public static <T> PolicyDirective<T> forbid(Policy policy)
-
forbid
public static <T> PolicyDirective<T> forbid(Object reason)
-
forbid
public static <T> PolicyDirective<T> forbid()
-
-