public interface AuthorizingRepositoryManager
Modifier and Type | Method and Description |
---|---|
void |
create(org.sonatype.nexus.repository.config.Configuration configuration) |
boolean |
delete(String name) |
List<org.sonatype.nexus.repository.Repository> |
getRepositoriesWithAdmin()
Returns the repositories which the user has an administrative read privilege.
|
Optional<org.sonatype.nexus.repository.Repository> |
getRepositoryWithAdmin(String repositoryName)
Returns the repository if the user has administrative read privileges.
|
void |
invalidateCache(String name)
Invalidate cache of a given repository.
|
void |
rebuildSearchIndex(String name)
Trigger rebuild index task for given repository.
|
boolean |
update(org.sonatype.nexus.repository.config.Configuration configuration) |
void create(@Nonnull org.sonatype.nexus.repository.config.Configuration configuration) throws Exception
Exception
boolean update(@Nonnull org.sonatype.nexus.repository.config.Configuration configuration) throws Exception
Exception
List<org.sonatype.nexus.repository.Repository> getRepositoriesWithAdmin()
Optional<org.sonatype.nexus.repository.Repository> getRepositoryWithAdmin(String repositoryName)
void rebuildSearchIndex(@Nonnull String name) throws RepositoryNotFoundException, IncompatibleRepositoryException
RepositoryNotFoundException
- if repository does not existsIncompatibleRepositoryException
- if is not hosted or proxy typevoid invalidateCache(@Nonnull String name) throws RepositoryNotFoundException, IncompatibleRepositoryException
RepositoryNotFoundException
- if repository does not existsIllegalStateException
- if is not proxy or group typeIncompatibleRepositoryException
Copyright © 2008–2021 Sonatype, Inc.. All rights reserved.