|
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
org.dlese.dpc.schemedit.action.FrameworkConfigAction
public final class FrameworkConfigAction
Controller for the DcsDataFramework editor. As a stand-alone schemedit action, this supports framework-config files to be created and edited in a particular directory, and is not connected to the index or repository.
$Id: FrameworkConfigAction.java,v 1.6 2009/03/20 23:33:55 jweather Exp $
| Field Summary |
|---|
| Fields inherited from class org.dlese.dpc.schemedit.action.StandAloneSchemEditAction |
|---|
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 | |
|---|---|
FrameworkConfigAction()
|
|
| Method Summary | |
|---|---|
ActionForward |
execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
Place the name of the edited framework in the request before calling super.execute. |
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 String |
getXmlFormat()
Gets the xmlFormat attribute of the StandAloneSchemEditAction object |
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 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 |
| Methods inherited from class org.dlese.dpc.schemedit.action.StandAloneSchemEditAction |
|---|
getRemoteRecord, handleCancelRequest, handleChangeIdRequest, handleEditRequest, handleNewRecordRequest, handleOtherCommands, handleSaveRequest, saveRecord |
| 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 |
| Constructor Detail |
|---|
public FrameworkConfigAction()
| Method Detail |
|---|
protected String getXmlFormat()
StandAloneSchemEditAction
getXmlFormat in class StandAloneSchemEditActionprotected File getRecordsDir()
StandAloneSchemEditAction
getRecordsDir in class StandAloneSchemEditAction
public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws IOException,
ServletException
execute in class StandAloneSchemEditActionmapping - 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 Exception
protected File getFileToEdit(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
SchemaHelper schemaHelper)
throws Exception
StandAloneSchemEditAction
getFileToEdit in class StandAloneSchemEditActionmapping - Description of the Parameterform - Description of the Parameterrequest - Description of the ParameterschemaHelper - Description of the Parameter
Exception - Description of the Exception
protected void putRecord(ActionMapping mapping,
ActionForm form,
HttpServletRequest request)
throws Exception
StandAloneSchemEditAction
putRecord in class StandAloneSchemEditActionmapping - Description of the Parameterform - Description of the Parameterrequest - Description of the Parameter
Exception - if save operation is unsuccessful
protected ActionForward handleMissingCommand(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws ServletException
StandAloneSchemEditAction
handleMissingCommand in class StandAloneSchemEditActionmapping - Description of the Parameterform - Description of the Parameterrequest - Description of the Parameterresponse - Description of the Parameter
ServletException - Description of the Exceptionprotected void prtln(String s)
StandAloneSchemEditAction
prtln in class StandAloneSchemEditActions - 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 | ||||||||