Search in sources :

Example 6 with SiteDefinitions

use of org.olat.core.gui.control.navigation.SiteDefinitions in project openolat by klemens.

the class GuestBFWCParts method getSiteInstances.

/**
 * @see org.olat.core.commons.fullWebApp.BaseFullWebappControllerParts#getSiteInstances(org.olat.core.gui.UserRequest, org.olat.core.gui.control.WindowControl)
 */
@Override
public List<SiteInstance> getSiteInstances(UserRequest ureq, WindowControl wControl) {
    SiteDefinitions sitedefs = CoreSpringFactory.getImpl(SiteDefinitions.class);
    List<SiteInstance> sites = new ArrayList<SiteInstance>();
    for (SiteDefinition sitedef : sitedefs.getSiteDefList()) {
        SiteInstance site = sitedef.createSite(ureq, wControl);
        if (site != null) {
            // site == null means that site is not visible to the current user
            sites.add(site);
        }
    }
    return sites;
}
Also used : SiteDefinition(org.olat.core.gui.control.navigation.SiteDefinition) SiteInstance(org.olat.core.gui.control.navigation.SiteInstance) ArrayList(java.util.ArrayList) SiteDefinitions(org.olat.core.gui.control.navigation.SiteDefinitions)

Example 7 with SiteDefinitions

use of org.olat.core.gui.control.navigation.SiteDefinitions in project OpenOLAT by OpenOLAT.

the class GuestBFWCParts method getSiteInstances.

/**
 * @see org.olat.core.commons.fullWebApp.BaseFullWebappControllerParts#getSiteInstances(org.olat.core.gui.UserRequest, org.olat.core.gui.control.WindowControl)
 */
@Override
public List<SiteInstance> getSiteInstances(UserRequest ureq, WindowControl wControl) {
    SiteDefinitions sitedefs = CoreSpringFactory.getImpl(SiteDefinitions.class);
    List<SiteInstance> sites = new ArrayList<SiteInstance>();
    for (SiteDefinition sitedef : sitedefs.getSiteDefList()) {
        SiteInstance site = sitedef.createSite(ureq, wControl);
        if (site != null) {
            // site == null means that site is not visible to the current user
            sites.add(site);
        }
    }
    return sites;
}
Also used : SiteDefinition(org.olat.core.gui.control.navigation.SiteDefinition) SiteInstance(org.olat.core.gui.control.navigation.SiteInstance) ArrayList(java.util.ArrayList) SiteDefinitions(org.olat.core.gui.control.navigation.SiteDefinitions)

Example 8 with SiteDefinitions

use of org.olat.core.gui.control.navigation.SiteDefinitions in project OpenOLAT by OpenOLAT.

the class CourseSiteDef method getCourseSiteconfiguration.

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

Example 9 with SiteDefinitions

use of org.olat.core.gui.control.navigation.SiteDefinitions in project OpenOLAT by OpenOLAT.

the class CourseSiteDef3 method getCourseSiteconfiguration.

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

Example 10 with SiteDefinitions

use of org.olat.core.gui.control.navigation.SiteDefinitions in project OpenOLAT by OpenOLAT.

the class CourseSiteDef2 method getCourseSiteconfiguration.

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

Aggregations

SiteDefinitions (org.olat.core.gui.control.navigation.SiteDefinitions)14 CourseSiteConfiguration (org.olat.course.site.model.CourseSiteConfiguration)8 ArrayList (java.util.ArrayList)4 SiteDefinition (org.olat.core.gui.control.navigation.SiteDefinition)4 SiteInstance (org.olat.core.gui.control.navigation.SiteInstance)4 SiteConfiguration (org.olat.core.gui.control.navigation.SiteConfiguration)2 SiteSecurityCallback (org.olat.core.gui.control.navigation.SiteSecurityCallback)2 CatalogSiteDef (org.olat.repository.site.CatalogSiteDef)2