aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/plugins/metadata-store-file
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/plugins/metadata-store-file
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/plugins/metadata-store-file')
-rw-r--r--archiva-modules/plugins/metadata-store-file/src/main/java/org/apache/archiva/metadata/repository/file/FileMetadataRepository.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/archiva-modules/plugins/metadata-store-file/src/main/java/org/apache/archiva/metadata/repository/file/FileMetadataRepository.java b/archiva-modules/plugins/metadata-store-file/src/main/java/org/apache/archiva/metadata/repository/file/FileMetadataRepository.java
index ad483d5ec..e3de5fd40 100644
--- a/archiva-modules/plugins/metadata-store-file/src/main/java/org/apache/archiva/metadata/repository/file/FileMetadataRepository.java
+++ b/archiva-modules/plugins/metadata-store-file/src/main/java/org/apache/archiva/metadata/repository/file/FileMetadataRepository.java
@@ -35,8 +35,10 @@ import org.apache.archiva.metadata.model.ProjectVersionMetadata;
import org.apache.archiva.metadata.model.ProjectVersionReference;
import org.apache.archiva.metadata.model.Scm;
import org.apache.archiva.metadata.repository.MetadataRepository;
+import org.apache.archiva.metadata.repository.MetadataRepositoryException;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.IOUtils;
+import org.apache.commons.lang.NotImplementedException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -635,6 +637,23 @@ public class FileMetadataRepository
}
}
+ /**
+ * FIXME implements this !!!!
+ * @param repositoryId
+ * @param namespace
+ * @param project
+ * @param projectVersion
+ * @param projectId
+ * @param metadataFacet will remove artifacts which have this {@link MetadataFacet} using equals
+ * @throws MetadataRepositoryException
+ */
+ public void removeArtifact( String repositoryId, String namespace, String project, String projectVersion,
+ String projectId, MetadataFacet metadataFacet )
+ throws MetadataRepositoryException
+ {
+ throw new NotImplementedException( "not implemented" );
+ }
+
public void removeRepository( String repoId )
{
File dir = getDirectory( repoId );