public abstract class AbstractSchemEditAction extends DCSAction
Modifier and Type | Field and Description |
---|---|
protected static boolean |
debug
Description of the Field
|
protected java.lang.String |
firstPage
where to go when the user clicks "edit"
|
protected java.lang.String |
homePage
Description of the Field
|
protected java.lang.String |
xmlFormat
NOT YET DOCUMENTED
|
accessManager, collectionRegistry, dcsDataManager, frameworkRegistry, ndrServiceEnabled, repositoryManager, repositoryService, requiredRole, sessionRegistry, userManager
Constructor and Description |
---|
AbstractSchemEditAction() |
Modifier and Type | Method and Description |
---|---|
protected void |
attachNewElement(java.lang.String pathArg,
SchemEditForm sef,
SchemaHelper schemaHelper)
Create a new element and attach it to the instance document
|
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 org.apache.struts.action.ActionForward |
getEditorMapping(org.apache.struts.action.ActionMapping mapping)
Determines the appropriate editor mapping depending on whether the editor
is configured to use a frame-based display.
|
protected MetaDataFramework |
getMetaDataFramework()
Gets the metaDataFramework attribute of the record being edited.
|
protected SchemEditValidator |
getValidator(org.apache.struts.action.ActionForm form,
org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
Gets the validator attribute of the AbstractSchemEditAction object
|
protected abstract java.lang.String |
getXmlFormat()
Gets the xmlFormat attribute of the AbstractSchemEditAction object, which
identifies the MetaDataFramework of the record being edited.
|
protected abstract org.apache.struts.action.ActionForward |
handleCancelRequest(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Cancels editing of current metadata record.
|
protected org.apache.struts.action.ActionForward |
handleDeleteElement(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
SchemEditValidator validator)
A hook for extensions of AbstractSchemEditAction to handle misc
unanticipated requests.
|
protected abstract org.apache.struts.action.ActionForward |
handleEditRequest(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Loads a record into the MetaDataEditor
|
protected org.apache.struts.action.ActionForward |
handleExitCommand(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
SchemEditValidator validator) |
protected org.apache.struts.action.ActionForward |
handleGuardedExit(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
SchemEditValidator validator)
Check to see if the document has been modified in editor.
|
protected abstract org.apache.struts.action.ActionForward |
handleMissingCommand(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handle the case where the request contains a command that is not processed
by this Class by calling the "handleMissingCommand" method of a subclass.
|
protected org.apache.struts.action.ActionForward |
handleMissingLockException(MissingLockException mle,
org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
NOT YET DOCUMENTED
|
protected abstract org.apache.struts.action.ActionForward |
handleNewRecordRequest(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Description of the Method
|
protected org.apache.struts.action.ActionForward |
handleOtherCommands(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
A hook for extensions of AbstractSchemEditAction to handle misc
unanticipated requests.
|
protected abstract org.apache.struts.action.ActionForward |
handleSaveRequest(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
SchemEditValidator validator)
Description of the Method
|
protected org.apache.struts.action.ActionForward |
handleTimedOutGuardedExit(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request)
NOT YET DOCUMENTED
|
protected org.apache.struts.action.ActionForward |
isDocDirty(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
SchemEditValidator validator)
Check to see if the document has been modified in editor.
|
protected void |
prtln(java.lang.String s)
Print a line to standard out.
|
protected void |
prtlnErr(java.lang.String s) |
protected abstract void |
putRecord(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request)
Abstract call to save record.
|
protected org.apache.struts.action.ActionErrors |
uniqueUrlCheck(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request)
Check values of schemapaths designated as "uniqueUrl"s for duplicate or
similiar values within given collection.
|
protected org.apache.struts.action.ActionErrors |
uniqueValueCheck(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
SchemEditValidator validator)
Checks each field in the instance document associated with a configured
"uniqueValue" path for duplicate values in the same field in other records
in the collection.
|
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 static boolean debug
protected java.lang.String firstPage
protected java.lang.String homePage
protected java.lang.String xmlFormat
protected abstract java.lang.String getXmlFormat()
protected MetaDataFramework getMetaDataFramework()
protected SchemEditValidator getValidator(org.apache.struts.action.ActionForm form, org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
form
- NOT YET DOCUMENTEDmapping
- NOT YET DOCUMENTEDrequest
- NOT YET DOCUMENTEDprotected abstract void putRecord(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request) throws java.lang.Exception
mapping
- Description of the Parameterform
- Description of the Parameterrequest
- Description of the Parameterjava.lang.Exception
- Description of the Exceptionpublic 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 the Struts
forwarding name "xxx.xxx," 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
- Description of the Parameterform
- Description of the Parameterrequest
- Description of the Parameterresponse
- Description of the Parameterjava.io.IOException
- Description of the Exceptionjavax.servlet.ServletException
- Description of the Exceptionprotected org.apache.struts.action.ActionErrors uniqueValueCheck(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, SchemEditValidator validator)
mapping
- the actionMappingform
- the actionFormrequest
- the requestvalidator
- the validator for this formprotected org.apache.struts.action.ActionErrors uniqueUrlCheck(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request)
mapping
- the actionMappingform
- the actionFormrequest
- the requestprotected org.apache.struts.action.ActionForward isDocDirty(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, SchemEditValidator validator) throws javax.servlet.ServletException
mapping
- the actionMappingform
- the actionFormrequest
- the requestvalidator
- Description of the Parameterjavax.servlet.ServletException
- NOT YET DOCUMENTEDprotected org.apache.struts.action.ActionForward handleGuardedExit(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, SchemEditValidator validator) throws javax.servlet.ServletException
mapping
- the actionMappingform
- the actionFormrequest
- the requestvalidator
- Description of the Parameterjavax.servlet.ServletException
- NOT YET DOCUMENTEDprotected org.apache.struts.action.ActionForward handleExitCommand(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, SchemEditValidator validator) throws javax.servlet.ServletException
javax.servlet.ServletException
protected org.apache.struts.action.ActionForward handleTimedOutGuardedExit(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request) throws javax.servlet.ServletException
mapping
- the actionMappingform
- the actionFormrequest
- the requestjavax.servlet.ServletException
- NOT YET DOCUMENTEDprotected org.apache.struts.action.ActionForward getEditorMapping(org.apache.struts.action.ActionMapping mapping)
mapping
- Description of the Parameterprotected org.apache.struts.action.ActionForward handleMissingLockException(MissingLockException mle, org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException
mle
- the missingLockException we are handlingmapping
- the actionMappingform
- the actionFormrequest
- the requestresponse
- NOT YET DOCUMENTEDjavax.servlet.ServletException
- NOT YET DOCUMENTEDprotected org.apache.struts.action.ActionForward handleDeleteElement(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, SchemEditValidator validator) throws javax.servlet.ServletException
mapping
- the actionMappingform
- the actionFormrequest
- the requestvalidator
- NOT YET DOCUMENTEDjavax.servlet.ServletException
- Description of the Exceptionprotected org.apache.struts.action.ActionForward handleOtherCommands(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, MissingLockException
mapping
- the actionMappingform
- the actionFormrequest
- the requestresponse
- Description of the Parameterjavax.servlet.ServletException
- Description of the ExceptionMissingLockException
- NOT YET DOCUMENTEDprotected abstract org.apache.struts.action.ActionForward handleMissingCommand(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException
mapping
- the ActionMappingform
- the ActionFormrequest
- the Requestresponse
- the Responsejavax.servlet.ServletException
- If the subclass does not handle the commandprotected abstract org.apache.struts.action.ActionForward handleEditRequest(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException
mapping
- the ActionMappingform
- the ActionFormrequest
- the Requestresponse
- the Responsejavax.servlet.ServletException
- Description of the Exceptionprotected abstract org.apache.struts.action.ActionForward handleCancelRequest(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException
mapping
- the ActionMappingform
- the ActionFormrequest
- the Requestresponse
- the Responsejavax.servlet.ServletException
- NOT YET DOCUMENTEDprotected abstract org.apache.struts.action.ActionForward handleNewRecordRequest(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException
mapping
- the ActionMappingform
- the ActionFormrequest
- the Requestresponse
- the Responsejavax.servlet.ServletException
- Description of the Exceptionprotected abstract org.apache.struts.action.ActionForward handleSaveRequest(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, SchemEditValidator validator) throws javax.servlet.ServletException, MissingLockException
mapping
- the ActionMappingform
- the ActionFormrequest
- the Requestresponse
- the Responsevalidator
- Description of the Parameterjavax.servlet.ServletException
- Description of the ExceptionMissingLockException
- Description of the Exceptionprotected void attachNewElement(java.lang.String pathArg, SchemEditForm sef, SchemaHelper schemaHelper) throws java.lang.Exception
pathArg
- path of element to be attachedsef
- the form beanschemaHelper
- the schemaHelperjava.lang.Exception
- if new element could not be created and attachedprotected void prtln(java.lang.String s)
s
- The String to print.protected void prtlnErr(java.lang.String s)