|
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.suggest.action.SuggestAction
public abstract class SuggestAction
Abstract controller for a Suggestor Client. Implements the following flow of control:
$Id $
Field Summary |
---|
Fields inherited from class org.apache.struts.action.Action |
---|
defaultLocale, servlet |
Constructor Summary | |
---|---|
SuggestAction()
|
Method Summary | |
---|---|
protected abstract SuggestionRecord |
createRecord(org.apache.struts.action.ActionForm form)
Update the SuggestionRecord (managed by SuggestResourceHelper) with values from the form bean |
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 SchemaHelper |
getSchemaHelper()
Gets the schemaHelper attribute of the SuggestAction object |
protected abstract SuggestHelper |
getSuggestHelper()
Gets the suggestHelper attribute of the SuggestAction object |
protected abstract org.apache.struts.action.ActionForward |
handleCancelCommand(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 |
handleDoneCommand(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
Validate information supplied by user, return to edit form if there are errors, or display confirmation page if there are no errors. |
protected abstract org.apache.struts.action.ActionForward |
handleEditCommand(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
Populate SuggestionForm, and forward user to edit-form. |
protected org.apache.struts.action.ActionForward |
handleOtherCommands(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 |
handleStaleData(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
HttpServletRequest request)
Return user to suggestor front page and show message explaining that they were apparently trying to edit or submit data from a cancelled form |
protected abstract org.apache.struts.action.ActionForward |
handleSubmitCommand(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
Attempt to write the suggestion to a DCS instance, forward user to confirmation page. |
protected abstract org.apache.struts.action.ActionForward |
initializeSuggestor(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
NOT YET DOCUMENTED |
static void |
setDebug(boolean db)
Sets the debug attribute of the SuggestAction class |
protected abstract org.apache.struts.action.ActionErrors |
validateSuggestForm(org.apache.struts.action.ActionForm form,
org.apache.struts.action.ActionMapping mapping,
HttpServletRequest request)
The required fields for suggest-a-url are: url, nameFirst, nameLast, emailPrimary, instName |
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 SuggestAction()
Method Detail |
---|
protected abstract SuggestHelper getSuggestHelper() throws ServletException
ServletException
- NOT YET DOCUMENTEDprotected SchemaHelper getSchemaHelper()
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
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 abstract org.apache.struts.action.ActionForward initializeSuggestor(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response) throws ServletException
mapping
- NOT YET DOCUMENTEDform
- NOT YET DOCUMENTEDrequest
- NOT YET DOCUMENTEDresponse
- NOT YET DOCUMENTED
ServletException
- NOT YET DOCUMENTEDprotected org.apache.struts.action.ActionForward handleOtherCommands(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response) throws ServletException
mapping
- NOT YET DOCUMENTEDform
- NOT YET DOCUMENTEDrequest
- NOT YET DOCUMENTEDresponse
- NOT YET DOCUMENTED
ServletException
- NOT YET DOCUMENTEDprotected abstract org.apache.struts.action.ActionForward handleEditCommand(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception
mapping
- NOT YET DOCUMENTEDform
- NOT YET DOCUMENTEDrequest
- NOT YET DOCUMENTEDresponse
- NOT YET DOCUMENTED
Exception
- if SuggestionForm cannot be populated with required
info.protected abstract org.apache.struts.action.ActionForward handleCancelCommand(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response)
mapping
- NOT YET DOCUMENTEDform
- NOT YET DOCUMENTEDrequest
- NOT YET DOCUMENTEDresponse
- NOT YET DOCUMENTED
protected abstract org.apache.struts.action.ActionForward handleDoneCommand(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response)
mapping
- NOT YET DOCUMENTEDform
- NOT YET DOCUMENTEDrequest
- NOT YET DOCUMENTEDresponse
- NOT YET DOCUMENTED
protected abstract org.apache.struts.action.ActionForward handleSubmitCommand(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response)
mapping
- NOT YET DOCUMENTEDform
- NOT YET DOCUMENTEDrequest
- NOT YET DOCUMENTEDresponse
- NOT YET DOCUMENTED
protected org.apache.struts.action.ActionForward handleStaleData(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request)
mapping
- Description of the Parameterrequest
- Description of the Parameterform
- NOT YET DOCUMENTED
protected abstract org.apache.struts.action.ActionErrors validateSuggestForm(org.apache.struts.action.ActionForm form, org.apache.struts.action.ActionMapping mapping, HttpServletRequest request)
mapping
- Description of the Parameterrequest
- Description of the Parameterform
- NOT YET DOCUMENTED
protected abstract SuggestionRecord createRecord(org.apache.struts.action.ActionForm form) throws Exception
form
- NOT YET DOCUMENTED
Exception
- Description of the Exceptionpublic static void setDebug(boolean db)
db
- The new debug value
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |