public class StandAloneSchemEditAction extends AbstractSchemEditAction
Modifier and Type | Field and Description |
---|---|
protected static boolean |
debug
Description of the Field
|
protected java.io.File |
recordsDir |
firstPage, homePage, xmlFormat
accessManager, collectionRegistry, dcsDataManager, frameworkRegistry, ndrServiceEnabled, repositoryManager, repositoryService, requiredRole, sessionRegistry, userManager
Constructor and Description |
---|
StandAloneSchemEditAction() |
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 java.io.File |
getFileToEdit(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
SchemaHelper schemaHelper)
Gets the fileToEdit attribute of the StandAloneSchemEditAction object
|
protected java.io.File |
getRecordsDir()
Gets the recordsDir attribute of the StandAloneSchemEditAction object
|
protected org.dom4j.Document |
getRemoteRecord(java.lang.String recId)
Obtain a record via Web Service.
|
protected java.lang.String |
getXmlFormat()
Gets the xmlFormat attribute of the StandAloneSchemEditAction object
|
protected 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 |
handleChangeIdRequest(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
SchemaHelper schemaHelper,
SchemEditValidator validator)
Description of the Method
|
protected 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)
Description of the Method
|
protected 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)
Requests without a command forward control to the home page for this
framework.
|
protected 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)
Description of the Method
|
protected 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 void |
prtln(java.lang.String s)
Print a line to standard out.
|
protected void |
putRecord(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request)
Saves a metadata record either to disk
|
protected org.apache.struts.action.ActionErrors |
saveRecord(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
SchemEditValidator validator)
Save a record to disk.
|
attachNewElement, getEditorMapping, getMetaDataFramework, getValidator, handleDeleteElement, handleExitCommand, handleGuardedExit, handleMissingLockException, handleTimedOutGuardedExit, isDocDirty, prtlnErr, uniqueUrlCheck, uniqueValueCheck
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.io.File recordsDir
protected java.lang.String getXmlFormat()
getXmlFormat
in class AbstractSchemEditAction
public 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
AbstractSchemEditAction
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 AbstractSchemEditAction
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 java.io.File getRecordsDir()
protected org.dom4j.Document getRemoteRecord(java.lang.String recId) throws javax.servlet.ServletException
recId
- Description of the Parameterjavax.servlet.ServletException
- Description of the Exceptionprotected 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
handleMissingCommand
in class AbstractSchemEditAction
mapping
- Description of the Parameterform
- Description of the Parameterrequest
- Description of the Parameterresponse
- Description of the Parameterjavax.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
handleOtherCommands
in class AbstractSchemEditAction
mapping
- Description of the Parameterform
- Description of the Parameterrequest
- Description of the Parameterresponse
- Description of the Parameterjavax.servlet.ServletException
- Description of the ExceptionMissingLockException
- NOT YET DOCUMENTEDprotected org.apache.struts.action.ActionErrors saveRecord(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 MissingLockException
MissingLockException
protected 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
AbstractSchemEditAction
handleSaveRequest
in class AbstractSchemEditAction
mapping
- Description of the Parameterform
- Description of the Parameterrequest
- Description of the Parameterresponse
- Description of the Parametervalidator
- Description of the Parameterjavax.servlet.ServletException
- Description of the ExceptionMissingLockException
- Description of the Exceptionprotected java.io.File getFileToEdit(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, SchemaHelper schemaHelper) throws java.lang.Exception
mapping
- Description of the Parameterform
- Description of the Parameterrequest
- Description of the ParameterschemaHelper
- Description of the Parameterjava.lang.Exception
- Description of the Exceptionprotected 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
handleNewRecordRequest
in class AbstractSchemEditAction
mapping
- Description of the Parameterform
- Description of the Parameterrequest
- Description of the Parameterresponse
- Description of the Parameterjavax.servlet.ServletException
- Description of the Exceptionprotected 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
AbstractSchemEditAction
handleCancelRequest
in class AbstractSchemEditAction
mapping
- the ActionMappingform
- the ActionFormrequest
- the Requestresponse
- the Responsejavax.servlet.ServletException
- NOT YET DOCUMENTEDprotected 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
handleEditRequest
in class AbstractSchemEditAction
mapping
- Description of the Parameterform
- Description of the Parameterrequest
- Description of the Parameterresponse
- Description of the Parameterjavax.servlet.ServletException
- Description of the Exceptionprotected void putRecord(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request) throws java.lang.Exception
putRecord
in class AbstractSchemEditAction
mapping
- Description of the Parameterform
- Description of the Parameterrequest
- Description of the Parameterjava.lang.Exception
- if save operation is unsuccessfulprotected org.apache.struts.action.ActionForward handleChangeIdRequest(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, SchemaHelper schemaHelper, SchemEditValidator validator)
mapping
- Description of the Parameterform
- Description of the Parameterrequest
- Description of the ParameterschemaHelper
- Description of the Parametervalidator
- Description of the Parameterprotected void prtln(java.lang.String s)
prtln
in class AbstractSchemEditAction
s
- The String to print.