aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-base/archiva-repository-layer
diff options
context:
space:
mode:
authorMartin Stockhammer <martin_s@apache.org>2020-02-17 22:19:15 +0100
committerMartin Stockhammer <martin_s@apache.org>2020-02-17 22:19:15 +0100
commitf64ef7fd2632f91d76eba221c2e3007dc8a9e8f8 (patch)
tree23f7974071a4a28440d91b54a20e8e214f50e1e5 /archiva-modules/archiva-base/archiva-repository-layer
parentc6a0e092383d85332da1c2aac07134604214f00c (diff)
downloadarchiva-f64ef7fd2632f91d76eba221c2e3007dc8a9e8f8.tar.gz
archiva-f64ef7fd2632f91d76eba221c2e3007dc8a9e8f8.zip
Adding exists method for content item
Diffstat (limited to 'archiva-modules/archiva-base/archiva-repository-layer')
-rw-r--r--archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/content/base/ArchivaContentItem.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/content/base/ArchivaContentItem.java b/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/content/base/ArchivaContentItem.java
index 58d333512..7e15d61be 100644
--- a/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/content/base/ArchivaContentItem.java
+++ b/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/content/base/ArchivaContentItem.java
@@ -181,6 +181,7 @@ public abstract class ArchivaContentItem implements ContentItem
protected abstract N getNextBuilder( );
+ @Override
public WithAssetBuilder<N> withRepository( ManagedRepositoryContent repository )
{
if ( repository == null )
@@ -191,6 +192,7 @@ public abstract class ArchivaContentItem implements ContentItem
return this;
}
+ @Override
public N withAsset( StorageAsset asset )
{
if ( asset == null )
@@ -201,6 +203,7 @@ public abstract class ArchivaContentItem implements ContentItem
return getNextBuilder( );
}
+ @Override
public O withAttribute( String key, String value )
{
if ( StringUtils.isEmpty( key ) )
@@ -216,10 +219,17 @@ public abstract class ArchivaContentItem implements ContentItem
( (ArchivaContentItem) item ).repository = repository;
}
+ @Override
public I build( )
{
return item;
}
}
+
+ @Override
+ public boolean exists( )
+ {
+ return asset.exists( );
+ }
}