portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r692415 - in /portals/jetspeed-2/portal/branches/security-refactoring: components/jetspeed-security/src/main/java/org/apache/jetspeed/security/impl/ jetspeed-api/src/main/java/org/apache/jetspeed/security/
Date Fri, 05 Sep 2008 11:54:09 GMT
Author: ate
Date: Fri Sep  5 04:54:08 2008
New Revision: 692415

URL: http://svn.apache.org/viewvc?rev=692415&view=rev
Log:
Adding access to JetspeedPrincipalType its target JetspeedPrincipal implementation class

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

Modified: portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/impl/JetspeedPrincipalTypeImpl.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/JetspeedPrincipalTypeImpl.java?rev=692415&r1=692414&r2=692415&view=diff
==============================================================================
--- portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/impl/JetspeedPrincipalTypeImpl.java
(original)
+++ portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/impl/JetspeedPrincipalTypeImpl.java
Fri Sep  5 04:54:08 2008
@@ -16,6 +16,7 @@
  */
 package org.apache.jetspeed.security.impl;
 
+import org.apache.jetspeed.security.JetspeedPrincipal;
 import org.apache.jetspeed.security.JetspeedPrincipalType;
 import org.apache.jetspeed.security.SecurityAttributeTypes;
 
@@ -25,13 +26,13 @@
 public class JetspeedPrincipalTypeImpl implements JetspeedPrincipalType
 {
     private String name;
-    private String className;
+    private Class<JetspeedPrincipal> principalClass;
     private SecurityAttributeTypes attributeTypes;
 
-    public JetspeedPrincipalTypeImpl(String name, String className, SecurityAttributeTypes
attributeTypes)
+    public JetspeedPrincipalTypeImpl(String name, String className, SecurityAttributeTypes
attributeTypes) throws ClassNotFoundException
     {
         this.name = name;
-        this.className = className;
+        this.principalClass = (Class<JetspeedPrincipal>)Class.forName(className);
         this.attributeTypes = attributeTypes;
     }
 
@@ -42,7 +43,12 @@
 
     public String getClassName()
     {
-        return className;
+        return principalClass.getName();
+    }
+    
+    public Class<JetspeedPrincipal> getPrincipalClass()
+    {
+        return principalClass;
     }
 
     public String getName()

Modified: portals/jetspeed-2/portal/branches/security-refactoring/jetspeed-api/src/main/java/org/apache/jetspeed/security/JetspeedPrincipalType.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/branches/security-refactoring/jetspeed-api/src/main/java/org/apache/jetspeed/security/JetspeedPrincipalType.java?rev=692415&r1=692414&r2=692415&view=diff
==============================================================================
--- portals/jetspeed-2/portal/branches/security-refactoring/jetspeed-api/src/main/java/org/apache/jetspeed/security/JetspeedPrincipalType.java
(original)
+++ portals/jetspeed-2/portal/branches/security-refactoring/jetspeed-api/src/main/java/org/apache/jetspeed/security/JetspeedPrincipalType.java
Fri Sep  5 04:54:08 2008
@@ -27,6 +27,8 @@
     String getName();
 
     String getClassName();
+    
+    Class<JetspeedPrincipal> getPrincipalClass();
 
     SecurityAttributeTypes getAttributeTypes();
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message