|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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 | |
|---|---|
ActionForward |
execute(ActionMapping mapping,
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(ActionMapping mapping,
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 ActionForward |
handleCancelRequest(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
Cancels editing of current metadata record. |
protected ActionForward |
handleChangeIdRequest(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
SchemaHelper schemaHelper,
SchemEditValidator validator)
Description of the Method |
protected ActionForward |
handleEditRequest(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
Description of the Method |
protected ActionForward |
handleMissingCommand(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
Requests without a command forward control to the home page for this framework. |
protected ActionForward |
handleNewRecordRequest(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
Description of the Method |
protected ActionForward |
handleOtherCommands(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
Description of the Method |
protected ActionForward |
handleSaveRequest(ActionMapping mapping,
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(ActionMapping mapping,
ActionForm form,
HttpServletRequest request)
Saves a metadata record either to disk |
protected ActionErrors |
saveRecord(ActionMapping mapping,
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 ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws IOException,
ServletException
AbstractSchemEditActionActionForward 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 AbstractSchemEditActionmapping - 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 Exception
protected ActionForward handleMissingCommand(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws ServletException
handleMissingCommand in class AbstractSchemEditActionmapping - Description of the Parameterform - Description of the Parameterrequest - Description of the Parameterresponse - Description of the Parameter
ServletException - Description of the Exception
protected ActionForward handleOtherCommands(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
MissingLockException
handleOtherCommands in class AbstractSchemEditActionmapping - Description of the Parameterform - Description of the Parameterrequest - Description of the Parameterresponse - Description of the Parameter
ServletException - Description of the Exception
MissingLockException - NOT YET DOCUMENTED
protected ActionErrors saveRecord(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response,
SchemEditValidator validator)
throws MissingLockException
MissingLockException
protected ActionForward handleSaveRequest(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response,
SchemEditValidator validator)
throws ServletException,
MissingLockException
AbstractSchemEditAction
handleSaveRequest in class AbstractSchemEditActionmapping - 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 Exception
protected File getFileToEdit(ActionMapping mapping,
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 Exception
protected ActionForward handleNewRecordRequest(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws ServletException
handleNewRecordRequest in class AbstractSchemEditActionmapping - Description of the Parameterform - Description of the Parameterrequest - Description of the Parameterresponse - Description of the Parameter
ServletException - Description of the Exception
protected ActionForward handleCancelRequest(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws ServletException
AbstractSchemEditAction
handleCancelRequest in class AbstractSchemEditActionmapping - the ActionMappingform - the ActionFormrequest - the Requestresponse - the Response
ServletException - NOT YET DOCUMENTED
protected ActionForward handleEditRequest(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws ServletException
handleEditRequest in class AbstractSchemEditActionmapping - Description of the Parameterform - Description of the Parameterrequest - Description of the Parameterresponse - Description of the Parameter
ServletException - Description of the Exception
protected void putRecord(ActionMapping mapping,
ActionForm form,
HttpServletRequest request)
throws Exception
putRecord in class AbstractSchemEditActionmapping - Description of the Parameterform - Description of the Parameterrequest - Description of the Parameter
Exception - if save operation is unsuccessful
protected ActionForward handleChangeIdRequest(ActionMapping mapping,
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 AbstractSchemEditActions - 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 | ||||||||