|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openpermis.policy.predicate.AbstractPredicate<Predicate>
org.openpermis.policy.predicate.And
public class And
And operation on predicates.
Field Summary | |
---|---|
private static long |
serialVersionUID
|
Fields inherited from interface org.openpermis.policy.Predicate |
---|
FALSE, TRUE |
Constructor Summary | |
---|---|
And(Predicate... predicates)
Creates an and node, at least two arguments are needed. |
Method Summary | |
---|---|
boolean |
comparablePredicate(Predicate predicate)
Compares the type of predicate with this. |
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. |
protected int |
partHashCode()
Returns the hash code of this part. |
Methods inherited from class org.openpermis.policy.predicate.AbstractPredicate |
---|
equals, getOperand, getOperandCount, getOperands, hashCode, isValid |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.openpermis.policy.Part |
---|
toString |
Field Detail |
---|
private static final long serialVersionUID
2594689375624382737L
Constructor Detail |
---|
public And(Predicate... predicates)
predicates
- Predicate
s.Method Detail |
---|
public boolean isValid()
Predicate
public boolean matches(TimeStamp timeStamp, Map<String,?> arguments)
Predicate
timeStamp
- the current TimeStamp
.arguments
- a Map
of arguments.
public boolean isMatchable(Map<String,Class<?>> arguments)
Predicate
arguments
- a Map
of arguments.
true
if this predicate is matchable and won't throw an exception at
runtime.public boolean comparablePredicate(Predicate predicate)
AbstractPredicate
comparablePredicate
in class AbstractPredicate<Predicate>
predicate
- a Predicate
.
protected int partHashCode()
AbstractPredicate
partHashCode
in class AbstractPredicate<Predicate>
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
PERMIS Role Based Access Control 0.3.0 (Build 14)
2009/05/08 09:06:22
Copyright (c) 2002-2007 Ergon Informatik AG