public interface RepositoryRegistry extends EventSource
The modification methods addXX and removeXX persist the changes immediately to the configuration. If the configuration save fails the changes are rolled back.
registerEventHandler, unregisterEventHandler
void setArchivaConfiguration(ArchivaConfiguration archivaConfiguration)
ArchivaIndexManager getIndexManager(RepositoryType type)
Collection<Repository> getRepositories()
Collection<ManagedRepository> getManagedRepositories()
Collection<RemoteRepository> getRemoteRepositories()
Collection<RepositoryGroup> getRepositoryGroups()
Repository getRepository(String repoId)
ManagedRepository getManagedRepository(String repoId)
RemoteRepository getRemoteRepository(String repoId)
RepositoryGroup getRepositoryGroup(String groupId)
ManagedRepository putRepository(ManagedRepository managedRepository) throws RepositoryException
RepositoryException
ManagedRepository putRepository(ManagedRepositoryConfiguration managedRepositoryConfiguration) throws RepositoryException
RepositoryException
ManagedRepository putRepository(ManagedRepositoryConfiguration managedRepositoryConfiguration, Configuration configuration) throws RepositoryException
RepositoryException
RepositoryGroup putRepositoryGroup(RepositoryGroup repositoryGroup) throws RepositoryException
RepositoryException
RepositoryGroup putRepositoryGroup(RepositoryGroupConfiguration repositoryGroupConfiguration) throws RepositoryException
RepositoryException
RepositoryGroup putRepositoryGroup(RepositoryGroupConfiguration repositoryGroupConfiguration, Configuration configuration) throws RepositoryException
RepositoryException
RemoteRepository putRepository(RemoteRepository remoteRepository, Configuration configuration) throws RepositoryException
RepositoryException
RemoteRepository putRepository(RemoteRepository remoteRepository) throws RepositoryException
RepositoryException
RemoteRepository putRepository(RemoteRepositoryConfiguration remoteRepositoryConfiguration) throws RepositoryException
RepositoryException
RemoteRepository putRepository(RemoteRepositoryConfiguration remoteRepositoryConfiguration, Configuration configuration) throws RepositoryException
RepositoryException
void removeRepository(String repoId) throws RepositoryException
RepositoryException
void removeRepository(Repository repo) throws RepositoryException
RepositoryException
void removeRepository(ManagedRepository managedRepository) throws RepositoryException
RepositoryException
void removeRepository(ManagedRepository managedRepository, Configuration configuration) throws RepositoryException
RepositoryException
void removeRepositoryGroup(RepositoryGroup repositoryGroup) throws RepositoryException
RepositoryException
void removeRepositoryGroup(RepositoryGroup repositoryGroup, Configuration configuration) throws RepositoryException
RepositoryException
void removeRepository(RemoteRepository remoteRepository) throws RepositoryException
RepositoryException
void removeRepository(RemoteRepository remoteRepository, Configuration configuration) throws RepositoryException
RepositoryException
void reload()
void resetIndexingContext(Repository repository) throws IndexUpdateFailedException
IndexUpdateFailedException
ManagedRepository clone(ManagedRepository repo, String newId) throws RepositoryException
RepositoryException
<T extends Repository> Repository clone(T repo, String newId) throws RepositoryException
RepositoryException
RemoteRepository clone(RemoteRepository repo, String newId) throws RepositoryException
RepositoryException
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.