From 79189ae0eab00143cab7632b23abe23d0c259b01 Mon Sep 17 00:00:00 2001 From: Brett Porter Date: Wed, 17 Mar 2010 05:35:59 +0000 Subject: [PATCH] [MRM-1366] restore missing method git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@924162 13f79535-47bb-0310-9956-ffa450edef68 --- .../archiva/metadata/model/FacetedMetadata.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/FacetedMetadata.java b/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/FacetedMetadata.java index 3024512f3..5e7d82d3c 100644 --- a/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/FacetedMetadata.java +++ b/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/FacetedMetadata.java @@ -20,6 +20,7 @@ package org.apache.archiva.metadata.model; */ import java.util.Collection; +import java.util.Collections; import java.util.HashMap; import java.util.Map; @@ -73,4 +74,15 @@ public abstract class FacetedMetadata { return this.facets.keySet(); } + + /** + * Get all available facets as a Map (typically used by bean rendering, such as in Archiva's JSPs). + + * @return the map of facets + * @see #facets + */ + public Map getFacets() + { + return Collections.unmodifiableMap( facets ); + } } -- 2.39.5