@Service(value="browseService#rest") public class DefaultBrowseService extends AbstractRestService implements BrowseService
archivaAdministration, config, httpServletRequest, log, managedRepositoryAdmin, 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) |
Boolean |
artifactAvailable(String groupId,
String artifactId,
String version,
String classifier,
String repositoryId) |
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) |
List<org.apache.archiva.maven2.model.Artifact> |
getArtifactDownloadInfos(String groupId,
String artifactId,
String version,
String repositoryId) |
List<org.apache.archiva.maven2.model.Artifact> |
getArtifacts(String repositoryId) |
List<org.apache.archiva.maven2.model.Artifact> |
getDependees(String groupId,
String artifactId,
String version,
String repositoryId) |
List<Entry> |
getMetadatas(String groupId,
String artifactId,
String version,
String repositoryId) |
org.apache.archiva.metadata.model.ProjectVersionMetadata |
getProjectMetadata(String groupId,
String artifactId,
String version,
String repositoryId) |
org.apache.archiva.metadata.model.ProjectVersionMetadata |
getProjectVersionMetadata(String groupId,
String artifactId,
String repositoryId) |
BrowseResult |
getRootGroups(String repositoryId) |
List<org.apache.archiva.maven2.model.TreeEntry> |
getTreeEntries(String groupId,
String artifactId,
String version,
String repositoryId) |
List<org.apache.archiva.admin.model.beans.ManagedRepository> |
getUserRepositories() |
VersionsList |
getVersionsList(String groupId,
String artifactId,
String repositoryId) |
Boolean |
importMetadata(MetadataAddRequest metadataAddRequest,
String repositoryId) |
protected List<ArtifactContentEntry> |
readFileEntries(File file,
String filterPath,
String repoId) |
buildArtifacts, doScanRepository, getArtifactUrl, getAuditInformation, getAuditListeners, getBaseUrl, getBeansOfType, getModelMapper, getObservableRepos, getPrincipal, setAuditListeners, triggerAuditEventpublic BrowseResult getRootGroups(String repositoryId) throws ArchivaRestServiceException
getRootGroups in interface BrowseServiceArchivaRestServiceExceptionpublic BrowseResult browseGroupId(String groupId, String repositoryId) throws ArchivaRestServiceException
browseGroupId in interface BrowseServiceArchivaRestServiceExceptionpublic VersionsList getVersionsList(String groupId, String artifactId, String repositoryId) throws ArchivaRestServiceException
getVersionsList in interface BrowseServiceArchivaRestServiceExceptionpublic org.apache.archiva.metadata.model.ProjectVersionMetadata getProjectMetadata(String groupId, String artifactId, String version, String repositoryId) throws ArchivaRestServiceException
getProjectMetadata in interface BrowseServiceArchivaRestServiceExceptionpublic org.apache.archiva.metadata.model.ProjectVersionMetadata getProjectVersionMetadata(String groupId, String artifactId, String repositoryId) throws ArchivaRestServiceException
getProjectVersionMetadata in interface BrowseServiceArchivaRestServiceExceptionpublic List<org.apache.archiva.maven2.model.TreeEntry> getTreeEntries(String groupId, String artifactId, String version, String repositoryId) throws ArchivaRestServiceException
getTreeEntries in interface BrowseServiceArchivaRestServiceExceptionpublic List<org.apache.archiva.admin.model.beans.ManagedRepository> getUserRepositories() throws ArchivaRestServiceException
getUserRepositories in interface BrowseServiceArchivaRestServiceExceptionpublic List<org.apache.archiva.maven2.model.Artifact> getDependees(String groupId, String artifactId, String version, String repositoryId) throws ArchivaRestServiceException
getDependees 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<org.apache.archiva.maven2.model.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
getArtifactContentText in interface BrowseServiceArchivaRestServiceExceptionpublic Boolean artifactAvailable(String groupId, String artifactId, String version, String classifier, String repositoryId) throws ArchivaRestServiceException
artifactAvailable in interface BrowseServiceArchivaRestServiceExceptionpublic Boolean artifactAvailable(String groupId, String artifactId, String version, String repositoryId) throws ArchivaRestServiceException
artifactAvailable in interface BrowseServiceArchivaRestServiceExceptionpublic List<org.apache.archiva.maven2.model.Artifact> getArtifacts(String repositoryId) throws ArchivaRestServiceException
getArtifacts in interface BrowseServiceArchivaRestServiceExceptionpublic Boolean importMetadata(MetadataAddRequest metadataAddRequest, String repositoryId) throws ArchivaRestServiceException
importMetadata in interface BrowseServiceArchivaRestServiceExceptionprotected List<ArtifactContentEntry> readFileEntries(File file, String filterPath, String repoId) throws IOException
IOExceptionCopyright © 2006–2014 The Apache Software Foundation. All rights reserved.