|
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.AbstractSchemEditAction org.dlese.dpc.schemedit.action.StandAloneSchemEditAction
public class StandAloneSchemEditAction
Metadata Editor controller for xml records to be created and edited in a particular disk directory rather than reading and writing to a indexed repository.
Field Summary | |
---|---|
protected static boolean |
debug
Description of the Field |
protected File |
recordsDir
|
Fields inherited from class org.dlese.dpc.schemedit.action.AbstractSchemEditAction |
---|
firstPage, homePage, xmlFormat |
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 | |
---|---|
StandAloneSchemEditAction()
|
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 File |
getFileToEdit(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
HttpServletRequest request,
SchemaHelper schemaHelper)
Gets the fileToEdit attribute of the StandAloneSchemEditAction object |
protected File |
getRecordsDir()
Gets the recordsDir attribute of the StandAloneSchemEditAction object |
protected Document |
getRemoteRecord(String recId)
Obtain a record via Web Service. |
protected 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,
HttpServletRequest request,
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,
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,
HttpServletRequest request,
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,
HttpServletRequest request,
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,
HttpServletRequest request,
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,
HttpServletRequest request,
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,
HttpServletRequest request,
HttpServletResponse response,
SchemEditValidator validator)
Description of the Method |
protected void |
prtln(String s)
Print a line to standard out. |
protected void |
putRecord(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
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,
HttpServletRequest request,
HttpServletResponse response,
SchemEditValidator validator)
Save a record to disk. |
Methods inherited from class org.dlese.dpc.schemedit.action.AbstractSchemEditAction |
---|
attachNewElement, getEditorMapping, getMetaDataFramework, getValidator, handleDeleteElement, handleExitCommand, handleGuardedExit, handleMissingLockException, handleTimedOutGuardedExit, isDocDirty, prtlnErr, uniqueUrlCheck, uniqueValueCheck |
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 |
Field Detail |
---|
protected static boolean debug
protected File recordsDir
Constructor Detail |
---|
public StandAloneSchemEditAction()
Method Detail |
---|
protected 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, HttpServletRequest request, HttpServletResponse response) throws IOException, 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 Parameter
IOException
- Description of the Exception
ServletException
- Description of the Exceptionprotected File getRecordsDir()
protected Document getRemoteRecord(String recId) throws ServletException
recId
- Description of the Parameter
ServletException
- Description of the Exceptionprotected org.apache.struts.action.ActionForward handleMissingCommand(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response) throws ServletException
handleMissingCommand
in class AbstractSchemEditAction
mapping
- Description of the Parameterform
- Description of the Parameterrequest
- Description of the Parameterresponse
- Description of the Parameter
ServletException
- Description of the Exceptionprotected org.apache.struts.action.ActionForward handleOtherCommands(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response) throws ServletException, MissingLockException
handleOtherCommands
in class AbstractSchemEditAction
mapping
- Description of the Parameterform
- Description of the Parameterrequest
- Description of the Parameterresponse
- Description of the Parameter
ServletException
- Description of the Exception
MissingLockException
- NOT YET DOCUMENTEDprotected org.apache.struts.action.ActionErrors saveRecord(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, 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, HttpServletRequest request, HttpServletResponse response, SchemEditValidator validator) throws 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 Parameter
ServletException
- Description of the Exception
MissingLockException
- Description of the Exceptionprotected File getFileToEdit(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, SchemaHelper schemaHelper) throws Exception
mapping
- Description of the Parameterform
- Description of the Parameterrequest
- Description of the ParameterschemaHelper
- Description of the Parameter
Exception
- Description of the Exceptionprotected org.apache.struts.action.ActionForward handleNewRecordRequest(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response) throws ServletException
handleNewRecordRequest
in class AbstractSchemEditAction
mapping
- Description of the Parameterform
- Description of the Parameterrequest
- Description of the Parameterresponse
- Description of the Parameter
ServletException
- Description of the Exceptionprotected org.apache.struts.action.ActionForward handleCancelRequest(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response) throws ServletException
AbstractSchemEditAction
handleCancelRequest
in class AbstractSchemEditAction
mapping
- the ActionMappingform
- the ActionFormrequest
- the Requestresponse
- the Response
ServletException
- NOT YET DOCUMENTEDprotected org.apache.struts.action.ActionForward handleEditRequest(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response) throws ServletException
handleEditRequest
in class AbstractSchemEditAction
mapping
- Description of the Parameterform
- Description of the Parameterrequest
- Description of the Parameterresponse
- Description of the Parameter
ServletException
- Description of the Exceptionprotected void putRecord(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request) throws Exception
putRecord
in class AbstractSchemEditAction
mapping
- Description of the Parameterform
- Description of the Parameterrequest
- Description of the Parameter
Exception
- if save operation is unsuccessfulprotected org.apache.struts.action.ActionForward handleChangeIdRequest(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, 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 Parameter
protected void prtln(String s)
prtln
in class AbstractSchemEditAction
s
- The String to print.
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |