cz.muni.fi.rtc.ISImporter
Class PackageReader

java.lang.Object
  extended by cz.muni.fi.rtc.ISImporter.PackageReader

public class PackageReader
extends java.lang.Object

Parses the CSV export from "IS MUNI, baliky". The format is given by the system. The package names must be unique. This class does not check it.
Czech howto on exporting from the system: V zaznamniku ucitele "Export údajů o tématech přihlášených studentů" -> Vybrat pozadovany balik -> Typ vystupu: "Formát CSV pro Excel", Kodovani cestiny: "Kódování UTF-8"

Author:
honza

Constructor Summary
PackageReader()
           
 
Method Summary
 java.util.Set<cz.muni.fi.rtc.teacherWorkbench.model.Project> getProjects()
          Returns instances of project based on the imported file
 java.util.Set<cz.muni.fi.rtc.teacherWorkbench.model.ImportedPerson> getStudents()
          Returns the list of the students in this file.
static void main(java.lang.String[] args)
          Main method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PackageReader

public PackageReader()
Method Detail

main

public static void main(java.lang.String[] args)
Main method. 2 arguments expected. First is the path to the csv, second is path to the configuration

Parameters:
args - First is the path to the csv, second is path to the configuration

getStudents

public java.util.Set<cz.muni.fi.rtc.teacherWorkbench.model.ImportedPerson> getStudents()
Returns the list of the students in this file. Fields filled are: First name, Last name, Email File has to be parsed first

Returns:

getProjects

public java.util.Set<cz.muni.fi.rtc.teacherWorkbench.model.Project> getProjects()
Returns instances of project based on the imported file

Returns:
Set of projects ready to be put in the RTC