public class MySQLBugzillaSession extends AbstractAuthorizedSession
| Constructor and Description |
|---|
MySQLBugzillaSession()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the previously established Bugzilla session.
|
void |
configure(org.apache.commons.configuration.Configuration config)
Configures the session.
|
InputStream |
getAttachment(Attachment attachment)
Returns an input stream that will contain the attachment's content.
|
String |
getBugzillaVersion()
Returns the bugzilla version this session object is connected to.
|
Issue |
getIssue(String id)
Returns the given issue
|
String |
getMaximumBugzillaVersion()
Returns the maximum Bugzilla version this session class supports.
|
String |
getMinimumBugzillaVersion()
Returns the minimum Bugzilla version this session class supports.
|
boolean |
isLoggedIn()
Returns true when session is connected to Bugzilla.
|
boolean |
open()
Opens the session with configured Bugzilla instance.
|
Iterator<Issue> |
searchBugs(SearchData searchData,
SearchResultCountCallback callback)
Performs a search for Bugzilla bugs.
|
checkBugzillaVersion, createIssue, dump, getAuthorizationCallback, getBugzillaBugClass, getLog, getLogin, getPassword, setAuthorizationCallback, setBugzillaBugClasspublic void configure(org.apache.commons.configuration.Configuration config)
throws org.apache.commons.configuration.ConfigurationException
configure in interface Configurableconfigure in class AbstractAuthorizedSessionconfig - - configuration objectorg.apache.commons.configuration.ConfigurationException - - when configuration failspublic boolean open()
public void close()
public String getBugzillaVersion()
public String getMinimumBugzillaVersion()
MINIMUM_BUGZILLA_VERSIONpublic String getMaximumBugzillaVersion()
MAXIMUM_BUGZILLA_VERSIONpublic boolean isLoggedIn()
public Issue getIssue(String id)
Sessionid - id of issueSession.getIssue(java.lang.String)public InputStream getAttachment(Attachment attachment) throws IOException
attachment - attachment to retrieve.IOException - when the IO stream cannot be createdpublic Iterator<Issue> searchBugs(SearchData searchData, SearchResultCountCallback callback)
Iterator.next()
method is made. A separate thread will then be spawned to retrieve the
required details.searchData - - all search parameterscallback - - a callback object that will retrieve the number of bugs
found for this searchCopyright © 2012. All Rights Reserved.