// main component layed out in panel
main = createVelocityContainer("bgrun");
exposeGroupDetailsToVC(currBusinessGroup);
mainPanel = new Panel("p_buddygroupRun");
mainPanel.setContent(main);
//
bgTree = new MenuTree("bgTree");
TreeModel trMdl = buildTreeModel();
bgTree.setTreeModel(trMdl);
bgTree.addListener(this);
//
columnLayoutCtr = new LayoutMain3ColsController(ureq, getWindowControl(), bgTree, null, mainPanel, "grouprun");
listenTo(columnLayoutCtr); // cleanup on dispose
//
all = putInitialPanel(columnLayoutCtr.getInitialComponent());
// register for AssessmentEvents triggered by this user
userSession.getSingleUserEventCenter().registerFor(this, userSession.getIdentity(), assessmentEventOres);
/*
* lastUsage, update lastUsage if group is run if you can acquire the lock
* on the group for a very short time. If this is not possible, then the
* lastUsage is already up to date within one-day-precision.
*/
BusinessGroupManagerImpl.getInstance().setLastUsageFor(currBusinessGroup);
//disposed message controller
//must be created beforehand
Panel empty = new Panel("empty");//empty panel set as "menu" and "tool"
Controller disposedBusinessGroup = new DisposedBusinessGroup(ureq, getWindowControl());
LayoutMain3ColsController disposedController = new LayoutMain3ColsController(ureq, getWindowControl(), empty, empty, disposedBusinessGroup.getInitialComponent(), "disposed grouprun");
disposedController.addDisposableChildController(disposedBusinessGroup);
setDisposedMsgController(disposedController);