@Service(value="remoteRepositoryAdmin#default") public class DefaultRemoteRepositoryAdmin extends AbstractRepositoryAdmin implements RemoteRepositoryAdmin
Modifier and Type | Field and Description |
---|---|
private List<? extends org.apache.maven.index.context.IndexCreator> |
indexCreators |
private org.apache.maven.index.NexusIndexer |
indexer |
private MavenIndexerUtils |
mavenIndexerUtils |
private PlexusSisuBridge |
plexusSisuBridge |
log
Constructor and Description |
---|
DefaultRemoteRepositoryAdmin() |
Modifier and Type | Method and Description |
---|---|
Boolean |
addRemoteRepository(RemoteRepository remoteRepository,
AuditInformation auditInformation) |
protected String |
calculateIndexRemoteUrl(RemoteRepository remoteRepository) |
org.apache.maven.index.context.IndexingContext |
createIndexContext(RemoteRepository remoteRepository) |
Boolean |
deleteRemoteRepository(String repositoryId,
AuditInformation auditInformation) |
List<RemoteRepository> |
getRemoteRepositories() |
Map<String,RemoteRepository> |
getRemoteRepositoriesAsMap() |
RemoteRepository |
getRemoteRepository(String repositoryId) |
private RemoteRepositoryConfiguration |
getRemoteRepositoryConfiguration(RemoteRepository remoteRepository) |
private void |
initialize() |
private void |
shutdown() |
Boolean |
updateRemoteRepository(RemoteRepository remoteRepository,
AuditInformation auditInformation) |
getArchivaConfiguration, getAuditListeners, getModelMapper, getRegistry, getRepositoryCommonValidator, saveConfiguration, setArchivaConfiguration, setAuditListeners, setRegistry, setRepositoryCommonValidator, triggerAuditEvent
@Inject private PlexusSisuBridge plexusSisuBridge
@Inject private MavenIndexerUtils mavenIndexerUtils
private List<? extends org.apache.maven.index.context.IndexCreator> indexCreators
private org.apache.maven.index.NexusIndexer indexer
public DefaultRemoteRepositoryAdmin()
@PostConstruct private void initialize() throws RepositoryAdminException
RepositoryAdminException
@PreDestroy private void shutdown() throws RepositoryAdminException
RepositoryAdminException
public List<RemoteRepository> getRemoteRepositories() throws RepositoryAdminException
getRemoteRepositories
in interface RemoteRepositoryAdmin
RepositoryAdminException
public RemoteRepository getRemoteRepository(String repositoryId) throws RepositoryAdminException
getRemoteRepository
in interface RemoteRepositoryAdmin
RepositoryAdminException
public Boolean addRemoteRepository(RemoteRepository remoteRepository, AuditInformation auditInformation) throws RepositoryAdminException
addRemoteRepository
in interface RemoteRepositoryAdmin
RepositoryAdminException
public Boolean deleteRemoteRepository(String repositoryId, AuditInformation auditInformation) throws RepositoryAdminException
deleteRemoteRepository
in interface RemoteRepositoryAdmin
RepositoryAdminException
public Boolean updateRemoteRepository(RemoteRepository remoteRepository, AuditInformation auditInformation) throws RepositoryAdminException
updateRemoteRepository
in interface RemoteRepositoryAdmin
RepositoryAdminException
public Map<String,RemoteRepository> getRemoteRepositoriesAsMap() throws RepositoryAdminException
getRemoteRepositoriesAsMap
in interface RemoteRepositoryAdmin
RepositoryAdminException
public org.apache.maven.index.context.IndexingContext createIndexContext(RemoteRepository remoteRepository) throws RepositoryAdminException
createIndexContext
in interface RemoteRepositoryAdmin
RepositoryAdminException
protected String calculateIndexRemoteUrl(RemoteRepository remoteRepository)
private RemoteRepositoryConfiguration getRemoteRepositoryConfiguration(RemoteRepository remoteRepository)
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.