public interface Session extends Configurable
Bugzilla latest version 3 announced an XML-RPC Webservice interface. However, all functions seems to be marked unstable and/or experimental. So no session implementation for that protocol will be delivered yet. The author regards that service as highly welcome as it will support the B4J features in best way.
This interface can be extended in later versions to support GUI-styled interfaces. Future additions might include addBug(), editBug(), listAccounts().
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the previously established Bugzilla session.
|
void |
dump()
Debug information into log.
|
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.
|
configureboolean isLoggedIn()
boolean open()
void close()
Iterator<Issue> searchBugs(SearchData searchData, SearchResultCountCallback callback)
searchData - - all search parameterscallback - - a callback object that will retrieve the number of bugs
found for this searchIssue getIssue(String id)
id - id of issueInputStream getAttachment(Attachment attachment) throws IOException
attachment - attachment to retrieve.IOException - when the IO stream cannot be createdvoid dump()
String getMinimumBugzillaVersion()
String getMaximumBugzillaVersion()
String getBugzillaVersion()
Copyright © 2012. All Rights Reserved.