From f4fc560e7162b814754976ba0feccc92037ee708 Mon Sep 17 00:00:00 2001
From: "Maria Odea B. Ching"
Date: Mon, 28 Apr 2008 02:17:44 +0000
Subject: [MRM-773] -added the constraints for getting the different versions
of a specific artifact -added the whenGathered field in beginScan(..) of
RepositoryContentConsumer interface and updated all implementing consumers
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@652043 13f79535-47bb-0310-9956-ffa450edef68
---
.../apache/maven/archiva/consumers/AbstractMonitoredConsumer.java | 4 +++-
.../apache/maven/archiva/consumers/RepositoryContentConsumer.java | 6 ++++--
2 files changed, 7 insertions(+), 3 deletions(-)
(limited to 'archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java')
diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/maven/archiva/consumers/AbstractMonitoredConsumer.java b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/maven/archiva/consumers/AbstractMonitoredConsumer.java
index 2e626bebc..7c306e1e0 100644
--- a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/maven/archiva/consumers/AbstractMonitoredConsumer.java
+++ b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/maven/archiva/consumers/AbstractMonitoredConsumer.java
@@ -36,7 +36,7 @@ public abstract class AbstractMonitoredConsumer
implements BaseConsumer
{
private Set monitors = new HashSet();
-
+
public void addConsumerMonitor( ConsumerMonitor monitor )
{
monitors.add( monitor );
@@ -104,4 +104,6 @@ public abstract class AbstractMonitoredConsumer
{
return FileTypes.DEFAULT_EXCLUSIONS;
}
+
+
}
diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/maven/archiva/consumers/RepositoryContentConsumer.java b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/maven/archiva/consumers/RepositoryContentConsumer.java
index b8d58dc46..9b23e1713 100644
--- a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/maven/archiva/consumers/RepositoryContentConsumer.java
+++ b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/maven/archiva/consumers/RepositoryContentConsumer.java
@@ -21,6 +21,7 @@ package org.apache.maven.archiva.consumers;
import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration;
+import java.util.Date;
import java.util.List;
/**
@@ -56,9 +57,10 @@ public interface RepositoryContentConsumer extends BaseConsumer
*
*
* @param repository the repository that this consumer is being used for.
+ * @param whenGathered the start of the repository scan
* @throws ConsumerException if there was a problem with using the provided repository with the consumer.
*/
- public void beginScan( ManagedRepositoryConfiguration repository ) throws ConsumerException;
+ public void beginScan( ManagedRepositoryConfiguration repository, Date whenGathered ) throws ConsumerException;
/**
*
@@ -95,5 +97,5 @@ public interface RepositoryContentConsumer extends BaseConsumer
* method.
* @return whether to process the unmodified files
*/
- boolean isProcessUnmodified();
+ boolean isProcessUnmodified();
}
--
cgit v1.2.3