|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--planetj.html.AbstractHTMLRenderer | +--planetj.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 class planetj.html.AbstractHTMLRenderer |
className |
Fields inherited from interface planetj.magic.IMagicRequest |
IS_COMPLETE, MAGIC_REQUEST, MAGIC_REQUEST_PARAM1, MAGIC_REQUEST_RC, SAME_URI, TYPE, TYPE_PAGE, TYPE_SESSION, TYPE_STATIC, USER_REQUEST_ATTRIBUTES_STORED |
Fields inherited from interface planetj.html.IHTMLRenderer |
HTML |
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(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
MagicRequest constructor comment. |
|
AbstractMagicRequest(String pId,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.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 |
StringBuffer |
appendUnsupportedHTMLMessage(StringBuffer html)
Appends the default unsupported message |
Object |
clone()
Clone this object. |
Object |
clone(String cloneKey,
javax.servlet.http.HttpServletRequest request)
Clone this object. |
static boolean |
equals(Object one,
Object two)
|
abstract IMagicRequest |
execute(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
DataEngineServlet servlet)
Execute method comment. |
IMagicRequest |
executeAll(javax.servlet.http.HttpServletRequest pRequest,
javax.servlet.http.HttpServletResponse pResponse,
DataEngineServlet pServlet)
Execute method comment. |
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. |
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. |
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. |
String |
getId()
Return the id used to store this magic request in the session. |
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. |
String |
getMagicServletURI()
|
String |
getMagicURI()
Get the URI to use to call the Magic Servlet for this request |
String |
getNextURI(LayoutDisplayPropertyGroup layoutTemplate)
Get the URI of the next page to call. |
static Object |
getRequestAttribute(String key,
javax.servlet.http.HttpServletRequest request)
|
static String |
getRequestParameter(String key,
javax.servlet.http.HttpServletRequest request)
Gets the specified parameter from the HTTPRequest. |
static String[] |
getRequestParameterValues(String key,
javax.servlet.http.HttpServletRequest request)
Gets the specified parameter from the HTTPRequest. |
static Object |
getSessionAttribute(String pKey,
javax.servlet.http.HttpServletRequest pRequest)
Gets the specified object in the HTTPSession. |
static Object |
getSharedSessionAttribute(String key,
javax.servlet.http.HttpServletRequest request)
Gets the specified object in the HTTPSession. |
String |
getSuccessMessage()
Get the message to set in the request if this "Magic Request" runs successfully. |
abstract 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(javax.servlet.http.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 |
isPopup()
Tests if this request should execute in a popup window. |
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 |
preexecute(DataEngineServlet pServlet,
javax.servlet.http.HttpServletRequest pRequest,
javax.servlet.http.HttpServletResponse pResponse)
Called before the execute method runs. |
static Object |
removeRequestAttribute(String key,
javax.servlet.http.HttpServletRequest request)
|
static void |
removeSessionAttribute(String key,
javax.servlet.http.HttpServletRequest request)
Removes the specified object in the HTTPSession. |
static void |
removeSharedSessionAttribute(String key,
javax.servlet.http.HttpServletRequest request)
Removes the specified object in the HTTPSession. |
void |
setAnchorName(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,
javax.servlet.http.HttpServletRequest request)
Sets the state of the magic request to finished executing |
void |
setEndNavigationGroup(boolean endGroup)
|
void |
setFailMessage(String message)
Deprecated. - only temporarily added to support custom fail messages |
void |
setId(String pId)
Sets the id used to store this magic request in the session. |
void |
setNextURI(String uri)
Set the URI of the next page to call. |
void |
setNextURI(String section,
String uri)
Set the URI of the next page to call. |
void |
setNextURIs(LayoutDisplayPropertyGroup props)
|
void |
setPopup(boolean newPopup)
Sets if this request should execute in a popup window. |
static void |
setRequestGroupAttribute(String key,
Object value,
javax.servlet.http.HttpServletRequest request)
|
static void |
setRequestPageAttribute(String key,
Object value,
javax.servlet.http.HttpServletRequest request)
Sets an attribute on the request that is associated with this page. |
static void |
setRequestPersistentAttribute(String key,
Object value,
javax.servlet.http.HttpServletRequest request)
Sets an attribute on the request that will be persisted. |
static void |
setRequestTransientAttribute(String key,
Object value,
javax.servlet.http.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(String pKey,
Object pValue,
javax.servlet.http.HttpServletRequest pRequest)
Sets the specified object in the HTTPSession. |
static void |
setSessionSharedAttribute(String key,
Object value,
javax.servlet.http.HttpServletRequest request)
Sets the specified object in the HttpSession. |
void |
setStartNewNavigationGroup(boolean startNew)
|
void |
setSuccessMessage(String message)
Message to set in the request if this "Magic Request" runs successful. |
IMagicRequest |
store(javax.servlet.http.HttpServletRequest request)
Store this MagicRequest in the user's session to the DataEngineServlet can get at it when requested |
Methods inherited from class planetj.html.AbstractHTMLRenderer |
append, generate, getDisplayType |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface planetj.html.IHTMLRenderer |
append, generate |
Methods inherited from interface planetj.dataengine.display.IRenderer |
getDisplayType |
Constructor Detail |
public AbstractMagicRequest()
public AbstractMagicRequest(String pId, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
pId
- id of MagicRequest used to store the request in the sessionpublic AbstractMagicRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Method Detail |
public void addLinkedRequestAfter(IMagicRequest pMagicRequest)
addLinkedRequestAfter
in interface IMagicRequest
public void addLinkedRequestBefore(IMagicRequest pMagicRequest)
addLinkedRequestBefore
in interface IMagicRequest
public StringBuffer appendUnsupportedHTMLMessage(StringBuffer html)
appendUnsupportedHTMLMessage
in interface IFeature
public Object clone()
clone
in class Object
public Object clone(String cloneKey, javax.servlet.http.HttpServletRequest request)
public static final boolean equals(Object one, Object two)
public abstract IMagicRequest execute(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, DataEngineServlet servlet) throws CMException
execute
in interface IMagicRequest
CMException
public final IMagicRequest executeAll(javax.servlet.http.HttpServletRequest pRequest, javax.servlet.http.HttpServletResponse pResponse, DataEngineServlet pServlet) throws CMException
executeAll
in interface IMagicRequest
CMException
public String getAnchorName()
public Field getBaseField()
getBaseField
in interface IMagicRequest
public Row getBaseRow()
getBaseRow
in interface IMagicRequest
public RowCollection getBaseRowCollection()
public String getCurrentURI()
getCurrentURI
in interface IMagicRequest
public boolean getDefaultEndNavigationGroup()
public String getFailMessage()
public int getFeatureLevel()
getFeatureLevel
in interface IFeature
public IMagicRequest getFirstRequest()
getFirstRequest
in interface IMagicRequest
public String getId()
getId
in interface IMagicRequest
public String getKey()
getKey
in interface IMagicRequest
public IMagicRequest getLastRequest()
getLastRequest
in interface IMagicRequest
public String getMagicServletURI()
public String getMagicURI()
getMagicURI
in interface IMagicRequest
public String getNextURI(LayoutDisplayPropertyGroup layoutTemplate)
getNextURI
in interface IMagicRequest
public static Object getRequestAttribute(String key, javax.servlet.http.HttpServletRequest request)
public static String getRequestParameter(String key, javax.servlet.http.HttpServletRequest request)
public static String[] getRequestParameterValues(String key, javax.servlet.http.HttpServletRequest request)
public static Object getSessionAttribute(String pKey, javax.servlet.http.HttpServletRequest pRequest)
pRequest
- request containing session to retrieve objects from.pKey
- key used to identify the object in the session.public static Object getSharedSessionAttribute(String key, javax.servlet.http.HttpServletRequest request)
public String getSuccessMessage()
public abstract 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(javax.servlet.http.HttpServletRequest req)
isCompleted
in interface IMagicRequest
public boolean isEndNavigationGroup()
IMagicRequest
isEndNavigationGroup
in interface IMagicRequest
public boolean isPopup()
public boolean isReturnToRequester()
isReturnToRequester
in interface IMagicRequest
public boolean isSaveResults()
isSaveResults
in interface IMagicRequest
public boolean isStartNewNavigationGroup()
IMagicRequest
isStartNewNavigationGroup
in interface IMagicRequest
public void preexecute(DataEngineServlet pServlet, javax.servlet.http.HttpServletRequest pRequest, javax.servlet.http.HttpServletResponse pResponse) throws CMException
CMException
public static Object removeRequestAttribute(String key, javax.servlet.http.HttpServletRequest request)
public static void removeSessionAttribute(String key, javax.servlet.http.HttpServletRequest request)
public static void removeSharedSessionAttribute(String key, javax.servlet.http.HttpServletRequest request)
public void setAnchorName(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)
public void setCompleted(boolean pCompleted, javax.servlet.http.HttpServletRequest request)
public void setEndNavigationGroup(boolean endGroup)
public void setFailMessage(String message)
message
- fail message to set in the requestpublic void setId(String pId)
public void setNextURI(String uri)
public void setNextURI(String section, String uri)
public void setNextURIs(LayoutDisplayPropertyGroup props)
public void setPopup(boolean newPopup)
public static void setRequestGroupAttribute(String key, Object value, javax.servlet.http.HttpServletRequest request)
public static void setRequestPageAttribute(String key, Object value, javax.servlet.http.HttpServletRequest request)
public static void setRequestPersistentAttribute(String key, Object value, javax.servlet.http.HttpServletRequest request)
public static void setRequestTransientAttribute(String key, Object value, javax.servlet.http.HttpServletRequest request)
public void setReturnToRequester(boolean returnToRequester)
public void setRowEventListener(IRowEventListener newRowEventListener)
setRowEventListener
in interface IMagicRequest
newRowEventListener
- planetj.database.IRowEventListenerpublic static void setSessionAttribute(String pKey, Object pValue, javax.servlet.http.HttpServletRequest pRequest)
pRequest
- request containing session to store the specified object in.pValue
- the object being stored in the session.public static void setSessionSharedAttribute(String key, Object value, javax.servlet.http.HttpServletRequest request)
public void setStartNewNavigationGroup(boolean startNew)
public void setSuccessMessage(String message)
message
- success message to set in the requestpublic IMagicRequest store(javax.servlet.http.HttpServletRequest request)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |