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