Author: ate
Date: Mon Sep  1 00:18:19 2008
New Revision: 690874

URL: http://svn.apache.org/viewvc?rev=690874&view=rev
Log:
Standardize access to (reserved) INFO category attributes supporting the 
Portlet API USER_INFO attributes.
This is now generalized for all JetspeedPrincipal types so mappable to similar 
(custom) features for roles, groups, etc. like ROLE_INFO, GROUP_INFO

Modified:
    
portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/impl/SecurityAttributesImpl.java
    
portals/jetspeed-2/portal/branches/security-refactoring/jetspeed-api/src/main/java/org/apache/jetspeed/security/SecurityAttributes.java

Modified: 
portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/impl/SecurityAttributesImpl.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/SecurityAttributesImpl.java?rev=690874&r1=690873&r2=690874&view=diff
==============================================================================
--- 
portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/impl/SecurityAttributesImpl.java
 (original)
+++ 
portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/impl/SecurityAttributesImpl.java
 Mon Sep  1 00:18:19 2008
@@ -132,6 +132,11 @@
         }
         return Collections.unmodifiableMap(map);
     }
+    
+    public Map<String, SecurityAttribute> getInfoAttributeMap()
+    {
+        return getAttributeMap(INFO_CATEGORY);
+    }
 
     public SecurityAttribute getAttribute(String name)
     {

Modified: 
portals/jetspeed-2/portal/branches/security-refactoring/jetspeed-api/src/main/java/org/apache/jetspeed/security/SecurityAttributes.java
URL: 
http://svn.apache.org/viewvc/portals/jetspeed-2/portal/branches/security-refactoring/jetspeed-api/src/main/java/org/apache/jetspeed/security/SecurityAttributes.java?rev=690874&r1=690873&r2=690874&view=diff
==============================================================================
--- 
portals/jetspeed-2/portal/branches/security-refactoring/jetspeed-api/src/main/java/org/apache/jetspeed/security/SecurityAttributes.java
 (original)
+++ 
portals/jetspeed-2/portal/branches/security-refactoring/jetspeed-api/src/main/java/org/apache/jetspeed/security/SecurityAttributes.java
 Mon Sep  1 00:18:19 2008
@@ -44,6 +44,8 @@
 
     Map<String, SecurityAttribute> getAttributeMap(String category);
     
+    Map<String, SecurityAttribute> getInfoAttributeMap();
+
     SecurityAttribute getAttribute(String name);
 
     SecurityAttribute addAttribute(String name)



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to