R
- the implementation specific repository typeQ
- the implementation specific query typeI
- the implementation specific issue typepublic interface RepositoryProvider<R,Q,I>
Modifier and Type | Field and Description |
---|---|
static String |
EVENT_QUERY_LIST_CHANGED
A query from this repository was saved or removed.
|
static String |
EVENT_UNSUBMITTED_ISSUES_CHANGED
The content of unsubmitted issues for the repository changes.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(R r,
PropertyChangeListener listener)
Add a PropertyChangeListener to the given repository.
|
boolean |
canAttachFiles(R r)
Determines whether it is possible to attach files to an Issue for the given repository.
|
I |
createIssue(R r)
Creates a new issue, not yet submitted, issue instance.
|
I |
createIssue(R r,
String summary,
String description)
Creates a new issue instance preset with the given summary and description.
|
Q |
createQuery(R r)
Creates a new query instance.
|
RepositoryController |
getController(R r)
Returns the
RepositoryController for this repository. |
Image |
getIcon(R r)
Returns the icon for this repository
|
RepositoryInfo |
getInfo(R r)
Returns the repository info or null in case the repository is new and not saved yet.
|
Collection<I> |
getIssues(R r,
String... ids)
Returns issues with the given IDs.
|
Collection<Q> |
getQueries(R r)
Returns all named (already saved) queries.
|
void |
removed(R r)
Notifies that the given repository was removed.
|
void |
removePropertyChangeListener(R r,
PropertyChangeListener listener)
Removes a PropertyChangeListener to the given repository.
|
Collection<I> |
simpleSearch(R r,
String criteria)
Runs a query against the bugtracking repository to get all issues
for which applies that the ID equals to or the summary contains
the given criteria string.
|
static final String EVENT_QUERY_LIST_CHANGED
static final String EVENT_UNSUBMITTED_ISSUES_CHANGED
RepositoryInfo getInfo(R r)
r
- an implementation specific repositoryImage getIcon(R r)
r
- an implementation specific repositoryCollection<I> getIssues(R r, String... ids)
r
- an implementation specific repositoryids
- void removed(R r)
r
- an implementation specific repositoryRepositoryController getController(R r)
RepositoryController
for this repository.r
- an implementation specific repositoryQ createQuery(R r)
r
- an implementation specific repositorynull
if it's not possible
to access the repository.QueryProvider
I createIssue(R r)
r
- an implementation specific repositorynull
if it's not possible
to create an issue.IssueProvider
I createIssue(R r, String summary, String description)
r
- an implementation specific repositorysummary
- description
- null
if it's not possible
to create an issue.IssueProvider
Collection<Q> getQueries(R r)
r
- an implementation specific repositoryQueryProvider.remove(java.lang.Object)
Collection<I> simpleSearch(R r, String criteria)
In case an error appears during execution, the implementation should take care of the error handling, user notification etc.
r
- an implementation specific repositorycriteria
- boolean canAttachFiles(R r)
Note that in case this method returns true
IssueProvider.attachFile(java.lang.Object, java.io.File, java.lang.String, boolean)
has to be implemented as well.
r
- an implementation specific repositorytrue
in case it is possible to attach files, otherwise false
IssueProvider.attachFile(java.lang.Object, java.io.File, java.lang.String, boolean)
void removePropertyChangeListener(R r, PropertyChangeListener listener)
r
- an implementation specific repositorylistener
- a PropertyChangeListenervoid addPropertyChangeListener(R r, PropertyChangeListener listener)
r
- an implementation specific repositorylistener
- a PropertyChangeListener