Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

openfuture.bugbase.actions
Class GetBugReportAction  view GetBugReportAction download GetBugReportAction.java

java.lang.Object
  extended byorg.apache.struts.action.Action
      extended byopenfuture.bugbase.actions.BugBaseAction
          extended byopenfuture.bugbase.actions.GetBugReportAction
All Implemented Interfaces:
openfuture.bugbase.model.JspConstants

public class GetBugReportAction
extends BugBaseAction
implements openfuture.bugbase.model.JspConstants

Action bean for retrieval of a single bug report.

Created: Wed Feb 14 05:49:17 2001

Version:
$Revision: 1.3 $

Field Summary
 
Fields inherited from class openfuture.bugbase.actions.BugBaseAction
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Fields inherited from interface openfuture.bugbase.model.JspConstants
ATTACHMENT_DIR, ATTACHMENT_URL, BUG_REPORT, BUGBASE_SERVLET, LOCALES, LOGIN_MANAGER, MAILSERVER, MD_PROVIDER, NEXT_PAGE, PACKAGES, PROJECT, QUERY, QUERYSTRING, REPORTS, RESULT, SENDMAIL, SERVLET_CLIENT, SERVLETPATH, USER, USER_ID
 
Constructor Summary
GetBugReportAction()
           
 
Method Summary
private  openfuture.bugbase.domain.BugReport findReport(java.lang.Integer id)
          Find the report with the given number.
 org.apache.struts.action.ActionForward perform(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Show or edit a bug report, depending upon the attribute values: action: Recognized values: show for displaying and edit for editing a bug report.
 
Methods inherited from class openfuture.bugbase.actions.BugBaseAction
checkLogin, findNextPage, getClient, getContext, getErrors, getLoginManager, getMapping, getMasterDataProvider, getProject, getQueryString, getServletPath, getSession, getUser, initialize, saveOriginalRequest, setClient, setContext, setErrors, setLoginManager, setMapping, setProject, setSession, setUser
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, 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

GetBugReportAction

public GetBugReportAction()
Method Detail

perform

public org.apache.struts.action.ActionForward perform(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
Show or edit a bug report, depending upon the attribute values:
  • action: Recognized values: show for displaying and edit for editing a bug report. In the last case, the user has to be a 'doctor' user. If the user does not belong to that group, the show action is executed.
  • id:ID of the glossary entry that should be shown or edited.
Retrieve a single bug report. The bug report is stored in the request as bug report 55 .

The following forwards are generated:

  • success: The retrieval was successful.
  • error: the action failed or an error occured. In this case, the errors are saved.


findReport

private openfuture.bugbase.domain.BugReport findReport(java.lang.Integer id)
                                                throws openfuture.bugbase.error.BugBaseException
Find the report with the given number. The report is searched in the reports stored in the session attribute REPORTS 55 . If the report cannot be found, it will be retrieved directly.