public abstract class SuggestAction
extends org.apache.struts.action.Action
$Id $
Constructor and Description |
---|
SuggestAction() |
Modifier and Type | Method and Description |
---|---|
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,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.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,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.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,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.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,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.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,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
NOT YET DOCUMENTED
|
protected org.apache.struts.action.ActionForward |
handleStaleData(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.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,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.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,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.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,
javax.servlet.http.HttpServletRequest request)
The required fields for suggest-a-url are: url, nameFirst, nameLast,
emailPrimary, instName
|
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 abstract SuggestHelper getSuggestHelper() throws javax.servlet.ServletException
javax.servlet.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, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.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 Parameterjava.io.IOException
- Description of the Exceptionjavax.servlet.ServletException
- Description of the Exceptionprotected abstract org.apache.struts.action.ActionForward initializeSuggestor(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
mapping
- NOT YET DOCUMENTEDform
- NOT YET DOCUMENTEDrequest
- NOT YET DOCUMENTEDresponse
- NOT YET DOCUMENTEDjavax.servlet.ServletException
- NOT YET DOCUMENTEDprotected 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
mapping
- NOT YET DOCUMENTEDform
- NOT YET DOCUMENTEDrequest
- NOT YET DOCUMENTEDresponse
- NOT YET DOCUMENTEDjavax.servlet.ServletException
- NOT YET DOCUMENTEDprotected abstract org.apache.struts.action.ActionForward handleEditCommand(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
mapping
- NOT YET DOCUMENTEDform
- NOT YET DOCUMENTEDrequest
- NOT YET DOCUMENTEDresponse
- NOT YET DOCUMENTEDjava.lang.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, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
mapping
- NOT YET DOCUMENTEDform
- NOT YET DOCUMENTEDrequest
- NOT YET DOCUMENTEDresponse
- NOT YET DOCUMENTEDprotected abstract org.apache.struts.action.ActionForward handleDoneCommand(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
mapping
- NOT YET DOCUMENTEDform
- NOT YET DOCUMENTEDrequest
- NOT YET DOCUMENTEDresponse
- NOT YET DOCUMENTEDprotected abstract org.apache.struts.action.ActionForward handleSubmitCommand(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
mapping
- NOT YET DOCUMENTEDform
- NOT YET DOCUMENTEDrequest
- NOT YET DOCUMENTEDresponse
- NOT YET DOCUMENTEDprotected org.apache.struts.action.ActionForward handleStaleData(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request)
mapping
- Description of the Parameterrequest
- Description of the Parameterform
- NOT YET DOCUMENTEDprotected abstract org.apache.struts.action.ActionErrors validateSuggestForm(org.apache.struts.action.ActionForm form, org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
mapping
- Description of the Parameterrequest
- Description of the Parameterform
- NOT YET DOCUMENTEDprotected abstract SuggestionRecord createRecord(org.apache.struts.action.ActionForm form) throws java.lang.Exception
form
- NOT YET DOCUMENTEDjava.lang.Exception
- Description of the Exceptionpublic static void setDebug(boolean db)
db
- The new debug value