addons/koji/common/src/main/java/org/commonjava/indy/koji/content/IndyKojiContentProvider.java
public List<KojiArchiveInfo> listArchivesForBuild( Integer buildId, KojiSessionInfo session )
                    throws KojiClientException
    {
        KojiArchiveQuery query = new KojiArchiveQuery().withBuildId( buildId );
        return computeIfAbsent( KOJI_ARCHIVES_FOR_BUILD, Integer.class, List.class, buildId,
                                () -> {
                                    List<KojiArchiveInfo> archives = kojiClient.listArchives( query, session );
                                    kojiClient.enrichArchiveTypeInfo( archives, session );

                                    return archives;
                                } );
    }
public List<KojiArchiveInfo> listArchivesForBuild( Integer buildId, KojiSessionInfo session )
                    throws KojiClientException
    {
        KojiArchiveQuery query = new KojiArchiveQuery().withBuildId( buildId );
        return computeIfAbsent( KOJI_ARCHIVES_FOR_BUILD, Integer.class, List.class, buildId,
                                () -> {
                                    List<KojiArchiveInfo> archives = kojiClient.listArchives( query, session );
                                    kojiClient.enrichArchiveTypeInfo( archives, session );

                                    return archives;
                                } );
    }
public List < KojiArchiveInfo > listArchivesForBuild ( Integer buildId , KojiSessionInfo session ) throws KojiClientException { KojiArchiveQuery query = new KojiArchiveQuery ( ) . withBuildId ( buildId ) ; return computeIfAbsent ( KOJI_ARCHIVES_FOR_BUILD , Integer . class , List . class , buildId , ( ) -> { List < KojiArchiveInfo > archives = kojiClient . listArchives ( query , session ) ; kojiClient . enrichArchiveTypeInfo ( archives , session ) ; return archives ; } ) ; }
NOTE: This also enriches the archive results!
NOTE : This also enriches the archive results!