portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vku...@apache.org
Subject svn commit: r732362 - in /portals/jetspeed-2/portal/trunk: components/jetspeed-security/src/main/java/org/apache/jetspeed/security/impl/ components/jetspeed-security/src/test/java/org/apache/jetspeed/security/stubs/ jetspeed-api/src/main/java/org/apach...
Date Wed, 07 Jan 2009 15:29:42 GMT
Author: vkumar
Date: Wed Jan  7 07:29:42 2009
New Revision: 732362

URL: http://svn.apache.org/viewvc?rev=732362&view=rev
Log:
Improving Listeners in Principal Mangers and mock methods in Stubs

Modified:
    portals/jetspeed-2/portal/trunk/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/impl/BaseJetspeedPrincipalManager.java
    portals/jetspeed-2/portal/trunk/components/jetspeed-security/src/test/java/org/apache/jetspeed/security/stubs/StubJetspeedPrincipalManager.java
    portals/jetspeed-2/portal/trunk/jetspeed-api/src/main/java/org/apache/jetspeed/security/JetspeedPrincipalManager.java

Modified: portals/jetspeed-2/portal/trunk/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/impl/BaseJetspeedPrincipalManager.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/impl/BaseJetspeedPrincipalManager.java?rev=732362&r1=732361&r2=732362&view=diff
==============================================================================
--- portals/jetspeed-2/portal/trunk/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/impl/BaseJetspeedPrincipalManager.java
(original)
+++ portals/jetspeed-2/portal/trunk/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/impl/BaseJetspeedPrincipalManager.java
Wed Jan  7 07:29:42 2009
@@ -343,11 +343,11 @@
     }
 
     /**
-     * addListener - add principal manager event listener
+     * ssetListener - add principal manager event listener
      *
      * @param listener principal manager event listener
      */
-    public void setListener(PrincipalManagerEventListener listener)
+    public void addListener(PrincipalManagerEventListener listener)
     {
         // add listener to listeners list
         synchronized (listeners)
@@ -355,7 +355,7 @@
             listeners.add(listener);
         }
     }
-
+       
     /**
      * removeListener - remove principal manager event listener
      *

Modified: portals/jetspeed-2/portal/trunk/components/jetspeed-security/src/test/java/org/apache/jetspeed/security/stubs/StubJetspeedPrincipalManager.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/components/jetspeed-security/src/test/java/org/apache/jetspeed/security/stubs/StubJetspeedPrincipalManager.java?rev=732362&r1=732361&r2=732362&view=diff
==============================================================================
--- portals/jetspeed-2/portal/trunk/components/jetspeed-security/src/test/java/org/apache/jetspeed/security/stubs/StubJetspeedPrincipalManager.java
(original)
+++ portals/jetspeed-2/portal/trunk/components/jetspeed-security/src/test/java/org/apache/jetspeed/security/stubs/StubJetspeedPrincipalManager.java
Wed Jan  7 07:29:42 2009
@@ -27,6 +27,7 @@
 import org.apache.jetspeed.security.JetspeedPrincipalAssociationType;
 import org.apache.jetspeed.security.JetspeedPrincipalManager;
 import org.apache.jetspeed.security.JetspeedPrincipalType;
+import org.apache.jetspeed.security.PrincipalManagerEventListener;
 
 /**
  * @author <a href="mailto:ddam@apache.org">Dennis Dam</a>
@@ -208,5 +209,22 @@
         // TODO Auto-generated method stub
         
     }
-    
+
+    /* (non-Javadoc)
+     * @see org.apache.jetspeed.security.JetspeedPrincipalManager#addListener(org.apache.jetspeed.security.PrincipalManagerEventListener)
+     */
+    public void addListener(PrincipalManagerEventListener listener)
+    {
+        // TODO Auto-generated method stub
+        
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.jetspeed.security.JetspeedPrincipalManager#removeListener(org.apache.jetspeed.security.PrincipalManagerEventListener)
+     */
+    public void removeListener(PrincipalManagerEventListener listener)
+    {
+        // TODO Auto-generated method stub
+        
+    }    
 }

Modified: portals/jetspeed-2/portal/trunk/jetspeed-api/src/main/java/org/apache/jetspeed/security/JetspeedPrincipalManager.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/jetspeed-api/src/main/java/org/apache/jetspeed/security/JetspeedPrincipalManager.java?rev=732362&r1=732361&r2=732362&view=diff
==============================================================================
--- portals/jetspeed-2/portal/trunk/jetspeed-api/src/main/java/org/apache/jetspeed/security/JetspeedPrincipalManager.java
(original)
+++ portals/jetspeed-2/portal/trunk/jetspeed-api/src/main/java/org/apache/jetspeed/security/JetspeedPrincipalManager.java
Wed Jan  7 07:29:42 2009
@@ -146,8 +146,8 @@
     
     void removeAssociation(JetspeedPrincipal from, JetspeedPrincipal to, String associationName)
         throws SecurityException;
-    
-    void setListener(PrincipalManagerEventListener listener);
+           
+    void addListener(PrincipalManagerEventListener listener);
     
     void removeListener(PrincipalManagerEventListener listener);
 }



---------------------------------------------------------------------
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