|
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.DCSSchemEditAction
public class DCSSchemEditAction
Controller for the Metdata Editor that handles Indexed records rather than reading and writing records directly to disk.
| Field Summary | |
|---|---|
protected static boolean |
debug
Description of the Field |
| 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 | |
|---|---|
DCSSchemEditAction()
|
|
| Method Summary | |
|---|---|
ActionForward |
execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
Description of the Method |
protected String |
getXmlFormat()
Gets the xmlFormat attribute of the DCSSchemEditAction object |
protected ActionForward |
handleCancelRequest(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
NOT YET DOCUMENTED |
protected ActionForward |
handleDeleteElement(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
SchemEditValidator validator)
Wrap handleDeleteElement so we can update suggestion service helper in the case that the standards field has been deleted. |
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 are an error for the DCSSchemEditAction class |
protected ActionForward |
handleNewRecordRequest(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
Placeholder method to overide that of AbstractSchemEditAction. |
protected ActionForward |
handleOtherCommands(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
Handles requests containing a "command" parameter that was not handled in the superclass. |
protected ActionForward |
handleSaveRequest(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response,
SchemEditValidator validator)
Description of the Method |
protected CATServiceHelper |
initSuggestionServiceHelper(SchemEditForm sef)
Initializes the suggestionServiceHelper for this framework, or returns |
protected void |
prtln(String s)
Print a line to standard out. |
protected void |
prtlnErr(String s)
Description of the Method |
protected void |
putRecord(ActionMapping mapping,
ActionForm form,
HttpServletRequest request)
Saves a metadata record either to disk in the case of a stand-alone metadata editor, or to the repository manager in the case of the integrated metadata editor. |
| Methods inherited from class org.dlese.dpc.schemedit.action.AbstractSchemEditAction |
|---|
attachNewElement, getEditorMapping, getMetaDataFramework, getValidator, 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 |
| Field Detail |
|---|
protected static boolean debug
| Constructor Detail |
|---|
public DCSSchemEditAction()
| Method Detail |
|---|
protected String getXmlFormat()
getXmlFormat in class AbstractSchemEditAction
public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws IOException,
ServletException
execute in class AbstractSchemEditActionmapping - the ActionMappingform - the ActionFormrequest - the Requestresponse - the Response
IOException - Description of the Exception
ServletException - Description of the Exception
protected ActionForward handleOtherCommands(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
MissingLockException
handleOtherCommands in class AbstractSchemEditActionmapping - the ActionMappingform - the ActionFormrequest - the Requestresponse - the Response
ServletException - Description of the Exception
MissingLockException - if a lock to the record being edited is not
held.
protected ActionForward handleMissingCommand(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws ServletException
handleMissingCommand in class AbstractSchemEditActionmapping - the ActionMappingform - the ActionFormrequest - the Requestresponse - the Response
ServletException - Description of the Exception
protected ActionForward handleSaveRequest(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response,
SchemEditValidator validator)
throws ServletException,
MissingLockException
handleSaveRequest in class AbstractSchemEditActionmapping - the ActionMappingform - the ActionFormrequest - the Requestresponse - the Responsevalidator - Description of the Parameter
ServletException - Description of the Exception
MissingLockException - Description of the Exception
protected ActionForward handleDeleteElement(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
SchemEditValidator validator)
throws ServletException
handleDeleteElement in class AbstractSchemEditActionmapping - the actionMappingform - the actionFormrequest - the requestvalidator - NOT YET DOCUMENTED
ServletException - Description of the Exception
protected ActionForward handleCancelRequest(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws ServletException
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 - the ActionMappingform - the ActionFormrequest - the Requestresponse - the Response
ServletException - Description of the Exception
protected ActionForward handleNewRecordRequest(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws ServletException
handleNewRecordRequest in class AbstractSchemEditActionmapping - the ActionMappingform - the ActionFormrequest - the Requestresponse - the Response
ServletException - Description of the Exception
protected void putRecord(ActionMapping mapping,
ActionForm form,
HttpServletRequest request)
throws Exception,
RecordUpdateException
putRecord in class AbstractSchemEditActionmapping - Description of the Parameterform - Description of the Parameterrequest - Description of the Parameter
Exception - if save operation is unsuccessful
RecordUpdateException - Description of the Exception
protected CATServiceHelper initSuggestionServiceHelper(SchemEditForm sef)
throws Exception
sef - The ActionForm
Exception - if a SuggestServiceHelper cannot be initializedprotected void prtln(String s)
prtln in class AbstractSchemEditActions - The String to print.protected void prtlnErr(String s)
prtlnErr in class AbstractSchemEditActions - Description of the Parameter
|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||