aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-base/archiva-proxy-api/src
diff options
context:
space:
mode:
authorJonathan Sharp <forjsharp@gmail.com>2014-10-17 15:23:47 -0700
committerJonathan Sharp <forjsharp@gmail.com>2014-10-17 15:23:47 -0700
commit7c9267111a4eb6b8a47b8b4891af98c487dd0c9b (patch)
tree28731e9883086797a8f854170a86b06b8b91584d /archiva-modules/archiva-base/archiva-proxy-api/src
parentd3687d86b46a9638a8bc74c1e24aeb829947cf8c (diff)
downloadarchiva-7c9267111a4eb6b8a47b8b4891af98c487dd0c9b.tar.gz
archiva-7c9267111a4eb6b8a47b8b4891af98c487dd0c9b.zip
MRM-813 tweak APC interface and ADRF AuditEvents
Diffstat (limited to 'archiva-modules/archiva-base/archiva-proxy-api/src')
-rw-r--r--archiva-modules/archiva-base/archiva-proxy-api/src/main/java/org/apache/archiva/proxy/model/ProxyFetchResult.java48
-rw-r--r--archiva-modules/archiva-base/archiva-proxy-api/src/main/java/org/apache/archiva/proxy/model/RepositoryProxyConnectors.java2
2 files changed, 49 insertions, 1 deletions
diff --git a/archiva-modules/archiva-base/archiva-proxy-api/src/main/java/org/apache/archiva/proxy/model/ProxyFetchResult.java b/archiva-modules/archiva-base/archiva-proxy-api/src/main/java/org/apache/archiva/proxy/model/ProxyFetchResult.java
new file mode 100644
index 000000000..28c2af074
--- /dev/null
+++ b/archiva-modules/archiva-base/archiva-proxy-api/src/main/java/org/apache/archiva/proxy/model/ProxyFetchResult.java
@@ -0,0 +1,48 @@
+package org.apache.archiva.proxy.model;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import java.io.File;
+
+/**
+ * A result from a proxy fetch operation.
+ */
+public class ProxyFetchResult
+{
+
+ //The file returned
+ File file;
+
+ //Was the local file modified by the fetch?
+ boolean modified;
+
+ public ProxyFetchResult( File file, boolean modified) {
+ this.file = file;
+ this.modified = modified;
+ }
+
+ public File getFile() {
+ return file;
+ }
+
+ public boolean isModified() {
+ return modified;
+ }
+}
diff --git a/archiva-modules/archiva-base/archiva-proxy-api/src/main/java/org/apache/archiva/proxy/model/RepositoryProxyConnectors.java b/archiva-modules/archiva-base/archiva-proxy-api/src/main/java/org/apache/archiva/proxy/model/RepositoryProxyConnectors.java
index 37b373219..e63f62393 100644
--- a/archiva-modules/archiva-base/archiva-proxy-api/src/main/java/org/apache/archiva/proxy/model/RepositoryProxyConnectors.java
+++ b/archiva-modules/archiva-base/archiva-proxy-api/src/main/java/org/apache/archiva/proxy/model/RepositoryProxyConnectors.java
@@ -59,7 +59,7 @@ public interface RepositoryProxyConnectors
* @param logicalPath the metadata to fetch.
* @return the file that was obtained, or null if no content was obtained
*/
- File fetchMetatadaFromProxies( ManagedRepositoryContent repository, String logicalPath );
+ ProxyFetchResult fetchMetadataFromProxies( ManagedRepositoryContent repository, String logicalPath );
/**
* Performs the fetch operation against the target repositories