|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.bigbross.bossa.resource.Expression
A node of one binary tree representing a compiled resource expression.
The set arithmetic operations are:
+
^
-
The resource is linked from the ResourceRegistry at the
compilation time, and is created if needed. A $ may be used to
delay the resource resolution to evaluation time, using a new
ResourceRegistry.
A resource expression example is: sales - $request than means
that only the users of the "sales" group minus the users that are in the
"request" group provided in the evaluation moment are in this role.
ResourceRegistry,
Serialized Form| Constructor Summary | |
Expression()
|
|
| Method Summary | |
static Expression |
compile(ResourceRegistry registry,
String expression)
Compiles a resource expression. |
boolean |
contains(Resource resource)
Determines if a resource is contained in this. |
abstract boolean |
contains(ResourceRegistry registry,
Resource resource)
Determines if a resource is contained in this. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Expression()
| Method Detail |
public static Expression compile(ResourceRegistry registry,
String expression)
registry - a ResourceRegistry to link the resources
in the expression.expression - the resource expression to be compiled.
Expression representing the compiled resource
expression.public boolean contains(Resource resource)
contains in interface Containerresource - the resource to be looked for.
true if the resource is found, false otherwise.
public abstract boolean contains(ResourceRegistry registry,
Resource resource)
registry - a ResourceRegistry to resolve lazy referenced resource.resource - the resource to be looked for.
true if the resource is found, false otherwise.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||