Package org.dlese.dpc.suggest.action
Class SuggestCommentAction
java.lang.Object
org.apache.struts.action.Action
org.dlese.dpc.suggest.action.SuggestAction
org.dlese.dpc.suggest.action.SuggestCommentAction
* Action controller for the Suggest a Comment servlet.
- Version:
- $Id: SuggestCommentAction.java,v 1.9 2009/03/20 23:34:00 jweather Exp $
- Author:
- ostwald
$Id $
-
Field Summary
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CommentRecordcreateRecord(org.apache.struts.action.ActionForm form) Update the SuggestionRecord (managed by SuggestCommentHelper) with values from the form bean.protected SuggestCommentHelperGets the SuggestCommentHelper attribute of the SuggestCommentAction objectprotected org.apache.struts.action.ActionForwardhandleCancelCommand(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response) NOT YET DOCUMENTEDprotected org.apache.struts.action.ActionForwardhandleDoneCommand(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response) NOT YET DOCUMENTEDprotected org.apache.struts.action.ActionForwardhandleEditCommand(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response) NOT YET DOCUMENTEDprotected org.apache.struts.action.ActionForwardhandleOtherCommands(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response) NOT YET DOCUMENTEDprotected org.apache.struts.action.ActionForwardhandleSubmitCommand(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response) NOT YET DOCUMENTEDprotected org.apache.struts.action.ActionForwardinitializeSuggestor(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response) NOT YET DOCUMENTEDstatic voidsetDebug(boolean db) Sets the debug attribute of the SuggestCommentAction classprotected org.apache.struts.action.ActionErrorsvalidateSuggestForm(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, instNameMethods inherited from class org.dlese.dpc.suggest.action.SuggestAction
execute, getSchemaHelper, handleStaleDataMethods 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
-
Constructor Details
-
SuggestCommentAction
public SuggestCommentAction()
-
-
Method Details
-
getSuggestHelper
Gets the SuggestCommentHelper attribute of the SuggestCommentAction object- Specified by:
getSuggestHelperin classSuggestAction- Returns:
- The SuggestCommentHelper value
- Throws:
ServletException- NOT YET DOCUMENTED
-
initializeSuggestor
protected org.apache.struts.action.ActionForward initializeSuggestor(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response) throws ServletException Description copied from class:SuggestActionNOT YET DOCUMENTED- Specified by:
initializeSuggestorin classSuggestAction- Parameters:
mapping- NOT YET DOCUMENTEDform- NOT YET DOCUMENTEDrequest- NOT YET DOCUMENTEDresponse- NOT YET DOCUMENTED- Returns:
- NOT YET DOCUMENTED
- Throws:
ServletException- NOT YET DOCUMENTED
-
handleOtherCommands
protected org.apache.struts.action.ActionForward handleOtherCommands(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response) throws ServletException NOT YET DOCUMENTED- Overrides:
handleOtherCommandsin classSuggestAction- Parameters:
mapping- NOT YET DOCUMENTEDform- NOT YET DOCUMENTEDrequest- NOT YET DOCUMENTEDresponse- NOT YET DOCUMENTED- Returns:
- NOT YET DOCUMENTED
- Throws:
ServletException- NOT YET DOCUMENTED
-
handleEditCommand
protected org.apache.struts.action.ActionForward handleEditCommand(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception NOT YET DOCUMENTED- Specified by:
handleEditCommandin classSuggestAction- Parameters:
mapping- NOT YET DOCUMENTEDform- NOT YET DOCUMENTEDrequest- NOT YET DOCUMENTEDresponse- NOT YET DOCUMENTED- Returns:
- NOT YET DOCUMENTED
- Throws:
Exception- if SuggestionForm cannot be populated with required info.
-
handleCancelCommand
protected 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- Specified by:
handleCancelCommandin classSuggestAction- Parameters:
mapping- NOT YET DOCUMENTEDform- NOT YET DOCUMENTEDrequest- NOT YET DOCUMENTEDresponse- NOT YET DOCUMENTED- Returns:
- NOT YET DOCUMENTED
-
handleDoneCommand
protected org.apache.struts.action.ActionForward handleDoneCommand(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response) NOT YET DOCUMENTED- Specified by:
handleDoneCommandin classSuggestAction- Parameters:
mapping- NOT YET DOCUMENTEDform- NOT YET DOCUMENTEDrequest- NOT YET DOCUMENTEDresponse- NOT YET DOCUMENTED- Returns:
- NOT YET DOCUMENTED
-
handleSubmitCommand
protected org.apache.struts.action.ActionForward handleSubmitCommand(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response) NOT YET DOCUMENTED- Specified by:
handleSubmitCommandin classSuggestAction- Parameters:
mapping- NOT YET DOCUMENTEDform- NOT YET DOCUMENTEDrequest- NOT YET DOCUMENTEDresponse- NOT YET DOCUMENTED- Returns:
- NOT YET DOCUMENTED
-
validateSuggestForm
protected 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- Specified by:
validateSuggestFormin classSuggestAction- Parameters:
form- NOT YET DOCUMENTEDmapping- Description of the Parameterrequest- Description of the Parameter- Returns:
- Description of the Return Value
-
createRecord
Update the SuggestionRecord (managed by SuggestCommentHelper) with values from the form bean.- Specified by:
createRecordin classSuggestAction- Parameters:
form- NOT YET DOCUMENTED- Throws:
Exception- Description of the Exception
-
setDebug
public static void setDebug(boolean db) Sets the debug attribute of the SuggestCommentAction class- Parameters:
db- The new debug value
-