public final class RepositoryManager extends Object
Repository
-s and related functionality.Modifier and Type | Field and Description |
---|---|
static String |
EVENT_REPOSITORIES_CHANGED
Name of the
PropertyChangeEvent notifying that a repository was created or removed, where:old value - a Collection of all repositories before the change
new value - a Collection of all repositories after the change
either both, old value or new value, are null if unknown, or at least one of them is not null
indicating the exact character of the notified change. |
Modifier and Type | Method and Description |
---|---|
void |
addPropertChangeListener(PropertyChangeListener l)
Add a listener for repository related changes.
|
static RepositoryManager |
getInstance()
Returns the only existing
RepositoryManager instance. |
Collection<Repository> |
getRepositories()
Returns all registered repositories, including those which are
currently opened in a logged in team sever dashboard.
|
Collection<Repository> |
getRepositories(String connectorId)
Returns all registered repositories for a connector with the given id,
including those which are currently opened in a logged in team sever dashboard.
|
Repository |
getRepository(String connectorId,
String repositoryId)
Facility method to obtain an already registered
Repository instance. |
void |
removePropertChangeListener(PropertyChangeListener l)
Remove a listener for repository related changes.
|
public static final String EVENT_REPOSITORIES_CHANGED
PropertyChangeEvent
notifying that a repository was created or removed, where:old value
- a Collection of all repositories before the changenew value
- a Collection of all repositories after the changenull
if unknown, or at least one of them is not null
indicating the exact character of the notified change.public static RepositoryManager getInstance()
RepositoryManager
instance.public void addPropertChangeListener(PropertyChangeListener l)
l
- the new listenerpublic void removePropertChangeListener(PropertyChangeListener l)
l
- the new listenerpublic Collection<Repository> getRepositories()
public Collection<Repository> getRepositories(String connectorId)
connectorId
- public Repository getRepository(String connectorId, String repositoryId)
Repository
instance.connectorId
- repositoryId
- null
.