|
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.CollectionConfigAction
public final class CollectionConfigAction
Controller for the Collection Settings editor. Automatically reloads saved config file so that changes take effect immediately.
| 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 | |
|---|---|
CollectionConfigAction()
|
|
| Method Summary | |
|---|---|
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 CollectionConfigAction object |
protected File |
getRecordsDir()
Gets the recordsDir attribute of the CollectionConfigAction object |
protected SchemEditValidator |
getValidator(org.apache.struts.action.ActionForm form,
org.apache.struts.action.ActionMapping mapping,
HttpServletRequest request)
Gets the validator attribute of the CollectionConfigAction object |
protected String |
getXmlFormat()
Gets the xmlFormat attribute of the CollectionConfigAction object |
protected org.apache.struts.action.ActionForward |
handleOtherCommands(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
handle commands specific to this controller, call the superclasses handleOtherCommands method if a command is not recognized |
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)
Write the saved config file to disk, and update NDR if this collection is registered with the NDR. |
protected void |
prtln(String s)
Print a line to standard out. |
protected void |
prtlnErr(String s)
NOT YET DOCUMENTED |
| Methods inherited from class org.dlese.dpc.schemedit.action.StandAloneSchemEditAction |
|---|
execute, getRemoteRecord, handleCancelRequest, handleChangeIdRequest, handleEditRequest, handleMissingCommand, handleNewRecordRequest, putRecord, saveRecord |
| Methods inherited from class org.dlese.dpc.schemedit.action.AbstractSchemEditAction |
|---|
attachNewElement, getEditorMapping, getMetaDataFramework, handleDeleteElement, handleExitCommand, handleGuardedExit, handleMissingLockException, handleTimedOutGuardedExit, isDocDirty, 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 CollectionConfigAction()
| Method Detail |
|---|
protected SchemEditValidator getValidator(org.apache.struts.action.ActionForm form,
org.apache.struts.action.ActionMapping mapping,
HttpServletRequest request)
getValidator in class AbstractSchemEditActionform - Description of the Parametermapping - Description of the Parameterrequest - Description of the Parameter
protected File getRecordsDir()
getRecordsDir in class StandAloneSchemEditActionprotected String getXmlFormat()
getXmlFormat in class StandAloneSchemEditAction
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
handleSaveRequest in class StandAloneSchemEditActionmapping - the ActionMappingform - the ActionFormrequest - the Requestresponse - the Responsevalidator - the special validator for configs
ServletException - Description of the Exception
MissingLockException - if this config is currently being edited
by someone else
protected 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 StandAloneSchemEditActionmapping - Description of the Parameterform - Description of the Parameterrequest - Description of the Parameterresponse - Description of the Parameter
ServletException - Description of the Exception
MissingLockException - Description of the Exception
protected File getFileToEdit(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
HttpServletRequest request,
SchemaHelper schemaHelper)
throws Exception
getFileToEdit in class StandAloneSchemEditActionmapping - Description of the Parameterform - Description of the Parameterrequest - Description of the ParameterschemaHelper - Description of the Parameter
Exception - Description of the Exceptionprotected void prtln(String s)
prtln in class StandAloneSchemEditActions - The String to print.protected void prtlnErr(String s)
prtlnErr in class AbstractSchemEditActions - NOT YET DOCUMENTED
|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||