directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vte...@apache.org
Subject svn commit: r123105 - in incubator/directory/janus/trunk/core/impl/src/java/org/apache/janus/authentication: . attribute realm
Date Wed, 22 Dec 2004 15:03:00 GMT
Author: vtence
Date: Wed Dec 22 07:02:59 2004
New Revision: 123105

URL: http://svn.apache.org/viewcvs?view=rev&rev=123105
Log:
Made principals serializable
Modified:
   incubator/directory/janus/trunk/core/impl/src/java/org/apache/janus/authentication/AbstractPrincipal.java
   incubator/directory/janus/trunk/core/impl/src/java/org/apache/janus/authentication/attribute/GroupPrincipal.java
   incubator/directory/janus/trunk/core/impl/src/java/org/apache/janus/authentication/attribute/RolePrincipal.java
   incubator/directory/janus/trunk/core/impl/src/java/org/apache/janus/authentication/realm/UsernamePrincipal.java

Modified: incubator/directory/janus/trunk/core/impl/src/java/org/apache/janus/authentication/AbstractPrincipal.java
Url: http://svn.apache.org/viewcvs/incubator/directory/janus/trunk/core/impl/src/java/org/apache/janus/authentication/AbstractPrincipal.java?view=diff&rev=123105&p1=incubator/directory/janus/trunk/core/impl/src/java/org/apache/janus/authentication/AbstractPrincipal.java&r1=123104&p2=incubator/directory/janus/trunk/core/impl/src/java/org/apache/janus/authentication/AbstractPrincipal.java&r2=123105
==============================================================================
--- incubator/directory/janus/trunk/core/impl/src/java/org/apache/janus/authentication/AbstractPrincipal.java
(original)
+++ incubator/directory/janus/trunk/core/impl/src/java/org/apache/janus/authentication/AbstractPrincipal.java
Wed Dec 22 07:02:59 2004
@@ -26,7 +26,11 @@
  */
 public abstract class AbstractPrincipal implements Principal
 {
-    private final String m_name;
+    private String m_name;
+
+    protected AbstractPrincipal()
+    {
+    }
 
     public AbstractPrincipal( String name )
     {
@@ -35,6 +39,11 @@
         {
             throw new IllegalArgumentException( "Empty name" );
         }
+        m_name = name;
+    }
+
+    protected void setName( String name )
+    {
         m_name = name;
     }
 

Modified: incubator/directory/janus/trunk/core/impl/src/java/org/apache/janus/authentication/attribute/GroupPrincipal.java
Url: http://svn.apache.org/viewcvs/incubator/directory/janus/trunk/core/impl/src/java/org/apache/janus/authentication/attribute/GroupPrincipal.java?view=diff&rev=123105&p1=incubator/directory/janus/trunk/core/impl/src/java/org/apache/janus/authentication/attribute/GroupPrincipal.java&r1=123104&p2=incubator/directory/janus/trunk/core/impl/src/java/org/apache/janus/authentication/attribute/GroupPrincipal.java&r2=123105
==============================================================================
--- incubator/directory/janus/trunk/core/impl/src/java/org/apache/janus/authentication/attribute/GroupPrincipal.java
(original)
+++ incubator/directory/janus/trunk/core/impl/src/java/org/apache/janus/authentication/attribute/GroupPrincipal.java
Wed Dec 22 07:02:59 2004
@@ -18,11 +18,17 @@
 
 import org.apache.janus.authentication.AbstractPrincipal;
 
+import java.io.Serializable;
+
 /**
  * @author <a href="mailto:vtence@apache.org">Vincent Tence</a>
  */
-public class GroupPrincipal extends AbstractPrincipal
+public class GroupPrincipal extends AbstractPrincipal implements Serializable
 {
+    protected GroupPrincipal()
+    {
+    }
+
     public GroupPrincipal( String name )
     {
         super( name );

Modified: incubator/directory/janus/trunk/core/impl/src/java/org/apache/janus/authentication/attribute/RolePrincipal.java
Url: http://svn.apache.org/viewcvs/incubator/directory/janus/trunk/core/impl/src/java/org/apache/janus/authentication/attribute/RolePrincipal.java?view=diff&rev=123105&p1=incubator/directory/janus/trunk/core/impl/src/java/org/apache/janus/authentication/attribute/RolePrincipal.java&r1=123104&p2=incubator/directory/janus/trunk/core/impl/src/java/org/apache/janus/authentication/attribute/RolePrincipal.java&r2=123105
==============================================================================
--- incubator/directory/janus/trunk/core/impl/src/java/org/apache/janus/authentication/attribute/RolePrincipal.java
(original)
+++ incubator/directory/janus/trunk/core/impl/src/java/org/apache/janus/authentication/attribute/RolePrincipal.java
Wed Dec 22 07:02:59 2004
@@ -18,11 +18,17 @@
 
 import org.apache.janus.authentication.AbstractPrincipal;
 
+import java.io.Serializable;
+
 /**
  * @author <a href="mailto:vtence@apache.org">Vincent Tence</a>
  */
-public class RolePrincipal extends AbstractPrincipal
+public class RolePrincipal extends AbstractPrincipal implements Serializable
 {
+    protected RolePrincipal()
+    {
+    }
+
     public RolePrincipal( String name )
     {
         super( name );

Modified: incubator/directory/janus/trunk/core/impl/src/java/org/apache/janus/authentication/realm/UsernamePrincipal.java
Url: http://svn.apache.org/viewcvs/incubator/directory/janus/trunk/core/impl/src/java/org/apache/janus/authentication/realm/UsernamePrincipal.java?view=diff&rev=123105&p1=incubator/directory/janus/trunk/core/impl/src/java/org/apache/janus/authentication/realm/UsernamePrincipal.java&r1=123104&p2=incubator/directory/janus/trunk/core/impl/src/java/org/apache/janus/authentication/realm/UsernamePrincipal.java&r2=123105
==============================================================================
--- incubator/directory/janus/trunk/core/impl/src/java/org/apache/janus/authentication/realm/UsernamePrincipal.java
(original)
+++ incubator/directory/janus/trunk/core/impl/src/java/org/apache/janus/authentication/realm/UsernamePrincipal.java
Wed Dec 22 07:02:59 2004
@@ -18,11 +18,17 @@
 
 import org.apache.janus.authentication.AbstractPrincipal;
 
+import java.io.Serializable;
+
 /**
  * @author <a href="mailto:directory-dev@incubator.apache.org">Apache Directory Project</a>
  */
-public class UsernamePrincipal extends AbstractPrincipal
+public class UsernamePrincipal extends AbstractPrincipal implements Serializable
 {
+    protected UsernamePrincipal()
+    {
+    }
+
     public UsernamePrincipal( String name )
     {
         super( name );

Mime
View raw message