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

Quick Search    Search Deep

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

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

public class ViewReportsAction
extends BugBaseAction

Action bean for viewing bug reports.

Created: Thu Jan 11 08:14:45 2001

Version:
$Revision: 1.4 $

Field Summary
private static java.lang.String SORT_AUTHOR
           
private static java.lang.String SORT_DATE
           
private static java.lang.String SORT_DOCTOR
           
private static java.lang.String SORT_ERRORLEVEL
           
private static java.lang.String SORT_ID
           
private static java.lang.String SORT_PACKAGE
           
private static java.lang.String SORT_STATUS
           
private static java.lang.String SORT_TITLE
           
 
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
ViewReportsAction()
           
 
Method Summary
private  java.lang.Boolean getYesNoDefault(java.lang.String s)
           
 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)
          View bug reports.
 
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
 

Field Detail

SORT_ID

private static final java.lang.String SORT_ID
See Also:
Constant Field Values

SORT_PACKAGE

private static final java.lang.String SORT_PACKAGE
See Also:
Constant Field Values

SORT_DATE

private static final java.lang.String SORT_DATE
See Also:
Constant Field Values

SORT_TITLE

private static final java.lang.String SORT_TITLE
See Also:
Constant Field Values

SORT_ERRORLEVEL

private static final java.lang.String SORT_ERRORLEVEL
See Also:
Constant Field Values

SORT_STATUS

private static final java.lang.String SORT_STATUS
See Also:
Constant Field Values

SORT_AUTHOR

private static final java.lang.String SORT_AUTHOR
See Also:
Constant Field Values

SORT_DOCTOR

private static final java.lang.String SORT_DOCTOR
See Also:
Constant Field Values
Constructor Detail

ViewReportsAction

public ViewReportsAction()
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
View bug reports. The reports are sorted due to the attribute values:
  • sort: The sorting criteria. Recognized values:
  • direction: direction in which the list should be sorted. Recognized values: up and down.
The following attributes are set in the servlet's context:

The following forwards are generated:

  • success: the login was successful.
  • error: the login failed or an error occured.


getYesNoDefault

private java.lang.Boolean getYesNoDefault(java.lang.String s)