Package org.olat.core.gui.control.navigation

Examples of org.olat.core.gui.control.navigation.SiteInstance


  /**
   * @see org.olat.navigation.SiteDefinition#createSite(org.olat.core.gui.UserRequest,
   *      org.olat.core.gui.control.WindowControl)
   */
  public SiteInstance createSite(UserRequest ureq, WindowControl wControl) {
    SiteInstance si = null;
    if (ureq.getUserSession().getRoles().isGroupManager()) {
      // only groupmanagers see this site (restricted rights and navigation)
      si = new GroupsManagementSite(ureq.getLocale());
    } // no access for all others
    return si;
View Full Code Here


 
  /**
   * @see org.olat.navigation.SiteDefinition#createSite(org.olat.core.gui.UserRequest, org.olat.core.gui.control.WindowControl)
   */
  public SiteInstance createSite(UserRequest ureq, WindowControl wControl) {
    SiteInstance si = null;
    if (Settings.isDebuging() && ureq.getUserSession().getRoles().isOLATAdmin()) {
      // only open for olat-admins
      si = new GUIDemoSite(ureq.getLocale());
    }
    return si;
View Full Code Here

 
  /**
   * @see org.olat.navigation.SiteDefinition#createSite(org.olat.core.gui.UserRequest, org.olat.core.gui.control.WindowControl)
   */
  public SiteInstance createSite(UserRequest ureq, WindowControl wControl) {
    SiteInstance si = null;
    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)
View Full Code Here

TOP

Related Classes of org.olat.core.gui.control.navigation.SiteInstance

Copyright © 2018 www.massapicom. 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.