protected abstract N getNextBuilder( );
+ @Override
public WithAssetBuilder<N> withRepository( ManagedRepositoryContent repository )
{
if ( repository == null )
return this;
}
+ @Override
public N withAsset( StorageAsset asset )
{
if ( asset == null )
return getNextBuilder( );
}
+ @Override
public O withAttribute( String key, String value )
{
if ( StringUtils.isEmpty( key ) )
( (ArchivaContentItem) item ).repository = repository;
}
+ @Override
public I build( )
{
return item;
}
}
+
+ @Override
+ public boolean exists( )
+ {
+ return asset.exists( );
+ }
}