Examples of GuestHomeSite


Examples of org.olat.home.GuestHomeSite

    if (ureq == null) throw new AssertException("HomeSiteDef.createSite: ureq was null");
    if (ureq.getUserSession() == null) throw new AssertException("HomeSiteDef.createSite: ureq.getUserSession() was null");
    if (ureq.getUserSession().getRoles() == null) throw new AssertException("HomeSiteDef.createSite: ureq.getUserSession().getRoles() was null");
    if (ureq.getUserSession().getRoles().isGuestOnly()) {
      // guest see this site (restricted rights and navigation)
      si = new GuestHomeSite(ureq.getLocale());
    } else { // all others see a normal homesite
      si = new HomeSite(ureq.getLocale());
    }
    return si;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.