public class CreateADNRecordAction extends CreateRecordAction
Ensures that new records have unique ID's across their collection. Works in
conjunction with CreateADNRecordForm
.
accessManager, collectionRegistry, dcsDataManager, frameworkRegistry, ndrServiceEnabled, repositoryManager, repositoryService, requiredRole, sessionRegistry, userManager
Constructor and Description |
---|
CreateADNRecordAction() |
Modifier and Type | Method and Description |
---|---|
protected 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 CreateADNRecordAction object
|
protected org.apache.struts.action.ActionForward |
getCreateForward(org.apache.struts.action.ActionMapping mapping)
Gets the createForward attribute of the CreateADNRecordAction object
|
protected java.lang.String |
getXmlFormat()
Gets the xmlFormat attribute of the CreateADNRecordAction object
|
protected 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 CreateADNRecordAction class
|
protected org.apache.struts.action.ActionErrors |
validateForm(javax.servlet.http.HttpServletRequest request,
CreateADNRecordForm carForm,
MetaDataFramework adnFramework)
Validate the input from user.
|
execute, handleSubmit
getMetaDataFramework, getRequiredContextAttributeValue, getSessionBean, getSessionUser, getSessionUser, getSessionUserName, initializeFromContext
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
protected java.lang.String getXmlFormat()
getXmlFormat
in class CreateRecordAction
protected org.apache.struts.action.ActionForward getCreateForward(org.apache.struts.action.ActionMapping mapping)
getCreateForward
in class CreateRecordAction
mapping
- NOT YET DOCUMENTEDprotected org.apache.struts.action.ActionForward getConfirmForward(org.apache.struts.action.ActionMapping mapping, CreateADNRecordForm carForm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
getConfirmForward
in class CreateRecordAction
mapping
- NOT YET DOCUMENTEDcarForm
- NOT YET DOCUMENTEDrequest
- NOT YET DOCUMENTEDresponse
- NOT YET DOCUMENTEDprotected 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
makeRecordDoc
in class CreateRecordAction
carForm
- the ActionFormadnFramework
- NOT YET DOCUMENTEDjava.lang.Exception
- Description of the Exceptionprotected org.apache.struts.action.ActionErrors validateForm(javax.servlet.http.HttpServletRequest request, CreateADNRecordForm carForm, MetaDataFramework adnFramework)
validateForm
in class CreateRecordAction
request
- Description of the ParametercarForm
- Description of the ParameteradnFramework
- NOT YET DOCUMENTEDpublic static void setDebug(boolean isDebugOutput)
isDebugOutput
- The new debug value