Search in sources :

Example 16 with CourseSiteConfiguration

use of org.olat.course.site.model.CourseSiteConfiguration in project OpenOLAT by OpenOLAT.

the class CourseSiteDef4 method getCourseSiteconfiguration.

@Override
protected CourseSiteConfiguration getCourseSiteconfiguration() {
    SiteDefinitions siteModule = CoreSpringFactory.getImpl(SiteDefinitions.class);
    CourseSiteConfiguration config = siteModule.getConfigurationCourseSite4();
    return config;
}
Also used : CourseSiteConfiguration(org.olat.course.site.model.CourseSiteConfiguration) SiteDefinitions(org.olat.core.gui.control.navigation.SiteDefinitions)

Example 17 with CourseSiteConfiguration

use of org.olat.course.site.model.CourseSiteConfiguration in project openolat by klemens.

the class SitesAdminController method doCourseSite2Settings.

private void doCourseSite2Settings(UserRequest ureq) {
    if (courseSite2Ctrl == null) {
        CourseSiteConfiguration siteConfiguration = sitesModule.getConfigurationCourseSite2();
        if (siteConfiguration == null) {
            siteConfiguration = new CourseSiteConfiguration();
        }
        courseSite2Ctrl = new CourseSiteAdminController(ureq, getWindowControl(), siteConfiguration);
        listenTo(courseSite2Ctrl);
    }
    mainVC.put("segmentCmp", courseSite2Ctrl.getInitialComponent());
}
Also used : CourseSiteConfiguration(org.olat.course.site.model.CourseSiteConfiguration) CourseSiteAdminController(org.olat.course.site.ui.CourseSiteAdminController)

Example 18 with CourseSiteConfiguration

use of org.olat.course.site.model.CourseSiteConfiguration in project openolat by klemens.

the class SitesAdminController method doCourseSite3Settings.

private void doCourseSite3Settings(UserRequest ureq) {
    if (courseSite3Ctrl == null) {
        CourseSiteConfiguration siteConfiguration = sitesModule.getConfigurationCourseSite3();
        if (siteConfiguration == null) {
            siteConfiguration = new CourseSiteConfiguration();
        }
        courseSite3Ctrl = new CourseSiteAdminController(ureq, getWindowControl(), siteConfiguration);
        listenTo(courseSite3Ctrl);
    }
    mainVC.put("segmentCmp", courseSite3Ctrl.getInitialComponent());
}
Also used : CourseSiteConfiguration(org.olat.course.site.model.CourseSiteConfiguration) CourseSiteAdminController(org.olat.course.site.ui.CourseSiteAdminController)

Example 19 with CourseSiteConfiguration

use of org.olat.course.site.model.CourseSiteConfiguration in project openolat by klemens.

the class CourseSiteDef4 method getCourseSiteconfiguration.

@Override
protected CourseSiteConfiguration getCourseSiteconfiguration() {
    SiteDefinitions siteModule = CoreSpringFactory.getImpl(SiteDefinitions.class);
    CourseSiteConfiguration config = siteModule.getConfigurationCourseSite4();
    return config;
}
Also used : CourseSiteConfiguration(org.olat.course.site.model.CourseSiteConfiguration) SiteDefinitions(org.olat.core.gui.control.navigation.SiteDefinitions)

Example 20 with CourseSiteConfiguration

use of org.olat.course.site.model.CourseSiteConfiguration in project openolat by klemens.

the class CourseSiteContextEntryControllerCreator method getCourseSite.

private CourseSiteDef getCourseSite(UserRequest ureq, RepositoryEntry re) {
    if (re == null)
        return null;
    List<SiteDefinition> siteDefList = getSitesDefinitions().getSiteDefList();
    for (SiteDefinition siteDef : siteDefList) {
        if (siteDef instanceof CourseSiteDef) {
            CourseSiteDef courseSiteDef = (CourseSiteDef) siteDef;
            CourseSiteConfiguration config = courseSiteDef.getCourseSiteconfiguration();
            LanguageConfiguration langConfig = courseSiteDef.getLanguageConfiguration(ureq, config);
            if (langConfig == null)
                continue;
            String softKey = langConfig.getRepoSoftKey();
            if (re.getSoftkey() != null && re.getSoftkey().equals(softKey)) {
                return courseSiteDef;
            }
        }
    }
    return null;
}
Also used : SiteDefinition(org.olat.core.gui.control.navigation.SiteDefinition) CourseSiteConfiguration(org.olat.course.site.model.CourseSiteConfiguration) LanguageConfiguration(org.olat.course.site.model.LanguageConfiguration)

Aggregations

CourseSiteConfiguration (org.olat.course.site.model.CourseSiteConfiguration)20 SiteDefinitions (org.olat.core.gui.control.navigation.SiteDefinitions)8 CourseSiteAdminController (org.olat.course.site.ui.CourseSiteAdminController)8 SiteDefinition (org.olat.core.gui.control.navigation.SiteDefinition)4 LanguageConfiguration (org.olat.course.site.model.LanguageConfiguration)4 OLATResourceable (org.olat.core.id.OLATResourceable)2 RepositoryEntry (org.olat.repository.RepositoryEntry)2 RepositoryManager (org.olat.repository.RepositoryManager)2