planetj.dataengine.application.magic
Class WABDispatcherRequest

java.lang.Object
  extended byplanetj.magic.AbstractMagicRequest
      extended byplanetj.magic.MagicRequest
          extended byplanetj.dataengine.application.magic.WABDispatcherRequest
All Implemented Interfaces:
IFeature, IMagicRequest, java.io.Serializable

public class WABDispatcherRequest
extends MagicRequest

Dispatches an execute command to the appropriate magic request. This is kind of a hack to fix the issue where the builder TOC only has a single "Edit" link which may be routed to one of multiple edit magic requests

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class planetj.dataengine.IFeature
IFeature.OperationCountFeature
 
Field Summary
 
Fields inherited from class planetj.magic.AbstractMagicRequest
mNextURI
 
Fields inherited from interface planetj.magic.IMagicRequest
IS_COMPLETE, MAGIC_REQUEST, MAGIC_REQUEST_CLASS, MAGIC_REQUEST_PARAM1, MAGIC_REQUEST_RC, SAME_URI, TYPE, TYPE_PAGE, TYPE_SESSION, TYPE_STATIC, USER_REQUEST_ATTRIBUTES_STORED
 
Fields inherited from interface planetj.dataengine.IFeature
DEFAULT_MESSAGE_FEATURE, FEATURE_DELETE, FEATURE_INSERT, FEATURE_LEVEL_ENTERPRISE, FEATURE_LEVEL_ENTRY, FEATURE_LEVEL_PROFESSIONAL, FEATURE_LEVEL_STANDARD, FEATURE_UPDATE, MESSAGE_END, MESSAGE_START
 
Constructor Summary
protected WABDispatcherRequest()
          WABDispatcherRequest constructor comment.
protected WABDispatcherRequest(HttpServletRequest request, HttpServletResponse response)
          WABDispatcherRequest constructor comment.
protected WABDispatcherRequest(java.lang.String pId, HttpServletRequest request, HttpServletResponse response)
          Deprecated. - id no longer needed
 
Method Summary
 IMagicRequest execute(HttpServletRequest pRequest, HttpServletResponse pResponse, DataEngineServlet pServlet)
          Execute method comment.
static WABDispatcherRequest getInstance(HttpServletRequest req)
          Gets an instance of WABDispatcherREquest
 java.lang.String getKey()
          Return the id used to store this magic request in the session.
 java.lang.String getNextURI(LayoutDisplayPropertyGroup layoutTemplate)
          Get the URI of the next page to call.
 boolean isEndNewNavigationGroup()
           
 boolean isReturnToRequester()
          Returns whether or not the magic request needs to be returned to the requester.
 boolean isStartNewNavigationGroup()
          Tests whether or not this magic request needs to start a new navigation group.
 
Methods inherited from class planetj.magic.MagicRequest
getCurrentMagicRequest, getPrimaryMagicRequest, getType, store
 
