public abstract class CreateRecordAction extends DCSAction
accessManager, collectionRegistry, dcsDataManager, frameworkRegistry, ndrServiceEnabled, repositoryManager, repositoryService, requiredRole, sessionRegistry, userManager| Constructor and Description |
|---|
CreateRecordAction() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.struts.action.ActionForward |
execute(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Processes the specified HTTP request and creates the corresponding HTTP
response by forwarding to a JSP that will create it.
|
protected abstract org.apache.struts.action.ActionForward |
getConfirmForward(org.apache.struts.action.ActionMapping mapping,
CreateADNRecordForm carForm,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Gets the confirmForward attribute of the CreateRecordAction object
|
protected abstract org.apache.struts.action.ActionForward |
getCreateForward(org.apache.struts.action.ActionMapping mapping)
Gets the createForward attribute of the CreateRecordAction object
|
protected abstract java.lang.String |
getXmlFormat()
Gets the xmlFormat attribute of the CreateRecordAction object
|
protected org.apache.struts.action.ActionForward |
handleSubmit(CreateADNRecordForm carForm,
MetaDataFramework framework,
org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
NOT YET DOCUMENTED
|
protected abstract org.dom4j.Document |
makeRecordDoc(CreateADNRecordForm carForm,
MetaDataFramework framework,
org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Create an empty collection metadata document and populate from ActionForm
(carForm).
|
static void |
setDebug(boolean isDebugOutput)
Sets the debug attribute of the CreateRecordAction class
|
protected abstract org.apache.struts.action.ActionErrors |
validateForm(javax.servlet.http.HttpServletRequest request,
CreateADNRecordForm carForm,
MetaDataFramework framework)
Validate the input from user.
|
getMetaDataFramework, getRequiredContextAttributeValue, getSessionBean, getSessionUser, getSessionUser, getSessionUserName, initializeFromContextaddErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServletprotected abstract java.lang.String getXmlFormat()
protected abstract org.apache.struts.action.ActionForward getCreateForward(org.apache.struts.action.ActionMapping mapping)
mapping - NOT YET DOCUMENTEDprotected abstract org.apache.struts.action.ActionForward getConfirmForward(org.apache.struts.action.ActionMapping mapping,
CreateADNRecordForm carForm,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
mapping - NOT YET DOCUMENTEDcarForm - NOT YET DOCUMENTEDrequest - NOT YET DOCUMENTEDresponse - NOT YET DOCUMENTEDpublic org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
ActionForward instance that maps to a Struts
forwarding name, which must be configured in struts-config.xml to forward
to the JSP page that will handle the request.execute in class org.apache.struts.action.Actionmapping - The ActionMapping used to select this instancerequest - The HTTP request we are processingresponse - The HTTP response we are creatingform - The ActionForm for the given pagejava.io.IOException - if an input/output error occursjavax.servlet.ServletException - if a servlet exception occursprotected org.apache.struts.action.ActionForward handleSubmit(CreateADNRecordForm carForm, MetaDataFramework framework, org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
carForm - NOT YET DOCUMENTEDframework - NOT YET DOCUMENTEDmapping - NOT YET DOCUMENTEDrequest - NOT YET DOCUMENTEDresponse - NOT YET DOCUMENTEDprotected abstract org.dom4j.Document makeRecordDoc(CreateADNRecordForm carForm, MetaDataFramework framework, org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
carForm - the ActionFormframework - the MetaDataFramework of the record being createdjava.lang.Exception - Description of the Exceptionprotected abstract org.apache.struts.action.ActionErrors validateForm(javax.servlet.http.HttpServletRequest request,
CreateADNRecordForm carForm,
MetaDataFramework framework)
request - the RequestcarForm - the ActionFormframework - the MetaDataFramework of the record being createdpublic static void setDebug(boolean isDebugOutput)
isDebugOutput - The new debug value