Search in sources :

Example 6 with BusinessGroupEnvironment

use of org.olat.group.model.BusinessGroupEnvironment in project OpenOLAT by OpenOLAT.

the class PersistingCourseGroupManager method exportCourseBusinessGroups.

/**
 * @see org.olat.course.groupsandrights.CourseGroupManager#exportCourseBusinessGroups(java.io.File)
 */
@Override
public void exportCourseBusinessGroups(File fExportDirectory, CourseEnvironmentMapper courseEnv, boolean runtimeDatas, boolean backwardsCompatible) {
    File fExportFile = new File(fExportDirectory, LEARNINGGROUPEXPORT_XML);
    List<BGArea> areas = getAllAreas();
    List<BusinessGroup> groups = getAllBusinessGroups();
    BusinessGroupEnvironment bgEnv = new BusinessGroupEnvironment();
    bgEnv.getGroups().addAll(courseEnv.getGroups());
    bgEnv.getAreas().addAll(courseEnv.getAreas());
    businessGroupService.exportGroups(groups, areas, fExportFile, bgEnv, runtimeDatas, backwardsCompatible);
}
Also used : BusinessGroupEnvironment(org.olat.group.model.BusinessGroupEnvironment) BGArea(org.olat.group.area.BGArea) BusinessGroup(org.olat.group.BusinessGroup) File(java.io.File)

Aggregations

BusinessGroupEnvironment (org.olat.group.model.BusinessGroupEnvironment)6 File (java.io.File)4 BusinessGroup (org.olat.group.BusinessGroup)4 BGArea (org.olat.group.area.BGArea)4 IOException (java.io.IOException)2 Field (java.lang.reflect.Field)2 HashSet (java.util.HashSet)2 CollaborationTools (org.olat.collaboration.CollaborationTools)2 AssertException (org.olat.core.logging.AssertException)2 OLATRuntimeException (org.olat.core.logging.OLATRuntimeException)2 CourseEnvironmentMapper (org.olat.course.export.CourseEnvironmentMapper)2 BGAreaReference (org.olat.group.model.BGAreaReference)2 BusinessGroupReference (org.olat.group.model.BusinessGroupReference)2 RepositoryEntry (org.olat.repository.RepositoryEntry)2 OLATResource (org.olat.resource.OLATResource)2