Search in sources :

Example 6 with AnalyticsSPI

use of org.olat.core.commons.services.analytics.AnalyticsSPI in project openolat by klemens.

the class AnalyticsAdminController method doInitSpiConfigController.

/**
 * Helper to init the SPI configuration controller based on the currently active configuration
 * @param ureq
 */
private void doInitSpiConfigController(UserRequest ureq) {
    AnalyticsSPI currentSPI = analyticsModule.getAnalyticsProvider();
    if (currentSPI != null) {
        // use SPI factory method to create the admin controller
        spiConfigCtr = currentSPI.createAdminController(ureq, getWindowControl());
        listenTo(spiConfigCtr);
        mainVC.put("spiConfigCtr", spiConfigCtr.getInitialComponent());
    } else {
        mainVC.remove("spiConfigCtr");
    }
}
Also used : AnalyticsSPI(org.olat.core.commons.services.analytics.AnalyticsSPI)

Aggregations

AnalyticsSPI (org.olat.core.commons.services.analytics.AnalyticsSPI)6 BaseSecurityModule (org.olat.basesecurity.BaseSecurityModule)2 Window (org.olat.core.gui.components.Window)2 OncePanel (org.olat.core.gui.components.panel.OncePanel)2 Panel (org.olat.core.gui.components.panel.Panel)2 StackedPanel (org.olat.core.gui.components.panel.StackedPanel)2 Identity (org.olat.core.id.Identity)2 User (org.olat.core.id.User)2 UserSession (org.olat.core.util.UserSession)2 I18nModule (org.olat.core.util.i18n.I18nModule)2 Preferences (org.olat.core.util.prefs.Preferences)2 UserPropertyHandler (org.olat.user.propertyhandlers.UserPropertyHandler)2