|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanetj.magic.AbstractMagicRequest
Abstract Class for all MagicRequests
Nested Class Summary |
Nested classes inherited from class planetj.dataengine.IFeature |
IFeature.OperationCountFeature |
Field Summary |
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 | |
AbstractMagicRequest()
MagicRequest constructor comment. |
|
AbstractMagicRequest(HttpServletRequest request,
HttpServletResponse response)
MagicRequest constructor comment. |
|
AbstractMagicRequest(java.lang.String pId,
HttpServletRequest request,
HttpServletResponse response)
MagicRequest constructor comment. |
Method Summary | |
void |
addLinkedRequestAfter(IMagicRequest pMagicRequest)
Adds the given MagicRequest to the list of requests to be executed after this MagicRequest |
void |
addLinkedRequestBefore(IMagicRequest pMagicRequest)
Adds the given MagicRequest to the list of requests to be executed before this MagicRequest |
java.lang.StringBuffer |
appendUnsupportedHTMLMessage(java.lang.StringBuffer html)
Appends the default unsupported message |
void |
changeMode(java.lang.String mode,
HttpServletRequest request,
HttpServletResponse response)
Changes the current mode of execution. |
java.lang.Object |
clone()
Clone this object. |
java.lang.Object |
clone(java.lang.String cloneKey,
HttpServletRequest request)
Clone this object. |
static boolean |
equals(java.lang.Object one,
java.lang.Object two)
|
abstract IMagicRequest |
execute(HttpServletRequest request,
HttpServletResponse response,
DataEngineServlet servlet)
Execute method comment. |
IMagicRequest |
executeAll(HttpServletRequest pRequest,
HttpServletResponse pResponse,
DataEngineServlet pServlet)
Execute method comment. |
java.lang.String |
getAnchorName()
Get the name of the anchor generated next to the Field requiring the status change. |
Field |
getBaseField()
Get the based on Row for this Request. |
Row |
getBaseRow()
Get the based on Row for this Request. |
RowCollection |
getBaseRowCollection()
Get the based on RowCollection for this Request. |
java.lang.String |
getCurrentURI()
Get the URI of the page this MagicRequest was created on. |
boolean |
getDefaultEndNavigationGroup()
Get the default state if this request should end its navigation group. |
PageType |
getDefaultPageType(java.lang.String section)
Get the PageType to use for the specified section when no PageType is explictly specified |
java.lang.String |
getFailMessage()
Deprecated. - only temporarily added to support custom fail messages |
int |
getFeatureLevel()
Gets the minimum feature level requried to execute this operation |
IMagicRequest |
getFirstRequest()
Gets the first magic request that will be executed when executeAll() is invoked on this magic request. |
java.lang.String |
getId()
Return the id used to store this magic request in the session. |
java.lang.String |
getKey()
Return the id used to store this magic request in the session. |
IMagicRequest |
getLastRequest()
Gets the last magic request that will be executed when executeAll() is invoked on this magic request. |
java.lang.String |
getMagicRequestParameter(HttpServletRequest request)
Get a magic requests parameter |
java.lang.String |
getMagicServletURI()
|
java.lang.String |
getMagicURI()
Get the URI to use to call the Magic Servlet for this request |
java.lang.String |
getNextURI(LayoutDisplayPropertyGroup layoutTemplate)
Get the URI of the next page to call. |
java.lang.String |
getPleaseWaitJSP(ExecutingContext ec)
Gets the please wait JSP to display to the user. |
Operation |
getPleaseWaitOperation(ExecutingContext ec)
Gets the Operation used to control the please wait functionality for this MR. |
static java.lang.Object |
getRequestAttribute(java.lang.String key,
HttpServletRequest request)
|
static java.lang.String |
getRequestParameter(java.lang.String key,
HttpServletRequest request)
Gets the specified parameter from the HTTPRequest. |
static java.lang.String[] |
getRequestParameterValues(java.lang.String key,
HttpServletRequest request)
Gets the specified parameter from the HTTPRequest. |
static java.lang.Object |
getSessionAttribute(java.lang.String pKey,
HttpServletRequest pRequest)
Gets the specified object in the HTTPSession. |
static java.lang.Object |
getSharedSessionAttribute(java.lang.String key,
HttpServletRequest request)
Gets the specified object in the HTTPSession. |
java.lang.String |
getSuccessMessage()
Get the message to set in the request if this "Magic Request" runs successfully. |
abstract java.lang.String |
getType()
Get the type of magic request. |
boolean |
hasLinkedRequestsAfter()
Return wheter or not this request has additional request to execute |
boolean |
hasLinkedRequestsBefore()
Return wheter or not this request has additional request to execute |
boolean |
isApplicable()
Assume by default that this feature applies |
boolean |
isCompleted(HttpServletRequest req)
Gets whether or not the request has completed execution |
boolean |
isEndNavigationGroup()
Tests whether or not this magic request needs to end the current navigation group and go back to the previous state of the last page of the last group. |
boolean |
isLoadParameterValuesFromRequest()
Do we load parameter values from the http request during the executing of this magic request? If parameters for a context are being displayed and a different context ends up being executed, it may cause a new copy of the first context to be executed as well, and we may not want to load the "old" parameter values into that context. |
boolean |
isOverridePrimaryNavigation()
Tests if the navigation from this magic request should override the navigation in the primary magic request. |
boolean |
isPleaseWait(ExecutingContext ec)
Tests if this magic request is a please wait magic request. |
boolean |
isPopup()
Tests if this request should execute in a popup window. |
boolean |
isRepeatable()
Is this request repeatable. |
boolean |
isReturnToRequester()
Returns whether or not the magic request needs to be returned to the requester. |
boolean |
isSaveResults()
Deprecated. - from code prior to navigation and layouts - wasn't referenced or used any where !!N WK (4/22/2003 8:27:47 AM) |
boolean |
isStartNewNavigationGroup()
Tests whether or not this magic request needs to start a new navigation group. |
void |
postexecute(HttpServletRequest pRequest,
HttpServletResponse pResponse,
DataEngineServlet pServlet)
Deprecated. - replaced with postExecute |
void |
postExecute(HttpServletRequest pRequest,
HttpServletResponse pResponse,
DataEngineServlet pServlet)
Called after the execute method runs. |
void |
preexecute(HttpServletRequest pRequest,
HttpServletResponse pResponse,
DataEngineServlet pServlet)
Deprecated. - replaced with preExecute |
void |
preExecute(HttpServletRequest pRequest,
HttpServletResponse pResponse,
DataEngineServlet pServlet)
Called before the execute method runs. |
void |
processPleaseWait(HttpServletRequest req,
HttpServletResponse res)
Processes a magic request which is being waited for. |
static java.lang.Object |
removeRequestAttribute(java.lang.String key,
HttpServletRequest request)
|
static void |
removeSessionAttribute(java.lang.String key,
HttpServletRequest request)
Removes the specified object in the HTTPSession. |
static void |
removeSharedSessionAttribute(java.lang.String key,
HttpServletRequest request)
Removes the specified object in the HTTPSession. |
void |
setAnchorName(java.lang.String name)
Set the name of the anchor generated next to the Field requiring the status change. |
void |
setBaseField(Field pBaseField)
Set the based on Field for this Request. |
void |
setBaseRow(Row pBaseRow)
Set the based on Row for this Request. |
void |
setBaseRowCollection(RowCollection pBaseRowCollection)
Set the based on RowCollection for this Request. |
void |
setCompleted(boolean pCompleted,
HttpServletRequest request)
Sets the state of the magic request to finished executing |
void |
setEndNavigationGroup(boolean endGroup)
|
void |
setFailMessage(java.lang.String message)
Deprecated. - only temporarily added to support custom fail messages |
void |
setId(java.lang.String pId)
Sets the id used to store this magic request in the session. |
void |
setLoadParameterValuesFromRequest(boolean loadValues)
Do we load parameter values from the http request during the executing of this magic request? If parameters for a context are being displayed and a different context ends up being executed, it may cause a new copy of the first context to be executed as well, and we may not want to load the "old" parameter values into that context. |
void |
setNextURI(java.lang.String uri)
Set the URI of the next page to call. |
void |
setNextURI(java.lang.String section,
java.lang.String uri)
Set the URI of the specified section of the template |
void |
setNextURI(java.lang.String section,
java.lang.String uri,
PageType pageType)
Set the URI of the specified section of the template, along with what type of page that section is |
void |
setNextURIs(LayoutDisplayPropertyGroup props)
|
void |
setOverridePrimaryNavigation(boolean override)
Sets if the navigation from this magic request should override the navigation in the primary magic request. |
void |
setPopup(boolean newPopup)
Sets if this request should execute in a popup window. |
void |
setRepeatable(boolean repeatable)
Set whether or not this request repeatable. |
static void |
setRequestGroupAttribute(java.lang.String key,
java.lang.Object value,
HttpServletRequest request)
|
static void |
setRequestPageAttribute(java.lang.String key,
java.lang.Object value,
HttpServletRequest request)
Sets an attribute on the request that is associated with this page. |
static void |
setRequestPersistentAttribute(java.lang.String key,
java.lang.Object value,
HttpServletRequest request)
Sets an attribute on the request that will be persisted. |
static void |
setRequestTransientAttribute(java.lang.String key,
java.lang.Object value,
HttpServletRequest request)
Sets an attriubte on the request that will not be automatically transferred to another request. |
void |
setReturnToRequester(boolean returnToRequester)
Returns whether or not the magic request needs to be returned to the requester. |
void |
setRowEventListener(IRowEventListener newRowEventListener)
Sets the RowEventListener on this MagicReqest. |
static void |
setSessionAttribute(java.lang.String pKey,
java.lang.Object pValue,
HttpServletRequest pRequest)
Sets the specified object in the HTTPSession. |
static void |
setSessionSharedAttribute(java.lang.String key,
java.lang.Object value,
HttpServletRequest request)
Sets the specified object in the HttpSession. |
void |
setStartNewNavigationGroup(boolean startNew)
|
void |
setSuccessMessage(java.lang.String message)
Message to set in the request if this "Magic Request" runs successful. |
IMagicRequest |
store(HttpServletRequest request)
Store this MagicRequest in the user's session to the DataEngineServlet can get at it when requested |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractMagicRequest()
public AbstractMagicRequest(java.lang.String pId, HttpServletRequest request, HttpServletResponse response)
pId
- id of MagicRequest used to store the request in the sessionpublic AbstractMagicRequest(HttpServletRequest request, HttpServletResponse response)
Method Detail |
public void addLinkedRequestAfter(IMagicRequest pMagicRequest)
addLinkedRequestAfter
in interface IMagicRequest
public void addLinkedRequestBefore(IMagicRequest pMagicRequest)
addLinkedRequestBefore
in interface IMagicRequest
public java.lang.StringBuffer appendUnsupportedHTMLMessage(java.lang.StringBuffer html)
appendUnsupportedHTMLMessage
in interface IFeature
public final void changeMode(java.lang.String mode, HttpServletRequest request, HttpServletResponse response)
public java.lang.Object clone()
public java.lang.Object clone(java.lang.String cloneKey, HttpServletRequest request)
public static final boolean equals(java.lang.Object one, java.lang.Object two)
public abstract IMagicRequest execute(HttpServletRequest request, HttpServletResponse response, DataEngineServlet servlet) throws CMException
execute
in interface IMagicRequest
CMException
public final IMagicRequest executeAll(HttpServletRequest pRequest, HttpServletResponse pResponse, DataEngineServlet pServlet) throws CMException
executeAll
in interface IMagicRequest
CMException
public java.lang.String getAnchorName()
public Field getBaseField()
getBaseField
in interface IMagicRequest
public Row getBaseRow()
getBaseRow
in interface IMagicRequest
public RowCollection getBaseRowCollection()
public java.lang.String getCurrentURI()
getCurrentURI
in interface IMagicRequest
public boolean getDefaultEndNavigationGroup()
public PageType getDefaultPageType(java.lang.String section)
public java.lang.String getFailMessage()
public int getFeatureLevel()
getFeatureLevel
in interface IFeature
public IMagicRequest getFirstRequest()
getFirstRequest
in interface IMagicRequest
public java.lang.String getId()
getId
in interface IMagicRequest
public java.lang.String getKey()
getKey
in interface IMagicRequest
public IMagicRequest getLastRequest()
getLastRequest
in interface IMagicRequest
public java.lang.String getMagicServletURI()
public java.lang.String getMagicURI()
getMagicURI
in interface IMagicRequest
public java.lang.String getNextURI(LayoutDisplayPropertyGroup layoutTemplate)
getNextURI
in interface IMagicRequest
public java.lang.String getPleaseWaitJSP(ExecutingContext ec) throws CMException
CMException
public Operation getPleaseWaitOperation(ExecutingContext ec) throws CMException
CMException
public static java.lang.Object getRequestAttribute(java.lang.String key, HttpServletRequest request)
public static java.lang.String getRequestParameter(java.lang.String key, HttpServletRequest request)
public static java.lang.String[] getRequestParameterValues(java.lang.String key, HttpServletRequest request)
public static java.lang.Object getSessionAttribute(java.lang.String pKey, HttpServletRequest pRequest)
pRequest
- request containing session to retrieve objects from.pKey
- key used to identify the object in the session.public static java.lang.Object getSharedSessionAttribute(java.lang.String key, HttpServletRequest request)
public java.lang.String getSuccessMessage()
public abstract java.lang.String getType()
getType
in interface IMagicRequest
public boolean hasLinkedRequestsAfter()
public boolean hasLinkedRequestsBefore()
public boolean isApplicable() throws CMException
isApplicable
in interface IFeature
CMException
public boolean isCompleted(HttpServletRequest req)
isCompleted
in interface IMagicRequest
public boolean isEndNavigationGroup()
IMagicRequest
isEndNavigationGroup
in interface IMagicRequest
public boolean isLoadParameterValuesFromRequest()
public boolean isOverridePrimaryNavigation()
isOverridePrimaryNavigation
in interface IMagicRequest
public boolean isPleaseWait(ExecutingContext ec) throws CMException
CMException
public boolean isPopup()
public boolean isRepeatable()
isRepeatable
in interface IMagicRequest
public boolean isReturnToRequester()
isReturnToRequester
in interface IMagicRequest
public boolean isSaveResults()
isSaveResults
in interface IMagicRequest
public boolean isStartNewNavigationGroup()
IMagicRequest
isStartNewNavigationGroup
in interface IMagicRequest
public final void preexecute(HttpServletRequest pRequest, HttpServletResponse pResponse, DataEngineServlet pServlet) throws CMException
CMException
public void preExecute(HttpServletRequest pRequest, HttpServletResponse pResponse, DataEngineServlet pServlet) throws CMException
preExecute
in interface IMagicRequest
CMException
public final void postexecute(HttpServletRequest pRequest, HttpServletResponse pResponse, DataEngineServlet pServlet) throws CMException
CMException
public void postExecute(HttpServletRequest pRequest, HttpServletResponse pResponse, DataEngineServlet pServlet) throws CMException
postExecute
in interface IMagicRequest
CMException
public void processPleaseWait(HttpServletRequest req, HttpServletResponse res) throws CMException
CMException
public static java.lang.Object removeRequestAttribute(java.lang.String key, HttpServletRequest request)
public static void removeSessionAttribute(java.lang.String key, HttpServletRequest request)
public static void removeSharedSessionAttribute(java.lang.String key, HttpServletRequest request)
public void setAnchorName(java.lang.String name)
name
- name of HTML anchorpublic void setBaseField(Field pBaseField)
setBaseField
in interface IMagicRequest
public void setBaseRow(Row pBaseRow)
setBaseRow
in interface IMagicRequest
public void setBaseRowCollection(RowCollection pBaseRowCollection)
setBaseRowCollection
in interface IMagicRequest
public void setCompleted(boolean pCompleted, HttpServletRequest request)
public void setEndNavigationGroup(boolean endGroup)
setEndNavigationGroup
in interface IMagicRequest
public void setFailMessage(java.lang.String message)
message
- fail message to set in the requestpublic void setId(java.lang.String pId)
public void setLoadParameterValuesFromRequest(boolean loadValues)
public void setNextURI(java.lang.String uri)
public void setNextURI(java.lang.String section, java.lang.String uri)
setNextURI
in interface IMagicRequest
public void setNextURI(java.lang.String section, java.lang.String uri, PageType pageType)
public void setNextURIs(LayoutDisplayPropertyGroup props)
public void setOverridePrimaryNavigation(boolean override)
setOverridePrimaryNavigation
in interface IMagicRequest
public void setPopup(boolean newPopup)
public static void setRequestGroupAttribute(java.lang.String key, java.lang.Object value, HttpServletRequest request)
public static void setRequestPageAttribute(java.lang.String key, java.lang.Object value, HttpServletRequest request)
public static void setRequestPersistentAttribute(java.lang.String key, java.lang.Object value, HttpServletRequest request)
public static void setRequestTransientAttribute(java.lang.String key, java.lang.Object value, HttpServletRequest request)
public void setRepeatable(boolean repeatable)
setRepeatable
in interface IMagicRequest
public void setReturnToRequester(boolean returnToRequester)
public void setRowEventListener(IRowEventListener newRowEventListener)
setRowEventListener
in interface IMagicRequest
newRowEventListener
- planetj.database.IRowEventListenerpublic static void setSessionAttribute(java.lang.String pKey, java.lang.Object pValue, HttpServletRequest pRequest)
pRequest
- request containing session to store the specified object in.pValue
- the object being stored in the session.public static void setSessionSharedAttribute(java.lang.String key, java.lang.Object value, HttpServletRequest request)
public void setStartNewNavigationGroup(boolean startNew)
setStartNewNavigationGroup
in interface IMagicRequest
public void setSuccessMessage(java.lang.String message)
message
- success message to set in the requestpublic IMagicRequest store(HttpServletRequest request)
public java.lang.String getMagicRequestParameter(HttpServletRequest request)
IMagicRequest
getMagicRequestParameter
in interface IMagicRequest
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |