Search in sources :

Example 16 with SiteInstance

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

the class AuthBFWCParts 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)

Aggregations

SiteInstance (org.olat.core.gui.control.navigation.SiteInstance)16 BornSiteInstance (org.olat.core.gui.control.navigation.BornSiteInstance)10 ArrayList (java.util.ArrayList)6 DTab (org.olat.core.gui.control.generic.dtabs.DTab)6 Link (org.olat.core.gui.components.link.Link)4 Controller (org.olat.core.gui.control.Controller)4 Activateable2 (org.olat.core.gui.control.generic.dtabs.Activateable2)4 GuiStack (org.olat.core.gui.control.guistack.GuiStack)4 SiteDefinition (org.olat.core.gui.control.navigation.SiteDefinition)4 SiteDefinitions (org.olat.core.gui.control.navigation.SiteDefinitions)4 LandingPagesModule (org.olat.admin.landingpages.LandingPagesModule)2 LayoutModule (org.olat.admin.layout.LayoutModule)2 LogoInformations (org.olat.admin.layout.LogoInformations)2 BaseChiefController (org.olat.core.commons.chiefcontrollers.BaseChiefController)2 ResumeSessionController (org.olat.core.commons.controllers.resume.ResumeSessionController)2 BaseFullWebappControllerParts (org.olat.core.commons.fullWebApp.BaseFullWebappControllerParts)2 LockableController (org.olat.core.commons.fullWebApp.LockableController)2 UserRequest (org.olat.core.gui.UserRequest)2 Component (org.olat.core.gui.components.Component)2 CountDownComponent (org.olat.core.gui.components.countdown.CountDownComponent)2