org.activemath.abstractcontent
Class SimpleMatriculation

java.lang.Object
  extended by org.activemath.abstractcontent.SimpleMatriculation
All Implemented Interfaces:
Matriculations

public class SimpleMatriculation
extends Object
implements Matriculations

A Simple Matriculation class to support some basic operations. The management of the privileges is based on files:
ACTIVEMATH_HOME/conf/MatriculationTable.xml
This file has to be edited by hand to change some preferences.


Field Summary
protected static boolean DEBUG
           
static Logger thisLogCat
           
 
Constructor Summary
SimpleMatriculation(Subconfiguration config)
           
 
Method Summary
 List getAlumnList(String courseID)
          A method to access all the alumns for a certain course.
 List getPrivilegesFor(String user)
          A method to access the privileges for a certain user.
 List getTeacherList(String courseID)
          A method to access all the teachers for a certain course.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

thisLogCat

public static Logger thisLogCat

DEBUG

protected static boolean DEBUG
Constructor Detail

SimpleMatriculation

public SimpleMatriculation(Subconfiguration config)
                    throws Exception
Throws:
Exception
Method Detail

getTeacherList

public List getTeacherList(String courseID)
Description copied from interface: Matriculations
A method to access all the teachers for a certain course.

Specified by:
getTeacherList in interface Matriculations
Returns:
the List of all teachers responsible for the course

getAlumnList

public List getAlumnList(String courseID)
Description copied from interface: Matriculations
A method to access all the alumns for a certain course.

Specified by:
getAlumnList in interface Matriculations
Returns:
the List of all alumns who are on the given course.

getPrivilegesFor

public List getPrivilegesFor(String user)
Description copied from interface: Matriculations
A method to access the privileges for a certain user. E.g.: is the user allowed to monitor exercises, is he allowed to change some symbol presentation etc....

Specified by:
getPrivilegesFor in interface Matriculations
Returns:
A list of all the privileges a user has.