@Service(value="repositoriesService#rest") public class DefaultRepositoriesService extends AbstractRestService implements RepositoriesService
Modifier and Type | Field and Description |
---|---|
protected List<RepositoryListener> |
listeners |
protected RepositorySessionFactory |
repositorySessionFactory |
archivaAdministration, config, httpServletRequest, httpServletResponse, proxyConnectorAdmin, repositoryTaskScheduler, userRepositories
Constructor and Description |
---|
DefaultRepositoriesService() |
buildArtifacts, doScanRepository, getArtifactUrl, getArtifactUrl, getAuditInformation, getAuditListeners, getBaseUrl, getBeansOfType, getModelMapper, getObservableRepos, getPrincipal, setAuditListeners, triggerAuditEvent
@Inject @Named(value="repositorySessionFactory") protected RepositorySessionFactory repositorySessionFactory
@Inject @Autowired(required=false) protected List<RepositoryListener> listeners
public DefaultRepositoriesService()
public Boolean scanRepository(String repositoryId, boolean fullScan)
RepositoriesService
scanRepository
in interface RepositoriesService
public Boolean alreadyScanning(String repositoryId)
alreadyScanning
in interface RepositoriesService
public Boolean removeScanningTaskFromQueue(String repositoryId)
removeScanningTaskFromQueue
in interface RepositoriesService
public Boolean scanRepositoryNow(String repositoryId, boolean fullScan) throws ArchivaRestServiceException
scanRepositoryNow
in interface RepositoriesService
ArchivaRestServiceException
public Boolean scheduleDownloadRemoteIndex(String repositoryId, boolean now, boolean fullDownload) throws ArchivaRestServiceException
scheduleDownloadRemoteIndex
in interface RepositoriesService
ArchivaRestServiceException
public Boolean copyArtifact(ArtifactTransferRequest artifactTransferRequest) throws ArchivaRestServiceException
RepositoriesService
copyArtifact
in interface RepositoriesService
ArchivaRestServiceException
public Boolean removeProjectVersion(String repositoryId, String namespace, String projectId, String version) throws ArchivaRestServiceException
RepositoriesService
removeProjectVersion
in interface RepositoriesService
ArchivaRestServiceException
public Boolean deleteArtifact(Artifact artifact) throws ArchivaRestServiceException
RepositoriesService
deleteArtifact
in interface RepositoriesService
ArchivaRestServiceException
public Boolean deleteGroupId(String groupId, String repositoryId) throws ArchivaRestServiceException
RepositoriesService
deleteGroupId
in interface RepositoriesService
ArchivaRestServiceException
public Boolean deleteProject(String groupId, String projectId, String repositoryId) throws ArchivaRestServiceException
RepositoriesService
deleteProject
in interface RepositoriesService
ArchivaRestServiceException
public Boolean isAuthorizedToDeleteArtifacts(String repoId) throws ArchivaRestServiceException
isAuthorizedToDeleteArtifacts
in interface RepositoriesService
ArchivaRestServiceException
public RepositoryScanStatistics scanRepositoryDirectoriesNow(String repositoryId) throws ArchivaRestServiceException
RepositoriesService
scanRepositoryDirectoriesNow
in interface RepositoriesService
ArchivaRestServiceException
public StringList getRunningRemoteDownloadIds()
getRunningRemoteDownloadIds
in interface RepositoriesService
public RepositorySessionFactory getRepositorySessionFactory()
public void setRepositorySessionFactory(RepositorySessionFactory repositorySessionFactory)
public List<RepositoryListener> getListeners()
public void setListeners(List<RepositoryListener> listeners)
public ArchivaAdministration getArchivaAdministration()
public void setArchivaAdministration(ArchivaAdministration archivaAdministration)
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.