]> source.dussan.org Git - archiva.git/commitdiff
[MRM-1366] restore missing method
authorBrett Porter <brett@apache.org>
Wed, 17 Mar 2010 05:35:59 +0000 (05:35 +0000)
committerBrett Porter <brett@apache.org>
Wed, 17 Mar 2010 05:35:59 +0000 (05:35 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@924162 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/FacetedMetadata.java

index 3024512f3fa6cc85a9ba9c33d6945dd7db190243..5e7d82d3c50c9a545444719f54d49b2ab883f026 100644 (file)
@@ -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<String, MetadataFacet> getFacets()
+    {
+        return Collections.unmodifiableMap( facets );
+    }
 }