aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/metadata/metadata-repository-api/src
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2012-06-05 21:42:02 +0000
committerOlivier Lamy <olamy@apache.org>2012-06-05 21:42:02 +0000
commitea5ddd09615bd26400024da1b8de70b592391c58 (patch)
tree4ce87e7ced70243007271425de5964152d8a1e0c /archiva-modules/metadata/metadata-repository-api/src
parent25e650b0b4dc368ff6492711e24df6e5edc9b07c (diff)
downloadarchiva-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-repository-api/src')
-rw-r--r--archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/MetadataRepository.java13
1 files changed, 13 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 4ab65c642..60e536357 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
@@ -80,6 +80,19 @@ public interface MetadataRepository
throws MetadataRepositoryException;
/**
+ * @param repositoryId
+ * @param namespace
+ * @param project
+ * @param version
+ * @param metadataFacet will remove artifacts which have this {@link MetadataFacet} using equals
+ * @throws MetadataRepositoryException
+ * @since 1.4-M3
+ */
+ void removeArtifact( String repositoryId, String namespace, String project, String version,
+ MetadataFacet metadataFacet )
+ throws MetadataRepositoryException;
+
+ /**
* Delete a repository's metadata. This includes all associated metadata facets.
*
* @param repositoryId the repository to delete