archiva-modules/archiva-maven/archiva-maven-repository/src/main/java/org/apache/archiva/repository/maven/content/ManagedDefaultRepositoryContent.java
/**
     * Returns all related artifacts that match the given artifact. That means all artifacts that have
     * the same filename plus an additional extension, e.g. ${fileName}.sha2
     * @param item the artifact
     * @return the stream of artifacts
     * @throws ContentAccessException
     */
Returns all related artifacts that match the given artifact. That means all artifacts that have
the same filename plus an additional extension, e.g. ${fileName}.sha2
@param item the artifact
@return the stream of artifacts
@throws ContentAccessException
Returns all related artifacts that match the given artifact . That means all artifacts that have the same filename plus an additional extension e . g . $ { fileName } . sha2 @param item the artifact @return the stream of artifacts @throws ContentAccessException
public Stream<? extends Artifact> newArtifactStream( Artifact item ) throws ContentAccessException
    {
        final Version v = item.getVersion( );
        final String fileName = item.getFileName( );
        final Predicate<StorageAsset> filter = ( StorageAsset a ) ->
            a.getName( ).startsWith( fileName + "." );
        return v.getAsset( ).list( ).stream( ).filter( filter )
            .map( a -> getArtifactFromPath( a ) );
    }
public Stream < ? extends Artifact > newArtifactStream ( Artifact item ) throws ContentAccessException { final Version v = item . getVersion ( ) ; final String fileName = item . getFileName ( ) ; final Predicate < StorageAsset > filter = ( StorageAsset a ) -> a . getName ( ) . startsWith ( fileName + "." ) ; return v . getAsset ( ) . list ( ) . stream ( ) . filter ( filter ) . map ( a -> getArtifactFromPath ( a ) ) ; }
Returns all related artifacts that match the given artifact.
Returns all related artifacts that match the given artifact .