Update of /var/cvs/contributions/didactor2/src/core/java/nl/didactor/functions
In directory james.mmbase.org:/tmp/cvs-serv19483/core/java/nl/didactor/functions

Modified Files:
        PeopleClassFunction.java 
Log Message:
moved 'LessonChecker' to a bit simple location. (dropped education_menu/utils 
which did not add anything usefull, actually, I do not understand what it has 
to do with menus how this would be more a util then anything else)


See also: 
http://cvs.mmbase.org/viewcvs/contributions/didactor2/src/core/java/nl/didactor/functions


Index: PeopleClassFunction.java
===================================================================
RCS file: 
/var/cvs/contributions/didactor2/src/core/java/nl/didactor/functions/PeopleClassFunction.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- PeopleClassFunction.java    17 Nov 2008 17:37:37 -0000      1.8
+++ PeopleClassFunction.java    4 Dec 2008 11:14:40 -0000       1.9
@@ -12,7 +12,7 @@
 /**
  * Some didactor specific Node functions (implemented as 'bean')
  * @author Michiel Meeuwissen
- * @version $Id: PeopleClassFunction.java,v 1.8 2008/11/17 17:37:37 michiel 
Exp $
+ * @version $Id: PeopleClassFunction.java,v 1.9 2008/12/04 11:14:40 michiel 
Exp $
  */
 public class PeopleClassFunction {
     protected final static Logger log = 
Logging.getLoggerInstance(PeopleClassFunction.class);
@@ -30,7 +30,9 @@
     }
 
 
-
+    /**
+     * Returns all classes asociated with a certain user.
+     */
     public NodeList peopleClasses() {
         Cloud cloud = node.getCloud();
         if (e == -1) {
@@ -51,6 +53,7 @@
         RelationStep step = 
query.addRelationStep(cloud.getNodeManager("educations"), null, null);
         Queries.addConstraint(query, 
query.createConstraint(query.createStepField(step.getNext(),"number"), 
education.getNumber()));
         NodeList foundClasses = classes.getList(query);
+        log.debug("Classes " + foundClasses + " found with " + query.toSql());
         return foundClasses;
     }
 
@@ -93,7 +96,7 @@
     public Set<Node> blockedLearnBlocks() throws NoSuchMethodException, 
IllegalAccessException, InvocationTargetException{
         // A user can have access to only "opened" top learnblocks (lession)
         try {
-            Class classLessonChecker = 
Class.forName("nl.didactor.component.assessment.education_menu.utils.LessonChecker");
+            Class classLessonChecker = 
Class.forName("nl.didactor.component.assessment.LessonChecker");
             Method method = 
classLessonChecker.getMethod("getBlockedLearnblocksForThisUser", Node.class, 
Node.class);
             return (Set<Node>) method.invoke(null, node.getCloud().getNode(e), 
node);
         } catch (ClassNotFoundException cnfe) {
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to