diff options
author | Olivier Lamy <olamy@apache.org> | 2012-06-05 21:42:02 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2012-06-05 21:42:02 +0000 |
commit | ea5ddd09615bd26400024da1b8de70b592391c58 (patch) | |
tree | 4ce87e7ced70243007271425de5964152d8a1e0c /archiva-modules/metadata/metadata-model/src | |
parent | 25e650b0b4dc368ff6492711e24df6e5edc9b07c (diff) | |
download | archiva-ea5ddd09615bd26400024da1b8de70b592391c58.tar.gz archiva-ea5ddd09615bd26400024da1b8de70b592391c58.zip |
improve MetadataRepository api to be able to remove an artifact with MetadataFacet use case deleting a maven artifact with a classifier
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1346609 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/FacetedMetadata.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/FacetedMetadata.java b/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/FacetedMetadata.java index 387813e36..e2261a199 100644 --- a/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/FacetedMetadata.java +++ b/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/FacetedMetadata.java @@ -19,7 +19,6 @@ package org.apache.archiva.metadata.model; * under the License. */ -import javax.xml.bind.annotation.XmlElement; import java.util.Collection; import java.util.Collections; import java.util.HashMap; @@ -56,6 +55,11 @@ public abstract class FacetedMetadata return this.facets.get( facetId ); } + public MetadataFacet removeFacet( String facetId ) + { + return this.facets.remove( facetId ); + } + /** * Get all the facets available on this metadata. * |