|
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
public abstract class AbstractSchemEditAction
Abstract controller for Metadata Editors.
Field Summary | |
---|---|
protected static boolean |
debug
Description of the Field |
protected String |
firstPage
where to go when the user clicks "edit" |
protected String |
homePage
Description of the Field |
protected String |
xmlFormat
NOT YET DOCUMENTED |
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 | |
---|---|
AbstractSchemEditAction()
|
Method Summary | |
---|---|
protected void |
attachNewElement(String pathArg,
SchemEditForm sef,
SchemaHelper schemaHelper)
Create a new element and attach it to the instance document |
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 org.apache.struts.action.ActionForward |
getEditorMapping(org.apache.struts.action.ActionMapping mapping)
Determines the appropriate editor mapping depending on whether the editor is configured to use a frame-based display. |
protected MetaDataFramework |
getMetaDataFramework()
Gets the metaDataFramework attribute of the record being edited. |
protected SchemEditValidator |
getValidator(org.apache.struts.action.ActionForm form,
org.apache.struts.action.ActionMapping mapping,
HttpServletRequest request)
Gets the validator attribute of the AbstractSchemEditAction object |
protected abstract String |
getXmlFormat()
Gets the xmlFormat attribute of the AbstractSchemEditAction object, which identifies the MetaDataFramework of the record being edited. |
protected abstract 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 |
handleDeleteElement(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
HttpServletRequest request,
SchemEditValidator validator)
A hook for extensions of AbstractSchemEditAction to handle misc unanticipated requests. |
protected abstract org.apache.struts.action.ActionForward |
handleEditRequest(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
Loads a record into the MetaDataEditor |
protected org.apache.struts.action.ActionForward |
handleExitCommand(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
HttpServletRequest request,
SchemEditValidator validator)
|
protected org.apache.struts.action.ActionForward |
handleGuardedExit(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
HttpServletRequest request,
SchemEditValidator validator)
Check to see if the document has been modified in editor. |
protected abstract org.apache.struts.action.ActionForward |
handleMissingCommand(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
Handle the case where the request contains a command that is not processed by this Class by calling the "handleMissingCommand" method of a subclass. |
protected org.apache.struts.action.ActionForward |
handleMissingLockException(MissingLockException mle,
org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
NOT YET DOCUMENTED |
protected abstract 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)
A hook for extensions of AbstractSchemEditAction to handle misc unanticipated requests. |
protected abstract 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 org.apache.struts.action.ActionForward |
handleTimedOutGuardedExit(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
HttpServletRequest request)
NOT YET DOCUMENTED |
protected org.apache.struts.action.ActionForward |
isDocDirty(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
HttpServletRequest request,
SchemEditValidator validator)
Check to see if the document has been modified in editor. |
protected void |
prtln(String s)
Print a line to standard out. |
protected void |
prtlnErr(String s)
|
protected abstract void |
putRecord(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
HttpServletRequest request)
Abstract call to save record. |
protected org.apache.struts.action.ActionErrors |
uniqueUrlCheck(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
HttpServletRequest request)
Check values of schemapaths designated as "uniqueUrl"s for duplicate or similiar values within given collection. |
protected org.apache.struts.action.ActionErrors |
uniqueValueCheck(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
HttpServletRequest request,
SchemEditValidator validator)
Checks each field in the instance document associated with a configured "uniqueValue" path for duplicate values in the same field in other records in the collection. |
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 String firstPage
protected String homePage
protected String xmlFormat
Constructor Detail |
---|
public AbstractSchemEditAction()
Method Detail |
---|
protected abstract String getXmlFormat()
protected MetaDataFramework getMetaDataFramework()
protected SchemEditValidator getValidator(org.apache.struts.action.ActionForm form, org.apache.struts.action.ActionMapping mapping, HttpServletRequest request)
form
- NOT YET DOCUMENTEDmapping
- NOT YET DOCUMENTEDrequest
- NOT YET DOCUMENTED
protected abstract void putRecord(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request) throws Exception
mapping
- Description of the Parameterform
- Description of the Parameterrequest
- Description of the Parameter
Exception
- Description of the Exceptionpublic 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
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 org.apache.struts.action.Action
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 org.apache.struts.action.ActionErrors uniqueValueCheck(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, SchemEditValidator validator)
mapping
- the actionMappingform
- the actionFormrequest
- the requestvalidator
- the validator for this form
protected org.apache.struts.action.ActionErrors uniqueUrlCheck(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request)
mapping
- the actionMappingform
- the actionFormrequest
- the request
protected org.apache.struts.action.ActionForward isDocDirty(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, SchemEditValidator validator) throws ServletException
mapping
- the actionMappingform
- the actionFormrequest
- the requestvalidator
- Description of the Parameter
ServletException
- NOT YET DOCUMENTEDprotected org.apache.struts.action.ActionForward handleGuardedExit(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, SchemEditValidator validator) throws ServletException
mapping
- the actionMappingform
- the actionFormrequest
- the requestvalidator
- Description of the Parameter
ServletException
- NOT YET DOCUMENTEDprotected org.apache.struts.action.ActionForward handleExitCommand(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, SchemEditValidator validator) throws ServletException
ServletException
protected org.apache.struts.action.ActionForward handleTimedOutGuardedExit(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request) throws ServletException
mapping
- the actionMappingform
- the actionFormrequest
- the request
ServletException
- NOT YET DOCUMENTEDprotected org.apache.struts.action.ActionForward getEditorMapping(org.apache.struts.action.ActionMapping mapping)
mapping
- Description of the Parameter
protected org.apache.struts.action.ActionForward handleMissingLockException(MissingLockException mle, org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response) throws ServletException
mle
- the missingLockException we are handlingmapping
- the actionMappingform
- the actionFormrequest
- the requestresponse
- NOT YET DOCUMENTED
ServletException
- NOT YET DOCUMENTEDprotected org.apache.struts.action.ActionForward handleDeleteElement(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, SchemEditValidator validator) throws ServletException
mapping
- the actionMappingform
- the actionFormrequest
- the requestvalidator
- NOT YET DOCUMENTED
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
mapping
- the actionMappingform
- the actionFormrequest
- the requestresponse
- Description of the Parameter
ServletException
- Description of the Exception
MissingLockException
- NOT YET DOCUMENTEDprotected abstract org.apache.struts.action.ActionForward handleMissingCommand(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response) throws ServletException
mapping
- the ActionMappingform
- the ActionFormrequest
- the Requestresponse
- the Response
ServletException
- If the subclass does not handle the commandprotected abstract org.apache.struts.action.ActionForward handleEditRequest(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response) throws ServletException
mapping
- the ActionMappingform
- the ActionFormrequest
- the Requestresponse
- the Response
ServletException
- Description of the Exceptionprotected abstract org.apache.struts.action.ActionForward handleCancelRequest(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response) throws ServletException
mapping
- the ActionMappingform
- the ActionFormrequest
- the Requestresponse
- the Response
ServletException
- NOT YET DOCUMENTEDprotected abstract org.apache.struts.action.ActionForward handleNewRecordRequest(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response) throws ServletException
mapping
- the ActionMappingform
- the ActionFormrequest
- the Requestresponse
- the Response
ServletException
- Description of the Exceptionprotected abstract 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
mapping
- the ActionMappingform
- the ActionFormrequest
- the Requestresponse
- the Responsevalidator
- Description of the Parameter
ServletException
- Description of the Exception
MissingLockException
- Description of the Exceptionprotected void attachNewElement(String pathArg, SchemEditForm sef, SchemaHelper schemaHelper) throws Exception
pathArg
- path of element to be attachedsef
- the form beanschemaHelper
- the schemaHelper
Exception
- if new element could not be created and attachedprotected void prtln(String s)
s
- The String to print.protected void prtlnErr(String s)
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |