public interface RepositoryProvider extends EventHandler
Modifier and Type | Method and Description |
---|---|
ManagedRepository |
createManagedInstance(ManagedRepositoryConfiguration configuration)
Creates a new managed repository instance from the given configuration.
|
EditableManagedRepository |
createManagedInstance(String id,
String name)
Creates a editable managed repository instance.
|
RemoteRepository |
createRemoteInstance(RemoteRepositoryConfiguration configuration)
Creates a new remote repository instance from the given configuration.
|
EditableRemoteRepository |
createRemoteInstance(String id,
String name)
Creates a editable remote repository instance.
|
RepositoryGroup |
createRepositoryGroup(RepositoryGroupConfiguration configuration)
Creates a new repository group instance from the given configuration.
|
EditableRepositoryGroup |
createRepositoryGroup(String id,
String name)
Creates a editable repository group. .
|
ManagedRepository |
createStagingInstance(ManagedRepositoryConfiguration baseConfiguration)
Creates a new managed staging repository instance from the given configuration.
|
ManagedRepositoryConfiguration |
getManagedConfiguration(ManagedRepository managedRepository)
Returns a configuration object from the given managed repository instance.
|
RemoteRepositoryConfiguration |
getRemoteConfiguration(RemoteRepository remoteRepository)
Returns a configuration object from the given remote repository instance.
|
RepositoryGroupConfiguration |
getRepositoryGroupConfiguration(RepositoryGroup repositoryGroup)
Returns a configuration object from the given repository group instance.
|
Set<RepositoryType> |
provides()
Returns the types of repositories this provider can handle.
|
void |
updateManagedInstance(EditableManagedRepository repo,
ManagedRepositoryConfiguration configuration)
Updates the given managed repository instance from the given configuration.
|
void |
updateRemoteInstance(EditableRemoteRepository repo,
RemoteRepositoryConfiguration configuration)
Updates the given remote repository instance from the given configuration.
|
void |
updateRepositoryGroupInstance(EditableRepositoryGroup repositoryGroup,
RepositoryGroupConfiguration configuration)
Updates the given remote repository instance from the given configuration.
|
handle
Set<RepositoryType> provides()
EditableManagedRepository createManagedInstance(String id, String name) throws IOException
id
- the repository identifiername
- the repository nameIOException
EditableRemoteRepository createRemoteInstance(String id, String name)
id
- the repository identifiername
- the repository nameEditableRepositoryGroup createRepositoryGroup(String id, String name)
id
- the repository identifiername
- the repository nameManagedRepository createManagedInstance(ManagedRepositoryConfiguration configuration) throws RepositoryException
configuration
- the repository configuration that contains the repository dataRepositoryException
- if some of the configuration values are not validvoid updateManagedInstance(EditableManagedRepository repo, ManagedRepositoryConfiguration configuration) throws RepositoryException
repo
- the repository instance that should be updatedconfiguration
- the repository configuration that contains the repository dataRepositoryException
- if some of the configuration values are not validManagedRepository createStagingInstance(ManagedRepositoryConfiguration baseConfiguration) throws RepositoryException
baseConfiguration
- the repository configuration of the base repository that references the staging repositoryRepositoryException
- if some of the configuration values are not validRemoteRepository createRemoteInstance(RemoteRepositoryConfiguration configuration) throws RepositoryException
configuration
- the repository configuration that contains the repository dataRepositoryException
- if some of the configuration values are not validvoid updateRemoteInstance(EditableRemoteRepository repo, RemoteRepositoryConfiguration configuration) throws RepositoryException
repo
- the repository instance that should be updatedconfiguration
- the repository configuration that contains the repository dataRepositoryException
- if some of the configuration values are not validRepositoryGroup createRepositoryGroup(RepositoryGroupConfiguration configuration) throws RepositoryException
configuration
- the repository group configurationRepositoryException
- if some of the configuration values are not validvoid updateRepositoryGroupInstance(EditableRepositoryGroup repositoryGroup, RepositoryGroupConfiguration configuration) throws RepositoryException
repositoryGroup
- the repository group instance that should be updatedconfiguration
- the repository group configuration that contains the group dataRepositoryException
- if some of the configuration values are not validRemoteRepositoryConfiguration getRemoteConfiguration(RemoteRepository remoteRepository) throws RepositoryException
remoteRepository
- the remote repository instanceRepositoryException
- if the data cannot be convertedManagedRepositoryConfiguration getManagedConfiguration(ManagedRepository managedRepository) throws RepositoryException
managedRepository
- the managed repository instanceRepositoryException
- if the data cannot be convertedRepositoryGroupConfiguration getRepositoryGroupConfiguration(RepositoryGroup repositoryGroup) throws RepositoryException
repositoryGroup
- the repository groupRepositoryException
- if the data cannot be convertedCopyright © 2006–2019 The Apache Software Foundation. All rights reserved.