planetj.magic
Class AddRowRequest
java.lang.Object
|
+--planetj.html.AbstractHTMLRenderer
|
+--planetj.magic.AbstractMagicRequest
|
+--planetj.magic.MagicRequest
|
+--planetj.magic.AddRowRequest
- All Implemented Interfaces:
- IFeature, IHTMLRenderer, IMagicRequest, IRenderer, Serializable
- Direct Known Subclasses:
- AddRecordRequest
- public class AddRowRequest
- extends MagicRequest
- See Also:
- Serialized Form
Constructor Summary |
AddRowRequest(String pId,
javax.servlet.http.HttpServletRequest pReq,
javax.servlet.http.HttpServletResponse pRes)
AddRowRequest constructor. |
AddRowRequest(String pId,
javax.servlet.http.HttpServletRequest pReq,
javax.servlet.http.HttpServletResponse pRes,
String rowSessionId)
AddRowRequest constructor. |
AddRowRequest(String pId,
javax.servlet.http.HttpServletRequest pReq,
javax.servlet.http.HttpServletResponse pRes,
Table table,
Class rowSubClass,
String rowSessionId)
CancelRequest constructor comment. |
AddRowRequest(Table table,
Class rowSubClass,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Creates a new AddRowRequest that will create a new row of the given
type and for the given table and put the row into the session to allow
editing and inserting of the new row. |
Methods inherited from class planetj.magic.AbstractMagicRequest |
addLinkedRequestAfter, addLinkedRequestBefore, appendUnsupportedHTMLMessage, clone, clone, equals, executeAll, getAnchorName, getBaseField, getBaseRow, getBaseRowCollection, getCurrentURI, getDefaultEndNavigationGroup, getFailMessage, getFeatureLevel, getFirstRequest, getId, getKey, getLastRequest, getMagicServletURI, getMagicURI, getNextURI, getRequestAttribute, getRequestParameter, getRequestParameterValues, getSessionAttribute, getSharedSessionAttribute, getSuccessMessage, hasLinkedRequestsAfter, hasLinkedRequestsBefore, isApplicable, isCompleted, isEndNavigationGroup, isPopup, isReturnToRequester, isSaveResults, 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, setBaseField, setBaseRow, setRowEventListener |
AddRowRequest
public AddRowRequest(String pId,
javax.servlet.http.HttpServletRequest pReq,
javax.servlet.http.HttpServletResponse pRes)
- AddRowRequest constructor.
Note: before this MagicRequest can be executed, it needs to know the Table
and Class of the Row to create.
AddRowRequest
public AddRowRequest(String pId,
javax.servlet.http.HttpServletRequest pReq,
javax.servlet.http.HttpServletResponse pRes,
String rowSessionId)
- AddRowRequest constructor.
Note: before this MagicRequest can be executed, it needs to know the Table
and Class of the Row to create.
AddRowRequest
public AddRowRequest(String pId,
javax.servlet.http.HttpServletRequest pReq,
javax.servlet.http.HttpServletResponse pRes,
Table table,
Class rowSubClass,
String rowSessionId)
- CancelRequest constructor comment.
AddRowRequest
public AddRowRequest(Table table,
Class rowSubClass,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
- Creates a new AddRowRequest that will create a new row of the given
type and for the given table and put the row into the session to allow
editing and inserting of the new row.
execute
public IMagicRequest execute(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
DataEngineServlet pServlet)
throws CMException
- execute method comment.
- Specified by:
execute
in interface IMagicRequest
- Specified by:
execute
in class AbstractMagicRequest
CMException
getRowClass
public Class getRowClass()
getRowSessionId
public String getRowSessionId()
getTable
public Table getTable()
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
setRowClass
public void setRowClass(Class rowClass)
setRowSessionId
public void setRowSessionId(String rowSessionId)
setTable
public void setTable(Table table)
- execute method comment.