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

Quick Search    Search Deep

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

java.lang.Object
  extended byorg.apache.struts.action.Action
      extended byopenfuture.bugbase.actions.BugBaseAction
All Implemented Interfaces:
openfuture.bugbase.model.JspConstants
Direct Known Subclasses:
GetBugReportAction, LoginAction, LogoffAction, NewBugReportAction, RegistrationAction, SelectLanguageAction, SendMailAction, UpdateBugReportAction, UpdateRegistrationAction, ViewReportsAction

public abstract class BugBaseAction
extends org.apache.struts.action.Action
implements openfuture.bugbase.model.JspConstants

Base action bean.

Created: Mon Jan 22 06:11:28 2001

Version:
$Revision: 1.4 $

Field Summary
private  openfuture.bugbase.servlet.BugBaseServletClient client
           
private  javax.servlet.ServletContext context
           
private  org.apache.struts.action.ActionErrors errors
           
private  openfuture.bugbase.domain.LoginManager loginManager
           
private  org.apache.struts.action.ActionMapping mapping
           
private  javax.servlet.http.HttpSession session
           
 
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
BugBaseAction()
           
 
Method Summary
protected  boolean checkLogin()
          Check, if a user object 55 is present in the session context.
 org.apache.struts.action.ActionForward findNextPage()
          Try to forward to the last page visited.
 openfuture.bugbase.servlet.BugBaseServletClient getClient()
          Get the value of client.
 javax.servlet.ServletContext getContext()
          Get the value of context.
 org.apache.struts.action.ActionErrors getErrors()
          Get the value of errors (lazily instantiated).
 openfuture.bugbase.domain.LoginManager getLoginManager()
          Get the value of loginManager.
 org.apache.struts.action.ActionMapping getMapping()
          Get the value of mapping.
 openfuture.bugbase.domain.MasterDataProvider getMasterDataProvider()
          Return the value of the masterdata provider.
 java.lang.String getProject()
          Convenience method for retrieving the stored project object from the session context.
 java.lang.String getQueryString()
          Convenience method for retrieving the stored query string from the session context.
 java.lang.String getServletPath()
          Convenience method for retrieving the stored servlet path of the request from the session context.
 javax.servlet.http.HttpSession getSession()
          Get the value of session.
 openfuture.bugbase.domain.User getUser()
          Convenience method for retrieving the stored user object from the session context.
protected  boolean initialize(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Initialize the settings.
static void saveOriginalRequest(javax.servlet.http.HttpServletRequest request)
          Save the request URI 55 and the query string 55 .
 void setClient(openfuture.bugbase.servlet.BugBaseServletClient v)
          Set the value of client.
 void setContext(javax.servlet.ServletContext v)
          Set the value of context.
 void setErrors(org.apache.struts.action.ActionErrors v)
          Set the value of errors.
 void setLoginManager(openfuture.bugbase.domain.LoginManager v)
          Set the value of loginManager.
 void setMapping(org.apache.struts.action.ActionMapping v)
          Set the value of mapping.
 void setProject(java.lang.String project)
          Convenience method for storing the project object into the session context.
 void setSession(javax.servlet.http.HttpSession v)
          Set the value of session.
 void setUser(openfuture.bugbase.domain.User user)
          Convenience method for storing the user object into the session context.
 
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

mapping

private org.apache.struts.action.ActionMapping mapping

errors

private org.apache.struts.action.ActionErrors errors

session

private javax.servlet.http.HttpSession session

context

private javax.servlet.ServletContext context

client

private openfuture.bugbase.servlet.BugBaseServletClient client

loginManager

private openfuture.bugbase.domain.LoginManager loginManager
Constructor Detail

BugBaseAction

public BugBaseAction()
Method Detail

initialize

protected boolean initialize(org.apache.struts.action.ActionMapping mapping,
                             org.apache.struts.action.ActionForm form,
                             javax.servlet.http.HttpServletRequest request,
                             javax.servlet.http.HttpServletResponse response)
Initialize the settings.


getClient

public openfuture.bugbase.servlet.BugBaseServletClient getClient()
Get the value of client.


setClient

public void setClient(openfuture.bugbase.servlet.BugBaseServletClient v)
Set the value of client.


getLoginManager

public openfuture.bugbase.domain.LoginManager getLoginManager()
Get the value of loginManager.


setLoginManager

public void setLoginManager(openfuture.bugbase.domain.LoginManager v)
Set the value of loginManager.


getErrors

public org.apache.struts.action.ActionErrors getErrors()
Get the value of errors (lazily instantiated).


setErrors

public void setErrors(org.apache.struts.action.ActionErrors v)
Set the value of errors.


getContext

public javax.servlet.ServletContext getContext()
Get the value of context.


setContext

public void setContext(javax.servlet.ServletContext v)
Set the value of context.


getSession

public javax.servlet.http.HttpSession getSession()
Get the value of session.


setSession

public void setSession(javax.servlet.http.HttpSession v)
Set the value of session.


getServletPath

public java.lang.String getServletPath()
Convenience method for retrieving the stored servlet path of the request from the session context.


getQueryString

public java.lang.String getQueryString()
Convenience method for retrieving the stored query string from the session context.


getUser

public openfuture.bugbase.domain.User getUser()
Convenience method for retrieving the stored user object from the session context.


setUser

public void setUser(openfuture.bugbase.domain.User user)
Convenience method for storing the user object into the session context.


getProject

public java.lang.String getProject()
Convenience method for retrieving the stored project object from the session context.


setProject

public void setProject(java.lang.String project)
Convenience method for storing the project object into the session context.


findNextPage

public org.apache.struts.action.ActionForward findNextPage()
Try to forward to the last page visited. If none can be determined from getServletPath() 55 , the forward defined as default is returned.


getMapping

public org.apache.struts.action.ActionMapping getMapping()
Get the value of mapping.


setMapping

public void setMapping(org.apache.struts.action.ActionMapping v)
Set the value of mapping.


checkLogin

protected boolean checkLogin()
Check, if a user object 55 is present in the session context.


getMasterDataProvider

public openfuture.bugbase.domain.MasterDataProvider getMasterDataProvider()
Return the value of the masterdata provider.


saveOriginalRequest

public static void saveOriginalRequest(javax.servlet.http.HttpServletRequest request)
Save the request URI 55 and the query string 55 . If the query string is empty and the servlet path is equal to the already stored one, the old query string is saved (this is for the case of redirections, where the query string is removed.)