planetj.magic
Class RemoveRequest
java.lang.Object
|
+--planetj.html.AbstractHTMLRenderer
|
+--planetj.magic.AbstractMagicRequest
|
+--planetj.magic.MagicRequest
|
+--planetj.magic.RemoveRequest
- All Implemented Interfaces:
- IFeature, IHTMLRenderer, IMagicRequest, IRenderer, Serializable
- public class RemoveRequest
- extends MagicRequest
Removes a Row from a RowCollection without affecting the database
- Author:
- PlanetJ Corporation
- See Also:
- Serialized Form
Constructor Summary |
RemoveRequest(String pId,
javax.servlet.http.HttpServletRequest pRequest,
javax.servlet.http.HttpServletResponse pResponse,
boolean pAllowMultipleRemoves)
DeleteRequest constructor comment. |
Method Summary |
IMagicRequest |
execute(javax.servlet.http.HttpServletRequest pRequest,
javax.servlet.http.HttpServletResponse pResponse,
DataEngineServlet pServlet)
Deletes the object in the session for the specified id in the constructor. |
static IMagicRequest |
getDefaultInstance(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Gets a default instance of this class |
int |
getFeatureLevel()
Gets the minimum feature level requried to execute this operation |
boolean |
isAllowMultipleRemoves()
Indicates if multiple removes are allowed. |
Methods inherited from class planetj.magic.AbstractMagicRequest |
addLinkedRequestAfter, addLinkedRequestBefore, appendUnsupportedHTMLMessage, clone, clone, equals, executeAll, getAnchorName, getBaseField, getBaseRow, getBaseRowCollection, getCurrentURI, getDefaultEndNavigationGroup, getFailMessage, getFirstRequest, getId, getKey, getLastRequest, getMagicServletURI, getMagicURI, getNextURI, getRequestAttribute, getRequestParameter, getRequestParameterValues, getSessionAttribute, getSharedSessionAttribute, getSuccessMessage, hasLinkedRequestsAfter, hasLinkedRequestsBefore, isApplicable, isCompleted, isEndNavigationGroup, isPopup, isReturnToRequester, isSaveResults, isStartNewNavigationGroup, preexecute, removeRequestAttribute, removeSessionAttribute, removeSharedSessionAttribute, setAnchorName, setBaseField, setBaseRow, setBaseRowCollection, setCompleted, setEndNavigationGroup, setFailMessage, setId, setNextURI, setNextURI, setNextURIs, setPopup, setRequestGroupAttribute, setRequestPageAttribute, setRequestPersistentAttribute, setRequestTransientAttribute, setReturnToRequester, setRowEventListener, setSessionAttribute, setSessionSharedAttribute, setStartNewNavigationGroup, setSuccessMessage |
Methods inherited from interface planetj.magic.IMagicRequest |
addLinkedRequestAfter, addLinkedRequestBefore, executeAll, getBaseField, getBaseRow, getCurrentURI, getFirstRequest, getId, getKey, getLastRequest, getMagicURI, getNextURI, isCompleted, isEndNavigationGroup, isReturnToRequester, isSaveResults, isStartNewNavigationGroup, setBaseField, setBaseRow, setRowEventListener |
RemoveRequest
public RemoveRequest(String pId,
javax.servlet.http.HttpServletRequest pRequest,
javax.servlet.http.HttpServletResponse pResponse,
boolean pAllowMultipleRemoves)
- DeleteRequest constructor comment.
- Parameters:
pId
- key used to store this request in the sessionpRequest
- requestpResponse
- responsepAllowMultipleRemoves
- boolean
execute
public IMagicRequest execute(javax.servlet.http.HttpServletRequest pRequest,
javax.servlet.http.HttpServletResponse pResponse,
DataEngineServlet pServlet)
throws CMException
- Deletes the object in the session for the specified id in the constructor.
- Specified by:
execute
in interface IMagicRequest
- Specified by:
execute
in class AbstractMagicRequest
- Parameters:
pRequest
- requestpResponse
- response
CMException
getDefaultInstance
public static IMagicRequest getDefaultInstance(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
- Gets a default instance of this class
isAllowMultipleRemoves
public boolean isAllowMultipleRemoves()
- Indicates if multiple removes are allowed.
- Returns:
- boolean
getFeatureLevel
public int getFeatureLevel()
- Gets the minimum feature level requried to execute this operation
- Specified by:
getFeatureLevel
in interface IFeature
- Overrides:
getFeatureLevel
in class AbstractMagicRequest