public final class Repository extends Object
Modifier and Type | Field and Description |
---|---|
static String |
EVENT_ATTRIBUTES_CHANGED
RepositoryProvider's attributes have changed, e.g.
|
static String |
EVENT_QUERY_LIST_CHANGED
A query from this repository was saved or removed.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Registers a PropertyChangeListener.
|
boolean |
canAttachFiles()
Determines whether it is possible to attach files to Issues from this repository.
|
String |
getDisplayName()
Returns the display name for this repository.
|
Image |
getIcon()
Returns the icon for this repository.
|
String |
getId()
Returns a unique id associated with this repository.
|
Issue[] |
getIssues(String... ids)
Returns the issues with the given id-s or an empty array in case none found.
|
Collection<Query> |
getQueries()
Returns a list of all saved queries for this repository.
|
String |
getTooltip()
Returns the tooltip describing this repository.
|
String |
getUrl()
Returns the remote url of this repository.
|
boolean |
isMutable()
Determines if this repository can be deleted or changed by the user.
|
void |
remove()
Removes this repository.
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Unregisters a PropertyChangeListener.
|
public static final String EVENT_QUERY_LIST_CHANGED
public static final String EVENT_ATTRIBUTES_CHANGED
public Image getIcon()
public String getDisplayName()
public String getTooltip()
public String getId()
public String getUrl()
public Collection<Query> getQueries()
Please note that in some cases this method might block for a longer time. Do not execute in AWT.
public boolean isMutable()
true
if this repository can be deleted or changed by
the user. Otherwise false
.public boolean canAttachFiles()
true
in case it is possible to attach files, otherwise false
public void remove()
public void addPropertyChangeListener(PropertyChangeListener listener)
listener
- public void removePropertyChangeListener(PropertyChangeListener listener)
listener
-