cz.muni.fi.rtc.teacherWorkbench.importer
Class ProjectImporter

java.lang.Object
  extended by cz.muni.fi.rtc.teacherWorkbench.importer.ProjectImporter

public class ProjectImporter
extends java.lang.Object


Constructor Summary
ProjectImporter(ImporterConfiguration conf)
          Constructor.
 
Method Summary
 void importProjects(java.util.Collection<Project> projects)
          Imports the given projects to the RTC repository
Exceptions thrown during creation of the projects are logged under the level error and are not thrown
Invitation is sent to the users only if they are not in the root category (root category users are meant to be teachers and therefore we don't send the invitations to them)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectImporter

public ProjectImporter(ImporterConfiguration conf)
                throws ImporterException
Constructor.

Parameters:
conf - Configuration
Throws:
ImporterException - if the configuration misses some mandatory fields
Method Detail

importProjects

public void importProjects(java.util.Collection<Project> projects)
                    throws ImporterException
Imports the given projects to the RTC repository
Exceptions thrown during creation of the projects are logged under the level error and are not thrown
Invitation is sent to the users only if they are not in the root category (root category users are meant to be teachers and therefore we don't send the invitations to them)

Parameters:
projects - Projects to add
Throws:
ImporterException - If some of the mandatory fields are not filled. It fails atomically in this case -- no hanges written to RTC.