|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.struts.action.Action org.dlese.dpc.schemedit.action.DCSAction org.dlese.dpc.schemedit.action.CreateRecordAction
public abstract class CreateRecordAction
A Struts Action controlling interaction during creation of metadata records for frameworks that require an initial data-entry screen before entering the metadata editor. For example, in the ADN framework, a url must first be checked for uniqueness before a record is created.
Field Summary |
---|
Fields inherited from class org.dlese.dpc.schemedit.action.DCSAction |
---|
accessManager, collectionRegistry, dcsDataManager, frameworkRegistry, ndrServiceEnabled, repositoryManager, repositoryService, requiredRole, sessionRegistry, userManager |
Fields inherited from class org.apache.struts.action.Action |
---|
defaultLocale, servlet |
Constructor Summary | |
---|---|
CreateRecordAction()
|
Method Summary | |
---|---|
org.apache.struts.action.ActionForward |
execute(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
HttpServletRequest request,
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,
HttpServletRequest request,
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 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,
HttpServletRequest request,
HttpServletResponse response)
NOT YET DOCUMENTED |
protected abstract Document |
makeRecordDoc(CreateADNRecordForm carForm,
MetaDataFramework framework,
org.apache.struts.action.ActionMapping mapping,
HttpServletRequest request,
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(HttpServletRequest request,
CreateADNRecordForm carForm,
MetaDataFramework framework)
Validate the input from user. |
Methods inherited from class org.dlese.dpc.schemedit.action.DCSAction |
---|
getMetaDataFramework, getRequiredContextAttributeValue, getSessionBean, getSessionUser, getSessionUser, getSessionUserName, initializeFromContext |
Methods inherited from class org.apache.struts.action.Action |
---|
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CreateRecordAction()
Method Detail |
---|
protected abstract String getXmlFormat()
protected abstract org.apache.struts.action.ActionForward getCreateForward(org.apache.struts.action.ActionMapping mapping)
mapping
- NOT YET DOCUMENTED
protected abstract org.apache.struts.action.ActionForward getConfirmForward(org.apache.struts.action.ActionMapping mapping, CreateADNRecordForm carForm, HttpServletRequest request, HttpServletResponse response)
mapping
- NOT YET DOCUMENTEDcarForm
- NOT YET DOCUMENTEDrequest
- NOT YET DOCUMENTEDresponse
- NOT YET DOCUMENTED
public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, 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.Action
mapping
- The ActionMapping used to select this instancerequest
- The HTTP request we are processingresponse
- The HTTP response we are creatingform
- The ActionForm for the given page
IOException
- if an input/output error occurs
ServletException
- if a servlet exception occursprotected org.apache.struts.action.ActionForward handleSubmit(CreateADNRecordForm carForm, MetaDataFramework framework, org.apache.struts.action.ActionMapping mapping, HttpServletRequest request, HttpServletResponse response)
carForm
- NOT YET DOCUMENTEDframework
- NOT YET DOCUMENTEDmapping
- NOT YET DOCUMENTEDrequest
- NOT YET DOCUMENTEDresponse
- NOT YET DOCUMENTED
protected abstract Document makeRecordDoc(CreateADNRecordForm carForm, MetaDataFramework framework, org.apache.struts.action.ActionMapping mapping, HttpServletRequest request, HttpServletResponse response) throws Exception
carForm
- the ActionFormframework
- the MetaDataFramework of the record being created
Exception
- Description of the Exceptionprotected abstract org.apache.struts.action.ActionErrors validateForm(HttpServletRequest request, CreateADNRecordForm carForm, MetaDataFramework framework)
request
- the RequestcarForm
- the ActionFormframework
- the MetaDataFramework of the record being created
public static void setDebug(boolean isDebugOutput)
isDebugOutput
- The new debug value
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |