You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by at...@apache.org on 2008/09/11 01:33:12 UTC
svn commit: r694064 -
/portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/impl/SecurityAttributeTypesImpl.java
Author: ate
Date: Wed Sep 10 16:33:11 2008
New Revision: 694064
URL: http://svn.apache.org/viewvc?rev=694064&view=rev
Log:
Maintain insertion order for (key) iterations of the attribute types.
This supports displaying/rendering the attribute type (names) in the order they were provided during construction time
Modified:
portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/impl/SecurityAttributeTypesImpl.java
Modified: portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/impl/SecurityAttributeTypesImpl.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/impl/SecurityAttributeTypesImpl.java?rev=694064&r1=694063&r2=694064&view=diff
==============================================================================
--- portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/impl/SecurityAttributeTypesImpl.java (original)
+++ portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/impl/SecurityAttributeTypesImpl.java Wed Sep 10 16:33:11 2008
@@ -18,6 +18,7 @@
import java.util.Collections;
import java.util.HashMap;
+import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
@@ -31,7 +32,7 @@
public class SecurityAttributeTypesImpl implements SecurityAttributeTypes
{
- private Map<String,SecurityAttributeType> securityAttributeTypes = new HashMap<String, SecurityAttributeType>();
+ private Map<String,SecurityAttributeType> securityAttributeTypes = new LinkedHashMap<String, SecurityAttributeType>();
private Map<String,Map<String,SecurityAttributeType>> categoriesMap = new HashMap<String,Map<String,SecurityAttributeType>>();
private boolean readOnly;
private boolean extendable;
@@ -49,7 +50,7 @@
Map<String,SecurityAttributeType> categoryMap = categoriesMap.get(type.getCategory());
if (categoryMap == null)
{
- categoryMap = new HashMap<String,SecurityAttributeType>();
+ categoryMap = new LinkedHashMap<String,SecurityAttributeType>();
categoriesMap.put(type.getCategory(), categoryMap);
}
categoryMap.put(type.getName(), type);
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org