// jump to either the forum or the folder if the business-launch-path says so.
BusinessControl bc = getWindowControl().getBusinessControl();
ContextEntry ce = bc.popLauncherContextEntry();
if ( ce != null) { // a context path is left for me
if (isLogDebugEnabled()) logDebug("businesscontrol (for further jumps) would be: ", bc.toString());
OLATResourceable ores = ce.getOLATResourceable();
if (isLogDebugEnabled()) logDebug("OLATResourceable= " , ores.toString());
Long resId = ores.getResourceableId();
if (resId.longValue() != 0) {
if (isLogDebugEnabled()) logDebug("messageId=" , ores.getResourceableId().toString());
currentMsg = fm.findMessage(ores.getResourceableId());
if (currentMsg != null) {
showThreadView(ureq, currentMsg);
scrollToCurrentMessage();
} else {
// message not found, do nothing. Load normal start screen
logDebug("Invalid messageId=" , ores.getResourceableId().toString());
}
} else {
//FIXME:chg: Should not happen, occurs when course-node are called
if (isLogDebugEnabled()) logDebug("Invalid messageId=" , ores.getResourceableId().toString());
}
}
// Register for forum events
CoordinatorManager.getCoordinator().getEventBus().registerFor(this, ureq.getIdentity(), forum);