Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDJ Houghton2010-08-26 08:56:02 -0400
committerDJ Houghton2010-08-26 08:56:02 -0400
commit8c91ab7a6145a1176d8f593f209369a559aba8a9 (patch)
treeb3d00dc7b4109806a9f5dd846fab7b340d64d50d /bundles/org.eclipse.equinox.p2.repository
parentcd254bc15261f58490302ec42031775abc7f593f (diff)
downloadrt.equinox.p2-8c91ab7a6145a1176d8f593f209369a559aba8a9.tar.gz
rt.equinox.p2-8c91ab7a6145a1176d8f593f209369a559aba8a9.tar.xz
rt.equinox.p2-8c91ab7a6145a1176d8f593f209369a559aba8a9.zip
Bug 244628 - [api] [repository] artifact repos do not support bulk remove
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.repository')
-rw-r--r--bundles/org.eclipse.equinox.p2.repository/META-INF/MANIFEST.MF2
-rw-r--r--bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/p2/repository/artifact/IArtifactRepository.java16
-rw-r--r--bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/p2/repository/artifact/spi/AbstractArtifactRepository.java8
3 files changed, 25 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.p2.repository/META-INF/MANIFEST.MF b/bundles/org.eclipse.equinox.p2.repository/META-INF/MANIFEST.MF
index 63428ef07..2fdf3fce4 100644
--- a/bundles/org.eclipse.equinox.p2.repository/META-INF/MANIFEST.MF
+++ b/bundles/org.eclipse.equinox.p2.repository/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.equinox.p2.repository;singleton:=true
-Bundle-Version: 2.0.0.qualifier
+Bundle-Version: 2.1.0.qualifier
Bundle-Activator: org.eclipse.equinox.internal.p2.repository.Activator
Bundle-Vendor: %providerName
Bundle-Localization: plugin
diff --git a/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/p2/repository/artifact/IArtifactRepository.java b/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/p2/repository/artifact/IArtifactRepository.java
index ae46654d5..3e68f2b16 100644
--- a/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/p2/repository/artifact/IArtifactRepository.java
+++ b/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/p2/repository/artifact/IArtifactRepository.java
@@ -167,6 +167,22 @@ public interface IArtifactRepository extends IRepository<IArtifactKey> {
public void removeDescriptor(IArtifactKey key);
/**
+ * Remove the given list of artifact descriptors and their corresponding content
+ * in this repository.
+ * @param descriptors the list of descriptors to remove
+ * @since 2.1
+ */
+ public void removeDescriptors(IArtifactDescriptor[] descriptors);
+
+ /**
+ * Remove the given list of keys and all related content and descriptors from this
+ * repository.
+ * @param keys
+ * @since 2.1
+ */
+ public void removeDescriptors(IArtifactKey[] keys);
+
+ /**
* Executes a runnable against this repository. It is up to the repository
* implementor to determine what "batch process" means, for example, it may mean
* that the repository index is not stored until after the runnable completes.
diff --git a/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/p2/repository/artifact/spi/AbstractArtifactRepository.java b/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/p2/repository/artifact/spi/AbstractArtifactRepository.java
index 692c66fab..60626e4d7 100644
--- a/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/p2/repository/artifact/spi/AbstractArtifactRepository.java
+++ b/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/p2/repository/artifact/spi/AbstractArtifactRepository.java
@@ -63,10 +63,18 @@ public abstract class AbstractArtifactRepository extends AbstractRepository<IArt
assertModifiable();
}
+ public void removeDescriptors(IArtifactDescriptor[] descriptors) {
+ assertModifiable();
+ }
+
public void removeDescriptor(IArtifactKey key) {
assertModifiable();
}
+ public void removeDescriptors(IArtifactKey[] keys) {
+ assertModifiable();
+ }
+
public void removeAll() {
assertModifiable();
}

Back to the top