archiva-modules/archiva-maven/archiva-maven-repository/src/main/java/org/apache/archiva/repository/maven/content/ManagedDefaultRepositoryContent.java
/**
     * Returns the stream of artifacts that are children of the given item.
     *
     * @param item the item from where the artifacts should be returned
     * @return
     * @throws ContentAccessException
     */
Returns the stream of artifacts that are children of the given item.
@param item the item from where the artifacts should be returned
@return
@throws ContentAccessException
Returns the stream of artifacts that are children of the given item . @param item the item from where the artifacts should be returned @return @throws ContentAccessException
@Override
    public Stream<? extends Artifact> newArtifactStream( ContentItem item ) throws ContentAccessException
    {
        if (item instanceof Namespace) {
            return newArtifactStream( ( (Namespace) item ) );
        } else if (item instanceof Project) {
            return newArtifactStream( (Project) item );
        } else if (item instanceof Version) {
            return newArtifactStream( (Version) item );
        } else if (item instanceof Artifact) {
            return newArtifactStream( (Artifact) item );
        } else
        {
            log.warn( "newArtifactStream for unsupported item requested: {}", item.getClass( ).getName( ) );
            return Stream.empty( );
        }
    }
@ Override public Stream < ? extends Artifact > newArtifactStream ( ContentItem item ) throws ContentAccessException { if ( item instanceof Namespace ) { return newArtifactStream ( ( ( Namespace ) item ) ) ; } else if ( item instanceof Project ) { return newArtifactStream ( ( Project ) item ) ; } else if ( item instanceof Version ) { return newArtifactStream ( ( Version ) item ) ; } else if ( item instanceof Artifact ) { return newArtifactStream ( ( Artifact ) item ) ; } else { log . warn ( "newArtifactStream for unsupported item requested: {}" , item . getClass ( ) . getName ( ) ) ; return Stream . empty ( ) ; } }
Returns the stream of artifacts that are children of the given item.
Returns the stream of artifacts that are children of the given item .