Methods inherited from class planetj.magic.AbstractMagicRequest
addLinkedRequestAfter, addLinkedRequestBefore, appendUnsupportedHTMLMessage, changeMode, clone, clone, convertId, equals, executeAll, getAnchorName, getBaseField, getBaseRow, getBaseRowCollection, getCurrentURI, getDefaultEndNavigationGroup, getDefaultPageType, getFailMessage, getFeature, getFeatureLevel, getFirstRequest, getId, getLastRequest, getMagicRequestParameter, getMagicServletURI, getMagicURI, getNextURI, getPleaseWaitJSP, getPleaseWaitOperation, getRequestAttribute, getRequestParameter, getRequestParameterValues, getRowEventListener, getSessionAttribute, getSharedSessionAttribute, getSuccessMessage, getTemplateURI, getWaitingServlet, handlePleaseWait, hasLinkedRequestsAfter, hasLinkedRequestsBefore, isApplicable, isCompleted, isEndNavigationGroup, isLoadParameterValuesFromRequest, isOverridePrimaryNavigation, isPleaseWait, isPopup, isRepeatable, isSaveResults, postexecute, postExecute, preexecute, preExecute, processPleaseWait, removeRequestAttribute, removeSessionAttribute, removeSharedSessionAttribute, setAnchorName, setBaseField, setBaseRow, setBaseRowCollection, setCompleted, setEndNavigationGroup, setFailMessage, setId, setIdInternal, setLoadParameterValuesFromRequest, setNextURI, setNextURI, setNextURI, setNextURIs, setOverridePrimaryNavigation, setPopup, setRepeatable, setRequestGroupAttribute, setRequestPageAttribute, setRequestPersistentAttribute, setRequestTransientAttribute, setReturnToRequester, setRowEventListener, setSessionAttribute, setSessionSharedAttribute, setStartNewNavigationGroup, setSuccessMessage
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface planetj.magic.IMagicRequest
addLinkedRequestAfter, addLinkedRequestBefore, executeAll, getBaseField, getBaseRow, getCurrentURI, getFirstRequest, getId, getLastRequest, getMagicRequestParameter, getMagicURI, isCompleted, isEndNavigationGroup, isOverridePrimaryNavigation, isRepeatable, isSaveResults, postExecute, preExecute, setBaseField, setBaseRow, setBaseRowCollection, setEndNavigationGroup, setNextURI, setOverridePrimaryNavigation, setRepeatable, setRowEventListener, setStartNewNavigationGroup
 
Methods inherited from interface planetj.dataengine.IFeature
appendUnsupportedHTMLMessage, getFeatureLevel, isApplicable
 

Constructor Detail

WABDispatcherRequest

protected WABDispatcherRequest()
WABDispatcherRequest constructor comment.


WABDispatcherRequest

protected WABDispatcherRequest(java.lang.String pId,
                               HttpServletRequest request,
                               HttpServletResponse response)
Deprecated. - id no longer needed

WABDispatcherRequest constructor comment.

Parameters:
pId - java.lang.String
request - javax.servlet.http.HttpServletRequest
response - javax.servlet.http.HttpServletResponse

WABDispatcherRequest

protected WABDispatcherRequest(HttpServletRequest request,
                               HttpServletResponse response)
WABDispatcherRequest constructor comment.

Parameters:
request - javax.servlet.http.HttpServletRequest
response - javax.servlet.http.HttpServletResponse
Method Detail

execute

public IMagicRequest execute(HttpServletRequest pRequest,
                             HttpServletResponse pResponse,
                             DataEngineServlet pServlet)
                      throws CMException
Execute method comment.

Specified by:
execute in interface IMagicRequest
Specified by:
execute in class AbstractMagicRequest
Throws:
CMException

getInstance

public static WABDispatcherRequest getInstance(HttpServletRequest req)
Gets an instance of WABDispatcherREquest


getKey

public java.lang.String getKey()
Return the id used to store this magic request in the session.

Specified by:
getKey in interface IMagicRequest
Overrides:
getKey in class AbstractMagicRequest

getNextURI

public java.lang.String getNextURI(LayoutDisplayPropertyGroup layoutTemplate)
Get the URI of the next page to call.

Specified by:
getNextURI in interface IMagicRequest
Overrides:
getNextURI in class AbstractMagicRequest

isEndNewNavigationGroup

public boolean isEndNewNavigationGroup()

isReturnToRequester

public boolean isReturnToRequester()
Description copied from interface: IMagicRequest
Returns whether or not the magic request needs to be returned to the requester.

Specified by:
isReturnToRequester in interface IMagicRequest
Overrides:
isReturnToRequester in class AbstractMagicRequest

isStartNewNavigationGroup

public boolean isStartNewNavigationGroup()
Description copied from interface: IMagicRequest
Tests whether or not this magic request needs to start a new navigation group.

Specified by:
isStartNewNavigationGroup in interface IMagicRequest
Overrides:
isStartNewNavigationGroup in class AbstractMagicRequest