@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)
RepositoriesServicescanRepository in interface RepositoriesServicepublic Boolean alreadyScanning(String repositoryId)
alreadyScanning in interface RepositoriesServicepublic Boolean removeScanningTaskFromQueue(String repositoryId)
removeScanningTaskFromQueue in interface RepositoriesServicepublic Boolean scanRepositoryNow(String repositoryId, boolean fullScan) throws ArchivaRestServiceException
scanRepositoryNow in interface RepositoriesServiceArchivaRestServiceExceptionpublic Boolean scheduleDownloadRemoteIndex(String repositoryId, boolean now, boolean fullDownload) throws ArchivaRestServiceException
scheduleDownloadRemoteIndex in interface RepositoriesServiceArchivaRestServiceExceptionpublic Boolean copyArtifact(ArtifactTransferRequest artifactTransferRequest) throws ArchivaRestServiceException
RepositoriesServicecopyArtifact in interface RepositoriesServiceArchivaRestServiceExceptionpublic Boolean removeProjectVersion(String repositoryId, String namespace, String projectId, String version) throws ArchivaRestServiceException
RepositoriesServiceremoveProjectVersion in interface RepositoriesServiceArchivaRestServiceExceptionpublic Boolean deleteArtifact(Artifact artifact) throws ArchivaRestServiceException
RepositoriesServicedeleteArtifact in interface RepositoriesServiceArchivaRestServiceExceptionpublic Boolean deleteGroupId(String groupId, String repositoryId) throws ArchivaRestServiceException
RepositoriesServicedeleteGroupId in interface RepositoriesServiceArchivaRestServiceExceptionpublic Boolean deleteProject(String groupId, String projectId, String repositoryId) throws ArchivaRestServiceException
RepositoriesServicedeleteProject in interface RepositoriesServiceArchivaRestServiceExceptionpublic Boolean isAuthorizedToDeleteArtifacts(String repoId) throws ArchivaRestServiceException
isAuthorizedToDeleteArtifacts in interface RepositoriesServiceArchivaRestServiceExceptionpublic RepositoryScanStatistics scanRepositoryDirectoriesNow(String repositoryId) throws ArchivaRestServiceException
RepositoriesServicescanRepositoryDirectoriesNow in interface RepositoriesServiceArchivaRestServiceExceptionpublic StringList getRunningRemoteDownloadIds()
getRunningRemoteDownloadIds in interface RepositoriesServicepublic 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.