use of org.olat.portfolio.ui.artefacts.view.EPMultipleArtefactsAsTableController in project OpenOLAT by OpenOLAT.
the class EPArtefactPoolRunController method initMultiArtefactCtrl.
private void initMultiArtefactCtrl(UserRequest ureq, List<AbstractArtefact> artefacts) {
// decide how to present artefacts depending on users settings
String userPrefsMode = ePFMgr.getUsersPreferedArtefactViewMode(getIdentity(), EPViewModeController.VIEWMODE_CONTEXT_ARTEFACTPOOL);
if (previousViewMode != null && !previousViewMode.equals(userPrefsMode)) {
removeAsListenerAndDispose(artCtrl);
}
if (importV2 || (userPrefsMode != null && userPrefsMode.equals(EPViewModeController.VIEWMODE_TABLE))) {
EPSecurityCallback secCallback = new EPSecurityCallbackImpl(true, true);
artCtrl = new EPMultipleArtefactsAsTableController(ureq, getWindowControl(), artefacts, null, artefactChooseMode, importV2, secCallback);
viewModeCtrl.selectTable();
} else {
artCtrl = new EPMultipleArtefactPreviewController(ureq, getWindowControl(), artefacts, artefactChooseMode);
viewModeCtrl.selectDetails();
}
previousViewMode = userPrefsMode;
listenTo(artCtrl);
previousArtefactsList = artefacts;
}
use of org.olat.portfolio.ui.artefacts.view.EPMultipleArtefactsAsTableController in project openolat by klemens.
the class EPArtefactPoolRunController method initMultiArtefactCtrl.
private void initMultiArtefactCtrl(UserRequest ureq, List<AbstractArtefact> artefacts) {
// decide how to present artefacts depending on users settings
String userPrefsMode = ePFMgr.getUsersPreferedArtefactViewMode(getIdentity(), EPViewModeController.VIEWMODE_CONTEXT_ARTEFACTPOOL);
if (previousViewMode != null && !previousViewMode.equals(userPrefsMode)) {
removeAsListenerAndDispose(artCtrl);
}
if (importV2 || (userPrefsMode != null && userPrefsMode.equals(EPViewModeController.VIEWMODE_TABLE))) {
EPSecurityCallback secCallback = new EPSecurityCallbackImpl(true, true);
artCtrl = new EPMultipleArtefactsAsTableController(ureq, getWindowControl(), artefacts, null, artefactChooseMode, importV2, secCallback);
viewModeCtrl.selectTable();
} else {
artCtrl = new EPMultipleArtefactPreviewController(ureq, getWindowControl(), artefacts, artefactChooseMode);
viewModeCtrl.selectDetails();
}
previousViewMode = userPrefsMode;
listenTo(artCtrl);
previousArtefactsList = artefacts;
}
Aggregations