org.apache.slide.search.basic.expression
Class IsPrincipalExpression

java.lang.Object
  extended byorg.apache.slide.search.basic.expression.BasicExpression
      extended byorg.apache.slide.search.basic.expression.GenericBasicExpression
          extended byorg.apache.slide.search.basic.expression.CompareExpression
              extended byorg.apache.slide.search.basic.expression.ComparePropertyExpression
                  extended byorg.apache.slide.search.basic.expression.CheckResourceTypeExpression
                      extended byorg.apache.slide.search.basic.expression.IsPrincipalExpression
All Implemented Interfaces:
IBasicExpression
Direct Known Subclasses:
NotIsPrincipalExpression

public class IsPrincipalExpression
extends CheckResourceTypeExpression

Represents an is-principal expression. is-principal is an extension to DASL, usefull for SECURITY issues.

Version:
$Revision: 1.4 $

Field Summary
 
Fields inherited from class org.apache.slide.search.basic.expression.ComparePropertyExpression
comparedProperty
 
Fields inherited from class org.apache.slide.search.basic.expression.CompareExpression
propertyProvider, requestedResourcesPool
 
Fields inherited from class org.apache.slide.search.basic.expression.BasicExpression
expressionElement, expressionFactory, resultSet
 
Constructor Summary
IsPrincipalExpression(org.jdom.Element e, ComparableResourcesPool requestedResourcesPool)
          Creates an is-principal expression
 
Method Summary
 java.lang.String toString()
          For debugging purpose.
 
Methods inherited from class org.apache.slide.search.basic.expression.CheckResourceTypeExpression
compare
 
Methods inherited from class org.apache.slide.search.basic.expression.ComparePropertyExpression
getLiteral, toString
 
Methods inherited from class org.apache.slide.search.basic.expression.CompareExpression
execute, getRequestedResourcePool, setRequestedResourcePool
 
Methods inherited from class org.apache.slide.search.basic.expression.BasicExpression
getFactory, setFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IsPrincipalExpression

public IsPrincipalExpression(org.jdom.Element e,
                             ComparableResourcesPool requestedResourcesPool)
                      throws InvalidQueryException
Creates an is-principal expression

Parameters:
e - jdom element, that describes the expression
requestedResourcesPool - the pool of resources to apply the expression to.
Method Detail

toString

public java.lang.String toString()
For debugging purpose.

Returns:
This expression as string