Q
- the implementation specific query typeI
- the implementation specific issue typepublic interface QueryProvider<Q,I>
Modifier and Type | Interface and Description |
---|---|
static class |
QueryProvider.IssueContainer<I>
Notifies about refreshing progress and Issues retrieved by an Query.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canRemove(Q q)
Determines whether it is possible to remove the given Query.
|
boolean |
canRename(Q q)
Determines whether it is possible to rename the given Query.
|
QueryController |
getController(Q q)
Returns the
QueryController for this query |
String |
getDisplayName(Q q)
Returns the queries display name
|
String |
getTooltip(Q q)
Returns the queries tooltip
|
void |
refresh(Q q)
Refreshes the given query.
|
void |
remove(Q q)
Removes the given query.
|
void |
rename(Q q,
String newName)
Renames the given query.
|
void |
setIssueContainer(Q q,
QueryProvider.IssueContainer<I> c)
Sets a
QueryProvider.IssueContainer . |
String getDisplayName(Q q)
q
- the particular query instanceString getTooltip(Q q)
q
- the particular query instanceQueryController getController(Q q)
QueryController
for this queryq
- the implementation specific query typeboolean canRemove(Q q)
q
- the particular query instancetrue
in case it is possible to remove the query, otherwise fasle
void remove(Q q)
RepositoryProvider.getQueries(java.lang.Object)
in case QueryProvider.canRemove(java.lang.Object)
returns true
. After a remove it should not be returned by
RepositoryProvider.getQueries(java.lang.Object)
anymore.q
- the particular query instanceRepositoryProvider.getQueries(java.lang.Object)
boolean canRename(Q q)
q
- the particular query instancetrue
in case it is possible to rename the query, otherwise fasle
void rename(Q q, String newName)
q
- the particular query instancenewName
- new namevoid setIssueContainer(Q q, QueryProvider.IssueContainer<I> c)
QueryProvider.IssueContainer
.q
- the particular query instancec
- a IssueContainervoid refresh(Q q)
Note that this call is made periodically by the infrastructure.
q
- the particular query instance