@Service(value="browseService#rest") public class DefaultBrowseService extends AbstractRestService implements BrowseService
archivaAdministration, config, httpServletRequest, httpServletResponse, log, proxyConnectorAdmin, repositoryRegistry, repositorySessionFactory, repositoryTaskScheduler, userRepositories| Constructor and Description |
|---|
DefaultBrowseService() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
addMetadata(String groupId,
String artifactId,
String version,
String key,
String value,
String repositoryId) |
Boolean |
artifactAvailable(String groupId,
String artifactId,
String version,
String repositoryId)
verify if an artifact is available locally if not download from proxies will be try
|
Boolean |
artifactAvailable(String groupId,
String artifactId,
String version,
String classifier,
String repositoryId)
verify if an artifact is available locally if not download from proxies will be try
|
BrowseResult |
browseGroupId(String groupId,
String repositoryId) |
Boolean |
deleteMetadata(String groupId,
String artifactId,
String version,
String key,
String repositoryId) |
List<ArtifactContentEntry> |
getArtifactContentEntries(String groupId,
String artifactId,
String version,
String classifier,
String type,
String path,
String repositoryId) |
ArtifactContent |
getArtifactContentText(String groupId,
String artifactId,
String version,
String classifier,
String type,
String path,
String repositoryId)
if path is empty content of the file is returned (for pom view)
|
List<Artifact> |
getArtifactDownloadInfos(String groupId,
String artifactId,
String version,
String repositoryId) |
List<Artifact> |
getArtifacts(String repositoryId)
return List of all artifacts from this repository
|
List<Artifact> |
getArtifactsByMetadata(String key,
String value,
String repositoryId)
Return List of artifacts from this repository with artifact metadata key matching value.
|
List<Artifact> |
getArtifactsByProjectVersionMetadata(String key,
String value,
String repositoryId)
Return List of artifacts from this repository with project version level metadata key matching value.
|
List<Artifact> |
getArtifactsByProperty(String key,
String value,
String repositoryId)
Return List of artifacts from this repository with property key matching value.
|
List<Artifact> |
getDependees(String groupId,
String artifactId,
String version,
String repositoryId)
List of artifacts using the artifact passed in parameter.
|
List<Entry> |
getMetadatas(String groupId,
String artifactId,
String version,
String repositoryId) |
ProjectVersionMetadata |
getProjectMetadata(String groupId,
String artifactId,
String version,
String repositoryId) |
ProjectVersionMetadata |
getProjectVersionMetadata(String groupId,
String artifactId,
String repositoryId) |
BrowseResult |
getRootGroups(String repositoryId) |
List<TreeEntry> |
getTreeEntries(String groupId,
String artifactId,
String version,
String repositoryId)
return the dependency Tree for an artifacts
the List result has only one entry
|
List<ManagedRepository> |
getUserManagableRepositories() |
List<ManagedRepository> |
getUserRepositories() |
org.apache.archiva.components.cache.Cache<String,ProjectVersionMetadata> |
getVersionMetadataCache() |
VersionsList |
getVersionsList(String groupId,
String artifactId,
String repositoryId) |
Boolean |
importMetadata(MetadataAddRequest metadataAddRequest,
String repositoryId) |
protected List<ArtifactContentEntry> |
readFileEntries(StorageAsset file,
String filterPath,
String repoId) |
List<Artifact> |
searchArtifacts(String text,
String repositoryId,
Boolean exact)
Search artifacts with any property matching text.
|
List<Artifact> |
searchArtifacts(String key,
String text,
String repositoryId,
Boolean exact)
Search artifacts with the property specified by key matching text.
|
void |
setVersionMetadataCache(org.apache.archiva.components.cache.Cache<String,ProjectVersionMetadata> versionMetadataCache) |
buildArtifacts, doScanRepository, getArtifactUrl, getArtifactUrl, getAuditInformation, getAuditListeners, getBaseUrl, getBeansOfType, getModelMapper, getObservableRepos, getPrincipal, setAuditListeners, triggerAuditEventpublic DefaultBrowseService()
public BrowseResult getRootGroups(String repositoryId) throws ArchivaRestServiceException
getRootGroups in interface BrowseServiceArchivaRestServiceExceptionpublic BrowseResult browseGroupId(String groupId, String repositoryId) throws ArchivaRestServiceException
browseGroupId in interface BrowseServicegroupId - groupId to browserepositoryId - optionnal (repository to browse if null all available user repositories are used)ArchivaRestServiceExceptionpublic VersionsList getVersionsList(String groupId, String artifactId, String repositoryId) throws ArchivaRestServiceException
getVersionsList in interface BrowseServiceArchivaRestServiceExceptionpublic ProjectVersionMetadata getProjectMetadata(String groupId, String artifactId, String version, String repositoryId) throws ArchivaRestServiceException
getProjectMetadata in interface BrowseServiceArchivaRestServiceExceptionpublic ProjectVersionMetadata getProjectVersionMetadata(String groupId, String artifactId, String repositoryId) throws ArchivaRestServiceException
getProjectVersionMetadata in interface BrowseServiceArchivaRestServiceExceptionpublic List<TreeEntry> getTreeEntries(String groupId, String artifactId, String version, String repositoryId) throws ArchivaRestServiceException
BrowseServicegetTreeEntries in interface BrowseServiceArchivaRestServiceExceptionpublic List<ManagedRepository> getUserRepositories() throws ArchivaRestServiceException
getUserRepositories in interface BrowseServiceArchivaRestServiceExceptionpublic List<ManagedRepository> getUserManagableRepositories() throws ArchivaRestServiceException
getUserManagableRepositories in interface BrowseServiceArchivaRestServiceExceptionpublic List<Artifact> getDependees(String groupId, String artifactId, String version, String repositoryId) throws ArchivaRestServiceException
BrowseServicegetDependees in interface BrowseServiceArchivaRestServiceExceptionpublic List<Entry> getMetadatas(String groupId, String artifactId, String version, String repositoryId) throws ArchivaRestServiceException
getMetadatas in interface BrowseServiceArchivaRestServiceExceptionpublic Boolean addMetadata(String groupId, String artifactId, String version, String key, String value, String repositoryId) throws ArchivaRestServiceException
addMetadata in interface BrowseServiceArchivaRestServiceExceptionpublic Boolean deleteMetadata(String groupId, String artifactId, String version, String key, String repositoryId) throws ArchivaRestServiceException
deleteMetadata in interface BrowseServiceArchivaRestServiceExceptionpublic List<ArtifactContentEntry> getArtifactContentEntries(String groupId, String artifactId, String version, String classifier, String type, String path, String repositoryId) throws ArchivaRestServiceException
getArtifactContentEntries in interface BrowseServiceArchivaRestServiceExceptionpublic List<Artifact> getArtifactDownloadInfos(String groupId, String artifactId, String version, String repositoryId) throws ArchivaRestServiceException
getArtifactDownloadInfos in interface BrowseServiceArchivaRestServiceExceptionpublic ArtifactContent getArtifactContentText(String groupId, String artifactId, String version, String classifier, String type, String path, String repositoryId) throws ArchivaRestServiceException
BrowseServicegetArtifactContentText in interface BrowseServiceArchivaRestServiceExceptionpublic Boolean artifactAvailable(String groupId, String artifactId, String version, String classifier, String repositoryId) throws ArchivaRestServiceException
BrowseServiceartifactAvailable in interface BrowseServiceArchivaRestServiceExceptionpublic Boolean artifactAvailable(String groupId, String artifactId, String version, String repositoryId) throws ArchivaRestServiceException
BrowseServiceartifactAvailable in interface BrowseServiceArchivaRestServiceExceptionpublic List<Artifact> getArtifacts(String repositoryId) throws ArchivaRestServiceException
BrowseServicegetArtifacts in interface BrowseServiceArchivaRestServiceExceptionpublic List<Artifact> getArtifactsByProjectVersionMetadata(String key, String value, String repositoryId) throws ArchivaRestServiceException
BrowseServicegetArtifactsByProjectVersionMetadata in interface BrowseServiceArchivaRestServiceExceptionpublic List<Artifact> getArtifactsByMetadata(String key, String value, String repositoryId) throws ArchivaRestServiceException
BrowseServicegetArtifactsByMetadata in interface BrowseServiceArchivaRestServiceExceptionpublic List<Artifact> getArtifactsByProperty(String key, String value, String repositoryId) throws ArchivaRestServiceException
BrowseServicegetArtifactsByProperty in interface BrowseServiceArchivaRestServiceExceptionpublic Boolean importMetadata(MetadataAddRequest metadataAddRequest, String repositoryId) throws ArchivaRestServiceException
importMetadata in interface BrowseServiceArchivaRestServiceExceptionpublic List<Artifact> searchArtifacts(String text, String repositoryId, Boolean exact) throws ArchivaRestServiceException
BrowseServicesearchArtifacts in interface BrowseServiceArchivaRestServiceExceptionpublic List<Artifact> searchArtifacts(String key, String text, String repositoryId, Boolean exact) throws ArchivaRestServiceException
BrowseServicesearchArtifacts in interface BrowseServiceArchivaRestServiceExceptionprotected List<ArtifactContentEntry> readFileEntries(StorageAsset file, String filterPath, String repoId) throws IOException
IOExceptionpublic org.apache.archiva.components.cache.Cache<String,ProjectVersionMetadata> getVersionMetadataCache()
public void setVersionMetadataCache(org.apache.archiva.components.cache.Cache<String,ProjectVersionMetadata> versionMetadataCache)
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.