iiitAccessServer 1.0

de.iiit.access.server
Class ExpressionEvaluator

java.lang.Object
  |
  +--de.iiit.access.server.ExpressionEvaluator

public class ExpressionEvaluator
extends Object

This class evaluates expression. It can be used by server plug-ins like TcpServer to evaluate the expression received from a client.

Version:
$Revision: 1.5 $ $Date: 2003/04/13 21:09:56 $

Constructor Summary
ExpressionEvaluator()
          Creates a new instance of ExpressionResolver
 
Method Summary
 boolean evaluateExpression(String name, String expression)
          Evaluates one expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpressionEvaluator

public ExpressionEvaluator()
Creates a new instance of ExpressionResolver

Method Detail

evaluateExpression

public boolean evaluateExpression(String name,
                                  String expression)
                           throws ParserException
Evaluates one expression.

Parameters:
name - The name of the user for whom the expression shall be evaluated
expression - The expression to evaluate
Returns:
true if the user is member of the set described by the expression and false otherwise.
Throws:
ParserException - This exception is thrown if there is something wrong with the expression. The most common cases are syntax errors or circular references within the expression.

iiitAccessServer 1.0

Copyright © 2002, 2003 ingeneurbuero fuer innovative informationstechnik, Dipl.-Ing. Joerg Beckmann, Dortmund, Germany. All Rights Reserved.
See Copyright statement