Update of /var/cvs/contributions/didactor2/src/core/java/nl/didactor/functions
In directory james.mmbase.org:/tmp/cvs-serv27243/functions
Modified Files:
PeopleClassFunction.java
Log Message:
Drpped silly function wrapper with reflection. Will simply defined the function
directly using MethodFunction (which is pretty ok now we have java 5)
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.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- PeopleClassFunction.java 4 Dec 2008 11:14:40 -0000 1.9
+++ PeopleClassFunction.java 4 Dec 2008 15:25:11 -0000 1.10
@@ -12,7 +12,7 @@
/**
* Some didactor specific Node functions (implemented as 'bean')
* @author Michiel Meeuwissen
- * @version $Id: PeopleClassFunction.java,v 1.9 2008/12/04 11:14:40 michiel
Exp $
+ * @version $Id: PeopleClassFunction.java,v 1.10 2008/12/04 15:25:11 michiel
Exp $
*/
public class PeopleClassFunction {
protected final static Logger log =
Logging.getLoggerInstance(PeopleClassFunction.class);
@@ -93,19 +93,6 @@
}
- 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.LessonChecker");
- Method method =
classLessonChecker.getMethod("getBlockedLearnblocksForThisUser", Node.class,
Node.class);
- return (Set<Node>) method.invoke(null, node.getCloud().getNode(e),
node);
- } catch (ClassNotFoundException cnfe) {
- log.debug(cnfe);
- // if assessment not installed, then no learnblocks are blocked.
- return new HashSet<Node>();
- }
- }
-
}
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs