com.plumtree.uiinfrastructure.interpreter.filter
Class RequestLockFilter

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

public class RequestLockFilter
extends BaseInterpreterFilter

A filter to perform a lock on the session. The lock will be released in the PostFilter method.

Author:
DonH

Constructor Summary
RequestLockFilter()
           
 
Method Summary
static void LockSession(ISessionManager session)
          Helper method to lock the session.
 void PostFilter(RequestData requestData)
          This method releases the session lock.
 boolean PreFilter(RequestData requestData)
          This method will perform a lock on the session, since the activityspace related code is not thread safe.
static void UnlockSession(ISessionManager session)
          A helper method to unlock the session.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestLockFilter

public RequestLockFilter()
Method Detail

PreFilter

public boolean PreFilter(RequestData requestData)
This method will perform a lock on the session, since the activityspace related code is not thread safe.

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.

PostFilter

public void PostFilter(RequestData requestData)
This method releases the session lock.

Specified by:
PostFilter in interface IInterpreterFilter
Overrides:
PostFilter in class BaseInterpreterFilter
Parameters:
requestData - The request.

LockSession

public static void LockSession(ISessionManager session)
Helper method to lock the session. This method is public so the code can be shared with the gateway.

Parameters:
session - The current session manager.

UnlockSession

public static void UnlockSession(ISessionManager session)
A helper method to unlock the session. This method is public so the code can be shared with the gateway.

Parameters:
session - The current session manager.



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