com.plumtree.uiinfrastructure.interpreter.filter
Class ExpressionEngineFilter

java.lang.Object
  extended by com.plumtree.uiinfrastructure.interpreter.filter.BaseInterpreterFilter
      extended by com.plumtree.uiinfrastructure.interpreter.filter.ExpressionEngineFilter
All Implemented Interfaces:
IInterpreterFilter

public class ExpressionEngineFilter
extends BaseInterpreterFilter

This filter will load up the environment data for the expression engine and run the expression engine. It will figure out the right subportal to use for this request. The actual implementation of the expression engine filter is in the portaluiinfrastructure layer (i.e., class portaluiinfrastructure.condition.interpreterfilter.ExpressionEngineFilter). This class is created to avoid mixing of dependency between uiinfrastructure and portaluiinfrastructure layers. The Expression Engine component is part of portaluiinfrastructure layer, while interpreter filter is part of uiinfrastructure layer. Hence, static initializer is used in this class to init the actual implementation that calls and runs the expression engine.

Author:
William Adjie-Winoto

Constructor Summary
ExpressionEngineFilter()
           
 
Method Summary
 boolean PreFilter(RequestData requestData)
          This method load the necessary environment data and run the Expression Engine for set-GuestLogin action.
static boolean RunExpressionEngine(RequestData requestData)
          Run the Expression Engine interpreter filter to load up the environment data for the engine and run the expression engine.
static void StaticInit(IInterpreterFilter filter)
          Static initialization method.
 
Methods inherited from class com.plumtree.uiinfrastructure.interpreter.filter.BaseInterpreterFilter
PostFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpressionEngineFilter

public ExpressionEngineFilter()
Method Detail

PreFilter

public boolean PreFilter(RequestData requestData)
This method load the necessary environment data and run the Expression Engine for set-GuestLogin action.

Specified by:
PreFilter in interface IInterpreterFilter
Overrides:
PreFilter in class BaseInterpreterFilter
Parameters:
requestData - The request to be processed.
Returns:
a boolean indicating whether the request should be filtered out. A boolean true indicates that the filter has performed the necessary processing for the request and the Interpreter shall not do any further processing of it.

StaticInit

public static final void StaticInit(IInterpreterFilter filter)
Static initialization method. Use this method to set the actual class that implements the Expression Engine interpreter filter logic.

Parameters:
IInterpreterFilter - the filter implementation

RunExpressionEngine

public static boolean RunExpressionEngine(RequestData requestData)
Run the Expression Engine interpreter filter to load up the environment data for the engine and run the expression engine. It will figure out the right subportal to use for this request.

Parameters:
requestData -
Returns:



Copyright © 2002,2003,2004,2005 Plumtree Software, Inc., All Rights Reserved.