Search in sources :

Example 1 with LockableController

use of org.olat.core.commons.fullWebApp.LockableController in project OpenOLAT by OpenOLAT.

the class BaseFullWebappMinimalLayoutControllerCreator method getFullWebappParts.

/**
 * @see org.olat.core.commons.fullWebApp.popup.BaseFullWebappPopupLayout#getFullWebappParts()
 */
@Override
public BaseFullWebappControllerParts getFullWebappParts() {
    return new BaseFullWebappControllerParts() {

        @Override
        public List<SiteInstance> getSiteInstances(UserRequest ureq, WindowControl control) {
            // no static sites
            return null;
        }

        @Override
        public Controller getContentController(UserRequest ureq, WindowControl wControl) {
            // the content for the Pop-up Window
            return contentControllerCreator.createController(ureq, wControl);
        }

        @Override
        public LockableController createTopNavController(UserRequest ureq, WindowControl wControl) {
            LockableController topnavCtr = null;
            // ----------- topnav, optional (e.g. for imprint, logout) ------------------
            if (CoreSpringFactory.containsBean("fullWebApp.MinimalTopNavControllerCreator")) {
                ControllerCreator topnavControllerCreator = (ControllerCreator) CoreSpringFactory.getBean("fullWebApp.MinimalTopNavControllerCreator");
                topnavCtr = (LockableController) topnavControllerCreator.createController(ureq, wControl);
            }
            return topnavCtr;
        }

        @Override
        public Controller createHeaderController(UserRequest ureq, WindowControl control) {
            Controller headerCtr = null;
            // ----------- header, optional (e.g. for logo, advertising ) ------------------
            if (CoreSpringFactory.containsBean("fullWebApp.MinimalHeaderControllerCreator")) {
                ControllerCreator headerControllerCreator = (ControllerCreator) CoreSpringFactory.getBean("fullWebApp.MinimalHeaderControllerCreator");
                headerCtr = headerControllerCreator.createController(ureq, control);
            }
            return headerCtr;
        }

        @Override
        public LockableController createFooterController(UserRequest ureq, WindowControl control) {
            Controller footerCtr = null;
            // ----------- footer, optional (e.g. for copyright, powerd by) ------------------
            if (CoreSpringFactory.containsBean("fullWebApp.MinimalFooterControllerCreator")) {
                ControllerCreator footerCreator = (ControllerCreator) CoreSpringFactory.getBean("fullWebApp.MinimalFooterControllerCreator");
                footerCtr = footerCreator.createController(ureq, control);
            }
            return (LockableController) footerCtr;
        }
    };
}
Also used : SiteInstance(org.olat.core.gui.control.navigation.SiteInstance) LockableController(org.olat.core.commons.fullWebApp.LockableController) BaseFullWebappControllerParts(org.olat.core.commons.fullWebApp.BaseFullWebappControllerParts) WindowControl(org.olat.core.gui.control.WindowControl) LockableController(org.olat.core.commons.fullWebApp.LockableController) Controller(org.olat.core.gui.control.Controller) UserRequest(org.olat.core.gui.UserRequest) ControllerCreator(org.olat.core.gui.control.creator.ControllerCreator)

Example 2 with LockableController

use of org.olat.core.commons.fullWebApp.LockableController in project OpenOLAT by OpenOLAT.

the class GuestBFWCParts method createFooterController.

/**
 * @see org.olat.core.commons.fullWebApp.BaseFullWebappControllerParts#createFooterController(org.olat.core.gui.UserRequest, org.olat.core.gui.control.WindowControl)
 */
@Override
public LockableController createFooterController(UserRequest ureq, WindowControl wControl) {
    Controller footerCtr = null;
    // ----------- footer, optional (e.g. for copyright, powered by) ------------------
    if (CoreSpringFactory.containsBean("fullWebApp.GuestFooterControllerCreator")) {
        ControllerCreator footerCreator = (ControllerCreator) CoreSpringFactory.getBean("fullWebApp.GuestFooterControllerCreator");
        footerCtr = footerCreator.createController(ureq, wControl);
    } else {
        footerCtr = new OlatFooterController(ureq, wControl);
    }
    return (LockableController) footerCtr;
}
Also used : LockableController(org.olat.core.commons.fullWebApp.LockableController) OlatFooterController(org.olat.gui.control.OlatFooterController) Controller(org.olat.core.gui.control.Controller) OlatFooterController(org.olat.gui.control.OlatFooterController) LockableController(org.olat.core.commons.fullWebApp.LockableController) ControllerCreator(org.olat.core.gui.control.creator.ControllerCreator)

