From bb79c82aabfc7f6624ff6b97bddd654b02dabe7d Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Thu, 27 Mar 2014 06:01:50 +0000 Subject: [PATCH] fix facet creation git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1582198 13f79535-47bb-0310-9956-ffa450edef68 --- .../repository/cassandra/CassandraMetadataRepository.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/archiva-modules/plugins/metadata-store-cassandra/src/main/java/org/apache/archiva/metadata/repository/cassandra/CassandraMetadataRepository.java b/archiva-modules/plugins/metadata-store-cassandra/src/main/java/org/apache/archiva/metadata/repository/cassandra/CassandraMetadataRepository.java index 246651e33..da38d0e8e 100644 --- a/archiva-modules/plugins/metadata-store-cassandra/src/main/java/org/apache/archiva/metadata/repository/cassandra/CassandraMetadataRepository.java +++ b/archiva-modules/plugins/metadata-store-cassandra/src/main/java/org/apache/archiva/metadata/repository/cassandra/CassandraMetadataRepository.java @@ -1061,7 +1061,7 @@ public class CassandraMetadataRepository MetadataFacetFactory metadataFacetFactory = metadataFacetFactories.get( entry.getKey() ); if ( metadataFacetFactory != null ) { - MetadataFacet metadataFacet = metadataFacetFactory.createMetadataFacet( repoId, entry.getKey() ); + MetadataFacet metadataFacet = metadataFacetFactory.createMetadataFacet( ); metadataFacet.fromProperties( entry.getValue() ); projectVersionMetadata.addFacet( metadataFacet ); } @@ -2113,8 +2113,7 @@ public class CassandraMetadataRepository List facetModels = entry.getValue(); if ( !facetModels.isEmpty() ) { - MetadataFacet metadataFacet = - metadataFacetFactory.createMetadataFacet( repoId, facetModels.get( 0 ).getName() ); + MetadataFacet metadataFacet = metadataFacetFactory.createMetadataFacet(); Map props = new HashMap( facetModels.size() ); for ( MetadataFacetModel metadataFacetModel : facetModels ) { -- 2.39.5