@Named
@Singleton
@Consumes(value="application/json")
@Produces(value="application/json")
@Path(value="internal/ui/repositories")
public class RepositoryInternalResource
extends org.sonatype.goodies.common.ComponentSupport
implements org.sonatype.nexus.rest.Resource
Constructor and Description |
---|
RepositoryInternalResource(List<org.sonatype.nexus.repository.Format> formats,
org.sonatype.nexus.repository.manager.RepositoryManager repositoryManager,
RepositoryPermissionChecker repositoryPermissionChecker,
org.sonatype.nexus.repository.types.ProxyType proxyType) |
Modifier and Type | Method and Description |
---|---|
List<RepositoryXO> |
getRepositories(String type,
boolean withAll,
boolean withFormats) |
List<RepositoryDetailXO> |
getRepositoryDetails() |
@Inject public RepositoryInternalResource(List<org.sonatype.nexus.repository.Format> formats, org.sonatype.nexus.repository.manager.RepositoryManager repositoryManager, RepositoryPermissionChecker repositoryPermissionChecker, org.sonatype.nexus.repository.types.ProxyType proxyType)
@GET @RequiresAuthentication public List<RepositoryXO> getRepositories(@QueryParam(value="type") String type, @QueryParam(value="withAll") boolean withAll, @QueryParam(value="withFormats") boolean withFormats)
@GET @Path(value="/details") public List<RepositoryDetailXO> getRepositoryDetails()
Copyright © 2008–2021 Sonatype, Inc.. All rights reserved.