Example 3 with LockableController

use of org.olat.core.commons.fullWebApp.LockableController in project OpenOLAT by OpenOLAT.

the class AuthBFWCParts method createTopNavController.

/**
 * @see org.olat.core.commons.fullWebApp.BaseFullWebappControllerParts#createTopNavController(org.olat.core.gui.UserRequest, org.olat.core.gui.control.WindowControl)
 */
@Override
public LockableController createTopNavController(UserRequest ureq, WindowControl wControl) {
    Controller topnavCtr = null;
    // ----------- topnav, optional (e.g. for imprint, logout) ------------------
    if (CoreSpringFactory.containsBean("fullWebApp.TopNavControllerCreator")) {
        ControllerCreator topnavControllerCreator = (ControllerCreator) CoreSpringFactory.getBean("fullWebApp.TopNavControllerCreator");
        topnavCtr = topnavControllerCreator.createController(ureq, wControl);
    }
    return (LockableController) topnavCtr;
}
Also used : LockableController(org.olat.core.commons.fullWebApp.LockableController) LockableController(org.olat.core.commons.fullWebApp.LockableController) Controller(org.olat.core.gui.control.Controller) ControllerCreator(org.olat.core.gui.control.creator.ControllerCreator)

Example 4 with LockableController

use of org.olat.core.commons.fullWebApp.LockableController in project OpenOLAT by OpenOLAT.

the class DmzBFWCParts method createFooterController.

@Override
public LockableController createFooterController(UserRequest ureq, WindowControl wControl) {
    Controller footerCtr = null;
    // ----------- footer, optional (e.g. for copyright, powered by) ------------------
    if (CoreSpringFactory.containsBean("fullWebApp.DMZFooterControllerCreator")) {
        ControllerCreator footerCreator = (ControllerCreator) CoreSpringFactory.getBean("fullWebApp.DMZFooterControllerCreator");
        footerCtr = footerCreator.createController(ureq, wControl);
    } else {
        footerCtr = new OlatFooterController(ureq, wControl);
    }
    return (LockableController) footerCtr;
}
Also used : LockableController(org.olat.core.commons.fullWebApp.LockableController) OlatFooterController(org.olat.gui.control.OlatFooterController) LockableController(org.olat.core.commons.fullWebApp.LockableController) Controller(org.olat.core.gui.control.Controller) OlatFooterController(org.olat.gui.control.OlatFooterController) ControllerCreator(org.olat.core.gui.control.creator.ControllerCreator)

Example 5 with LockableController

use of org.olat.core.commons.fullWebApp.LockableController in project openolat by klemens.

the class GuestBFWCParts method createFooterController.

/**
 * @see org.olat.core.commons.fullWebApp.BaseFullWebappControllerParts#createFooterController(org.olat.core.gui.UserRequest, org.olat.core.gui.control.WindowControl)
 */
@Override
public LockableController createFooterController(UserRequest ureq, WindowControl wControl) {
    Controller footerCtr = null;
    // ----------- footer, optional (e.g. for copyright, powered by) ------------------
    if (CoreSpringFactory.containsBean("fullWebApp.GuestFooterControllerCreator")) {
        ControllerCreator footerCreator = (ControllerCreator) CoreSpringFactory.getBean("fullWebApp.GuestFooterControllerCreator");
        footerCtr = footerCreator.createController(ureq, wControl);
    } else {
        footerCtr = new OlatFooterController(ureq, wControl);
    }
    return (LockableController) footerCtr;
}
Also used : LockableController(org.olat.core.commons.fullWebApp.LockableController) OlatFooterController(org.olat.gui.control.OlatFooterController) Controller(org.olat.core.gui.control.Controller) OlatFooterController(org.olat.gui.control.OlatFooterController) LockableController(org.olat.core.commons.fullWebApp.LockableController) ControllerCreator(org.olat.core.gui.control.creator.ControllerCreator)

Aggregations

LockableController (org.olat.core.commons.fullWebApp.LockableController)14 ControllerCreator (org.olat.core.gui.control.creator.ControllerCreator)14 Controller (org.olat.core.gui.control.Controller)10 OlatFooterController (org.olat.gui.control.OlatFooterController)4 BaseFullWebappControllerParts (org.olat.core.commons.fullWebApp.BaseFullWebappControllerParts)2 UserRequest (org.olat.core.gui.UserRequest)2 WindowControl (org.olat.core.gui.control.WindowControl)2 SiteInstance (org.olat.core.gui.control.navigation.SiteInstance)2