|
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 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 | |
---|---|
org.apache.struts.action.ActionForward |
execute(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
Description of the Method |
protected String |
getXmlFormat()
Gets the xmlFormat attribute of the DCSSchemEditAction object |
protected org.apache.struts.action.ActionForward |
handleCancelRequest(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
NOT YET DOCUMENTED |
protected org.apache.struts.action.ActionForward |
handleDeleteElement(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.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 org.apache.struts.action.ActionForward |
handleEditRequest(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 |
handleMissingCommand(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
Requests without a command are an error for the DCSSchemEditAction class |
protected org.apache.struts.action.ActionForward |
handleNewRecordRequest(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
Placeholder method to overide that of AbstractSchemEditAction. |
protected org.apache.struts.action.ActionForward |
handleOtherCommands(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
Handles requests containing a "command" parameter that was not handled in the superclass. |
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)
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(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.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 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
execute
in class AbstractSchemEditAction
mapping
- the ActionMappingform
- the ActionFormrequest
- the Requestresponse
- the Response
IOException
- Description of the Exception
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
handleOtherCommands
in class AbstractSchemEditAction
mapping
- 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 org.apache.struts.action.ActionForward handleMissingCommand(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response) throws ServletException
handleMissingCommand
in class AbstractSchemEditAction
mapping
- the ActionMappingform
- the ActionFormrequest
- the Requestresponse
- the Response
ServletException
- Description of the Exceptionprotected 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 AbstractSchemEditAction
mapping
- the ActionMappingform
- the ActionFormrequest
- the Requestresponse
- the Responsevalidator
- Description of the Parameter
ServletException
- Description of the Exception
MissingLockException
- Description of the Exceptionprotected org.apache.struts.action.ActionForward handleDeleteElement(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, SchemEditValidator validator) throws ServletException
handleDeleteElement
in class AbstractSchemEditAction
mapping
- the actionMappingform
- the actionFormrequest
- the requestvalidator
- NOT YET DOCUMENTED
ServletException
- Description of the Exceptionprotected org.apache.struts.action.ActionForward handleCancelRequest(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response) throws ServletException
handleCancelRequest
in class AbstractSchemEditAction
mapping
- the ActionMappingform
- the ActionFormrequest
- the Requestresponse
- the Response
ServletException
- NOT YET DOCUMENTEDprotected org.apache.struts.action.ActionForward handleEditRequest(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response) throws ServletException
handleEditRequest
in class AbstractSchemEditAction
mapping
- the ActionMappingform
- the ActionFormrequest
- the Requestresponse
- the Response
ServletException
- Description of the Exceptionprotected org.apache.struts.action.ActionForward handleNewRecordRequest(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response) throws ServletException
handleNewRecordRequest
in class AbstractSchemEditAction
mapping
- the ActionMappingform
- the ActionFormrequest
- the Requestresponse
- the Response
ServletException
- Description of the Exceptionprotected void putRecord(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request) throws Exception, RecordUpdateException
putRecord
in class AbstractSchemEditAction
mapping
- Description of the Parameterform
- Description of the Parameterrequest
- Description of the Parameter
Exception
- if save operation is unsuccessful
RecordUpdateException
- Description of the Exceptionprotected CATServiceHelper initSuggestionServiceHelper(SchemEditForm sef) throws Exception
sef
- The ActionForm
Exception
- if a SuggestServiceHelper cannot be initializedprotected void prtln(String s)
prtln
in class AbstractSchemEditAction
s
- The String to print.protected void prtlnErr(String s)
prtlnErr
in class AbstractSchemEditAction
s
- 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 |