Update of /var/cvs/src/org/mmbase/security
In directory james.mmbase.org:/tmp/cvs-serv21404

Modified Files:
        Authentication.java AuthenticationData.java 
Log Message:
I think requiring to return a Node, while not having an actula cloud object 
handy is a mistake. Changed it. Better changed too late, than wrong for ever.


See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/security


Index: Authentication.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/security/Authentication.java,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -b -r1.45 -r1.46
--- Authentication.java 23 Sep 2008 16:29:07 -0000      1.45
+++ Authentication.java 13 Nov 2008 15:12:33 -0000      1.46
@@ -24,7 +24,7 @@
  *
  * @author Eduard Witteveen
  * @author Michiel Meeuwissen (javadocs)
- * @version $Id: Authentication.java,v 1.45 2008/09/23 16:29:07 michiel Exp $
+ * @version $Id: Authentication.java,v 1.46 2008/11/13 15:12:33 michiel Exp $
  */
 public abstract class Authentication extends Configurable implements 
AuthenticationData {
     private static final Logger log = 
Logging.getLoggerInstance(Authentication.class);
@@ -73,9 +73,10 @@
      * [EMAIL PROTECTED]
      * @since MMBase-1.9
      */
-    public Node getNode(UserContext userContext) throws SecurityException, 
UnsupportedOperationException {
+    public int getNode(UserContext userContext) throws SecurityException, 
UnsupportedOperationException {
         throw new UnsupportedOperationException("This security implementation 
does not support mapping from Security usercontexts to MMBase nodes");
     }
+
     /**
      * [EMAIL PROTECTED]
      * @since MMBase-1.9


Index: AuthenticationData.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/security/AuthenticationData.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- AuthenticationData.java     5 Sep 2008 16:08:07 -0000       1.12
+++ AuthenticationData.java     13 Nov 2008 15:12:33 -0000      1.13
@@ -16,7 +16,7 @@
  * type of [EMAIL PROTECTED] org.mmbase.bridge.CloudContext#getAuthentication}.
  *
  * @author Michiel Meeuwissen
- * @version $Id: AuthenticationData.java,v 1.12 2008/09/05 16:08:07 michiel 
Exp $
+ * @version $Id: AuthenticationData.java,v 1.13 2008/11/13 15:12:33 michiel 
Exp $
  * @since MMBase-1.8
  */
 public interface AuthenticationData {
@@ -117,7 +117,7 @@
      * This method returns an MMBase node that corresponds with the given 
UserContext
      * @since MMBase-1.9
      */
-    Node getNode(UserContext userContext) throws SecurityException;
+    int getNode(UserContext userContext) throws SecurityException;
 
     /**
      * This method returns the builder name of the nodes that will be returned 
by the
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to