|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--openfuture.bugbase.servlet.BugBaseServletClient
This class is the proxy to BugBaseServlet. It communicates with
serialized objects via HTTP with the servlet.
| Constructor Summary | |
BugBaseServletClient(java.lang.String newUrl)
Creates a new BugBaseServletClient instance. |
|
| Method Summary | |
void |
addAttachment(java.lang.Integer reportID,
java.lang.String attachmentPath)
Add an attachment to a given bug report |
java.lang.Integer |
addBugReport(java.lang.String project,
BugReport report)
Add a new bug report. |
java.lang.Integer |
addBugReport(java.lang.String project,
BugReport report,
java.lang.Integer sessionID)
Add a new bug report. |
User |
adminLogin(Login login)
Tries to establish a new connection to the database as administrator. |
void |
changePassword(Login login,
java.lang.String newPassword)
Change the current users password. |
User |
doctorLogin(Login login)
Tries to establish a new connection to the database as doctor. |
java.util.LinkedList |
executeQuery(java.lang.String command)
Execute a database query. |
java.util.LinkedList |
getAvailableUpdates()
Retrieve the list of available updates. |
BugReport |
getBugReport(java.lang.Integer id)
Retrieve a single bug report. |
java.util.LinkedList |
getBugReportList(java.lang.String project,
java.lang.Boolean filterReported,
java.lang.Boolean filterStarted,
java.lang.Boolean filterFixed,
java.lang.Boolean filterRejected,
java.lang.String searchString,
java.lang.String reporterId,
java.lang.String doctorId)
Retrieve the list of bug reports matching the given criteria. |
java.util.LinkedList |
getDoctors()
Retrieve the list of users belonging to the 'doctors' group |
java.util.LinkedList |
getGroups()
Retrieve the list of all group IDs |
QueryResultMasterData |
getMasterData(java.lang.String project)
Retrieve the list of doctors and project packages |
java.util.LinkedList |
getPackages(java.lang.String project)
Retrieve the list of packages for a given project. |
java.util.LinkedList |
getPackages(java.lang.String project,
java.lang.Integer sessionID)
Retrieves the list of packages for a certain project. |
java.util.LinkedList |
getProjects()
Retrieve the list of projects registered at Bug Base. |
java.lang.Integer |
getSessionID()
Get the value of sessionID. |
java.util.Hashtable |
getStatus()
Retrieve the status information from the BugBaseServlet. |
java.util.LinkedList |
getUserData()
Retrieve the list of user data. |
java.util.LinkedList |
getUserList()
Retrieve the list of user data except for their passwords. |
QueryResultVersions |
getVersions()
Retrieve the versions of the BugBaseServlet,
persistency and the
available versions from the
version manager. |
User |
login(Login login)
Tries to establish a new connection to the database. |
void |
registerUser(User user)
Save user data. |
void |
saveUserData(java.util.LinkedList users,
java.util.LinkedList deleted)
Save user data. |
void |
setPackages(java.lang.String project,
java.util.LinkedList packages)
Set the list of packages for a given project |
void |
setProjects(java.util.LinkedList projects)
Set the list of projects registered in Bug Base |
void |
setSessionID(java.lang.Integer v)
Set the value of sessionID, if either the current session ID is null or the given value is not null. |
java.lang.String |
test(java.lang.String question)
Test the connection using a question to the BugBaseServlet. |
void |
updateBugReport(User user,
BugReport report)
Update the given bug report. |
void |
updateBugReports(User user,
java.util.LinkedList reports,
java.lang.Boolean sendEmail)
Update the given bug report. if sendEmail is true, the bug reporter will be notified via email about the changes. |
TransactionResult |
updatePersistency(Version version)
Update the persistency to a given version. |
boolean |
validDoctorUser(User user)
Check, if the user belongs to the group 'doctors'. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BugBaseServletClient(java.lang.String newUrl)
throws java.net.MalformedURLException
BugBaseServletClient instance.newUrl - URL of
BugBaseServletjava.net.MalformedURLException - if an error occurs| Method Detail |
public java.util.LinkedList getBugReportList(java.lang.String project,
java.lang.Boolean filterReported,
java.lang.Boolean filterStarted,
java.lang.Boolean filterFixed,
java.lang.Boolean filterRejected,
java.lang.String searchString,
java.lang.String reporterId,
java.lang.String doctorId)
throws I18NException
project - project namefilterReported - state at least reported?filterStarted - state at least started?filterFixed - state at least fixed?filterRejected - state at least rejected?searchString - string that should occur either in the
title or in the descriptionreporterId - user ID of the bug reporterdoctorId - user ID of the bug doctorbug reports.I18NException - if an error occurs
public BugReport getBugReport(java.lang.Integer id)
throws I18NException
id - ID of the bug report.I18NException - if an error occurs
public java.lang.Integer addBugReport(java.lang.String project,
BugReport report)
throws I18NException
project - project namereport - the bug reportI18NException - if an error occurs
public java.lang.Integer addBugReport(java.lang.String project,
BugReport report,
java.lang.Integer sessionID)
throws I18NException
project - project name.report - new bug report.sessionID - session ID.I18NException - if an error occurs
public java.util.LinkedList getProjects()
throws I18NException
I18NException - if an error occurs
public void setProjects(java.util.LinkedList projects)
throws I18NException
projects - list of projectsI18NException - if an error occurs
public java.util.LinkedList getPackages(java.lang.String project)
throws I18NException
project - project nameI18NException - if an error occurs
public java.util.LinkedList getPackages(java.lang.String project,
java.lang.Integer sessionID)
throws I18NException
project - project namesessionID - session IDI18NException - if an error occurs
public void setPackages(java.lang.String project,
java.util.LinkedList packages)
throws I18NException
project - project namepackages - list of package namesI18NException - if an error occurs
public java.util.LinkedList getDoctors()
throws I18NException
I18NException - if an error occurs
public void updateBugReports(User user,
java.util.LinkedList reports,
java.lang.Boolean sendEmail)
throws I18NException
user - user modifying the bug reportsreports - list of bug reports to be updatedsendEmail - should an email be sent?I18NException - if an error occurs
public void updateBugReport(User user,
BugReport report)
throws I18NException
user - user modifying the bug reportsreport - bug report to be updatedI18NException - if an error occurs
public java.util.LinkedList executeQuery(java.lang.String command)
throws I18NException
command - SQL commandI18NException - if an error occurs
public QueryResultVersions getVersions()
throws I18NException
BugBaseServlet,
persistency and the
available versions from the
version manager.I18NException - if an error occurs
public java.util.LinkedList getAvailableUpdates()
throws I18NException
I18NException - if an error occurs
public TransactionResult updatePersistency(Version version)
throws I18NException
version - new persistency versionI18NException - if an error occurs
public java.util.LinkedList getUserData()
throws I18NException
I18NException - if an error occurs
public java.util.LinkedList getUserList()
throws I18NException
I18NException - if an error occurs
public java.util.LinkedList getGroups()
throws I18NException
I18NException - if an error occurs
public void saveUserData(java.util.LinkedList users,
java.util.LinkedList deleted)
throws I18NException
users - list of users to be updateddeleted - list of users to be deletedI18NException - if an error occursUser
public void registerUser(User user)
throws I18NException
users - list of users to be updateddeleted - list of users to be deletedI18NException - if an error occursUser
public java.lang.String test(java.lang.String question)
throws I18NException
BugBaseServlet.question - the question to be posedI18NException - if an error occurs
public QueryResultMasterData getMasterData(java.lang.String project)
throws I18NException
project - project nameI18NException - if an error occurs
public User login(Login login)
throws I18NException
login - user dataI18NException - if an error occurs
public User adminLogin(Login login)
throws I18NException
login - user dataI18NException - if an error occurs
public User doctorLogin(Login login)
throws I18NException
login - user dataI18NException - if an error occurspublic boolean validDoctorUser(User user)
user - user data
public void changePassword(Login login,
java.lang.String newPassword)
throws I18NException
login - current login informationnewPassword - new passwordI18NException - if an error occurs
public void addAttachment(java.lang.Integer reportID,
java.lang.String attachmentPath)
throws I18NException
reportID - the ID of the bug reportattachmentPath - relative path where the attachment file
is located.I18NException - if an error occurs
public java.util.Hashtable getStatus()
throws I18NException
BugBaseServlet.Hashtable holding the information
as key/value pair.I18NException - if an error occurspublic java.lang.Integer getSessionID()
public void setSessionID(java.lang.Integer v)
v - Value to assign to sessionID.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||