diff options
author | Brett Porter <brett@apache.org> | 2009-12-07 22:32:10 +0000 |
---|---|---|
committer | Brett Porter <brett@apache.org> | 2009-12-07 22:32:10 +0000 |
commit | 7c7fffc71c4c2546c8e5aacb933bea9fd1c8ffa7 (patch) | |
tree | 2ea76540d2481df4db7e42d1f3f19cb076d1213b /archiva-modules/metadata/metadata-repository-api/src/main | |
parent | 8afc66c9d202f12d1cfef8d80db88f3963928e3b (diff) | |
download | archiva-7c7fffc71c4c2546c8e5aacb933bea9fd1c8ffa7.tar.gz archiva-7c7fffc71c4c2546c8e5aacb933bea9fd1c8ffa7.zip |
[MRM-1293] introduce repository statistics as a new plugin that operates over the metadata repository. Currently a work in progress - repository size statistics are not stored, and only the scanner and scheduler have been hooked in (meaning reports will be out of date)
git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/MRM-1025@888164 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/metadata/metadata-repository-api/src/main')
-rw-r--r-- | archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/MetadataRepository.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/MetadataRepository.java b/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/MetadataRepository.java index 3428320f9..edf05c236 100644 --- a/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/MetadataRepository.java +++ b/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/MetadataRepository.java @@ -19,7 +19,10 @@ package org.apache.archiva.metadata.repository; * under the License. */ +import java.util.List; + import org.apache.archiva.metadata.model.ArtifactMetadata; +import org.apache.archiva.metadata.model.MetadataFacet; import org.apache.archiva.metadata.model.ProjectMetadata; import org.apache.archiva.metadata.model.ProjectVersionMetadata; import org.apache.archiva.metadata.model.ProjectVersionReference; @@ -45,4 +48,10 @@ public interface MetadataRepository ProjectVersionReference reference ); void updateNamespace( String repoId, String namespace ); + + List<String> getMetadataFacets( String repodId, String facetId ); + + MetadataFacet getMetadataFacet( String repositoryId, String facetId, String name ); + + void addMetadataFacet( String repositoryId, String facetId, String name, MetadataFacet metadataFacet ); } |