|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Predicate
Interface for all nodes and leaves of the predicate tree.
Field Summary | |
---|---|
static Predicate |
FALSE
A predicate that evaluates always to false. |
static Predicate |
TRUE
A predicate that evaluates always to true. |
Method Summary | |
---|---|
boolean |
isMatchable(Map<String,Class<?>> arguments)
Try to match the predicate with arguments, without evaluating the predicates but to check that no runtime exception is thrown at runtime. |
boolean |
isValid()
Validates this predicate. |
boolean |
matches(TimeStamp timeStamp,
Map<String,?> arguments)
Try to match the predicate according to time and arguments. |
Methods inherited from interface org.openpermis.policy.Part |
---|
equals, hashCode, isValid, toString |
Field Detail |
---|
static final Predicate TRUE
static final Predicate FALSE
Method Detail |
---|
boolean matches(TimeStamp timeStamp, Map<String,?> arguments)
timeStamp
- the current TimeStamp
.arguments
- a Map
of arguments.
IllegalStateException
- if the predicate is not valid.boolean isMatchable(Map<String,Class<?>> arguments)
arguments
- a Map
of arguments.
true
if this predicate is matchable and won't throw an exception at
runtime.boolean isValid()
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:14:59
Copyright (c) 2002-2007 Ergon Informatik AG