summaryrefslogtreecommitdiffstats
path: root/archiva-modules/metadata/metadata-model/src
diff options
context:
space:
mode:
authorBrett Porter <brett@apache.org>2010-03-17 05:35:59 +0000
committerBrett Porter <brett@apache.org>2010-03-17 05:35:59 +0000
commit79189ae0eab00143cab7632b23abe23d0c259b01 (patch)
treef2e8112607c867050cb15717c42d1f5ad9a10906 /archiva-modules/metadata/metadata-model/src
parent2e9c35d4aa247c1c1d12213e6d4261b25db69d9f (diff)
downloadarchiva-79189ae0eab00143cab7632b23abe23d0c259b01.tar.gz
archiva-79189ae0eab00143cab7632b23abe23d0c259b01.zip
[MRM-1366] restore missing method
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@924162 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/metadata/metadata-model/src')
-rw-r--r--archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/FacetedMetadata.java12
1 files changed, 12 insertions, 0 deletions
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<String, MetadataFacet> getFacets()
+ {
+ return Collections.unmodifiableMap( facets );
+ }
}