Search in sources :

Example 1 with ViteroModule

use of org.olat.modules.vitero.ViteroModule in project openolat by klemens.

the class ViteroZombieSlayerJob method executeWithDB.

@Override
public void executeWithDB(JobExecutionContext arg0) {
    ViteroModule module = (ViteroModule) CoreSpringFactory.getBean("viteroModule");
    if (!module.isEnabled())
        return;
    ViteroManager viteroManager = (ViteroManager) CoreSpringFactory.getBean("viteroManager");
    if (viteroManager.checkConnection()) {
        viteroManager.slayZombies();
    }
}
Also used : ViteroModule(org.olat.modules.vitero.ViteroModule)

Example 2 with ViteroModule

use of org.olat.modules.vitero.ViteroModule in project OpenOLAT by OpenOLAT.

the class ViteroZombieSlayerJob method executeWithDB.

@Override
public void executeWithDB(JobExecutionContext arg0) {
    ViteroModule module = (ViteroModule) CoreSpringFactory.getBean("viteroModule");
    if (!module.isEnabled())
        return;
    ViteroManager viteroManager = (ViteroManager) CoreSpringFactory.getBean("viteroManager");
    if (viteroManager.checkConnection()) {
        viteroManager.slayZombies();
    }
}
Also used : ViteroModule(org.olat.modules.vitero.ViteroModule)

Aggregations

ViteroModule (org.olat.modules.vitero.ViteroModule)2