public final class CollectionConfigAction extends StandAloneSchemEditAction
recordsDir
firstPage, homePage, xmlFormat
accessManager, collectionRegistry, dcsDataManager, frameworkRegistry, ndrServiceEnabled, repositoryManager, repositoryService, requiredRole, sessionRegistry, userManager
Constructor and Description |
---|
CollectionConfigAction() |
Modifier and Type | Method and Description |
---|---|
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 CollectionConfigAction object
|
protected java.io.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,
javax.servlet.http.HttpServletRequest request)
Gets the validator attribute of the CollectionConfigAction object
|
protected java.lang.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,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.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,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.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(java.lang.String s)
Print a line to standard out.
|
protected void |
prtlnErr(java.lang.String s)
NOT YET DOCUMENTED
|
execute, getRemoteRecord, handleCancelRequest, handleChangeIdRequest, handleEditRequest, handleMissingCommand, handleNewRecordRequest, putRecord, saveRecord
attachNewElement, getEditorMapping, getMetaDataFramework, handleDeleteElement, handleExitCommand, handleGuardedExit, handleMissingLockException, handleTimedOutGuardedExit, isDocDirty, 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 SchemEditValidator getValidator(org.apache.struts.action.ActionForm form, org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
getValidator
in class AbstractSchemEditAction
form
- Description of the Parametermapping
- Description of the Parameterrequest
- Description of the Parameterprotected java.io.File getRecordsDir()
getRecordsDir
in class StandAloneSchemEditAction
protected java.lang.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, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, SchemEditValidator validator) throws javax.servlet.ServletException, MissingLockException
handleSaveRequest
in class StandAloneSchemEditAction
mapping
- the ActionMappingform
- the ActionFormrequest
- the Requestresponse
- the Responsevalidator
- the special validator for configsjavax.servlet.ServletException
- Description of the ExceptionMissingLockException
- if this config is currently being edited
by someone elseprotected 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 StandAloneSchemEditAction
mapping
- Description of the Parameterform
- Description of the Parameterrequest
- Description of the Parameterresponse
- 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
getFileToEdit
in class StandAloneSchemEditAction
mapping
- Description of the Parameterform
- Description of the Parameterrequest
- Description of the ParameterschemaHelper
- Description of the Parameterjava.lang.Exception
- Description of the Exceptionprotected void prtln(java.lang.String s)
prtln
in class StandAloneSchemEditAction
s
- The String to print.protected void prtlnErr(java.lang.String s)
prtlnErr
in class AbstractSchemEditAction
s
- NOT YET DOCUMENTED