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;
}
Aggregations