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-model/src | |
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-model/src')
-rw-r--r-- | archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/MetadataFacet.java (renamed from archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/ProjectVersionFacet.java) | 2 | ||||
-rw-r--r-- | archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/MetadataFacetFactory.java | 2 | ||||
-rw-r--r-- | archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/ProjectVersionMetadata.java | 12 | ||||
-rw-r--r-- | archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/RepositoryMetadata.java | 28 |
4 files changed, 8 insertions, 36 deletions
diff --git a/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/ProjectVersionFacet.java b/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/MetadataFacet.java index 6d2647829..da3de00df 100644 --- a/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/ProjectVersionFacet.java +++ b/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/MetadataFacet.java @@ -21,7 +21,7 @@ package org.apache.archiva.metadata.model; import java.util.Map; -public interface ProjectVersionFacet +public interface MetadataFacet { String getFacetId(); diff --git a/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/MetadataFacetFactory.java b/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/MetadataFacetFactory.java index 80ac09c51..b9e313a80 100644 --- a/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/MetadataFacetFactory.java +++ b/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/MetadataFacetFactory.java @@ -21,5 +21,5 @@ package org.apache.archiva.metadata.model; public interface MetadataFacetFactory { - ProjectVersionFacet createProjectVersionFacet(); + MetadataFacet createMetadataFacet(); } diff --git a/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/ProjectVersionMetadata.java b/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/ProjectVersionMetadata.java index f6a2bfb95..e6dcabe84 100644 --- a/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/ProjectVersionMetadata.java +++ b/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/ProjectVersionMetadata.java @@ -45,7 +45,7 @@ public class ProjectVersionMetadata private List<License> licenses = new ArrayList<License>(); - private Map<String, ProjectVersionFacet> facets = new HashMap<String, ProjectVersionFacet>(); + private Map<String, MetadataFacet> facets = new HashMap<String, MetadataFacet>(); private List<MailingList> mailingLists = new ArrayList<MailingList>(); @@ -151,22 +151,22 @@ public class ProjectVersionMetadata this.licenses.add( license ); } - public void addFacet( ProjectVersionFacet projectVersionFacet ) + public void addFacet( MetadataFacet metadataFacet ) { - this.facets.put( projectVersionFacet.getFacetId(), projectVersionFacet ); + this.facets.put( metadataFacet.getFacetId(), metadataFacet ); } - public ProjectVersionFacet getFacet( String facetId ) + public MetadataFacet getFacet( String facetId ) { return this.facets.get( facetId ); } - public Map<String, ProjectVersionFacet> getFacets() + public Map<String, MetadataFacet> getFacets() { return facets; } - public Collection<ProjectVersionFacet> getFacetList() + public Collection<MetadataFacet> getFacetList() { return this.facets.values(); } diff --git a/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/RepositoryMetadata.java b/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/RepositoryMetadata.java deleted file mode 100644 index d1448f24f..000000000 --- a/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/RepositoryMetadata.java +++ /dev/null @@ -1,28 +0,0 @@ -package org.apache.archiva.metadata.model; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/** - * Information about the repository as a whole. - */ -public class RepositoryMetadata -{ - // TODO -} |