use of org.olat.portfolio.ui.artefacts.collect.ArtefactWizzardStepsController in project OpenOLAT by OpenOLAT.
the class CertificateAndEfficiencyStatementListController method doCollectArtefact.
private void doCollectArtefact(UserRequest ureq, String title, Long efficiencyStatementKey) {
EPArtefactHandler<?> artHandler = portfolioModule.getArtefactHandler(EfficiencyStatementArtefact.ARTEFACT_TYPE);
if (artHandler != null && artHandler.isEnabled() && assessedIdentity.equals(getIdentity())) {
AbstractArtefact artefact = artHandler.createArtefact();
// only author can create artefact
artefact.setAuthor(getIdentity());
// no business path becouse we cannot launch an efficiency statement
artefact.setCollectionDate(new Date());
artefact.setTitle(translate("artefact.title", new String[] { title }));
EfficiencyStatement fullStatement = esm.getUserEfficiencyStatementByKey(efficiencyStatementKey);
artHandler.prefillArtefactAccordingToSource(artefact, fullStatement);
ePFCollCtrl = new ArtefactWizzardStepsController(ureq, getWindowControl(), artefact, (VFSContainer) null);
listenTo(ePFCollCtrl);
}
}
use of org.olat.portfolio.ui.artefacts.collect.ArtefactWizzardStepsController in project OpenOLAT by OpenOLAT.
the class CertificateAndEfficiencyStatementController method popupArtefactCollector.
/**
* opens the collect-artefact wizard
*
* @param ureq
*/
private void popupArtefactCollector(UserRequest ureq) {
EPArtefactHandler<?> artHandler = portfolioModule.getArtefactHandler(EfficiencyStatementArtefact.ARTEFACT_TYPE);
if (artHandler != null && artHandler.isEnabled()) {
AbstractArtefact artefact = artHandler.createArtefact();
// only author can create artefact
artefact.setAuthor(getIdentity());
// no business path becouse we cannot launch an efficiency statement
artefact.setCollectionDate(new Date());
artefact.setTitle(translate("artefact.title", new String[] { efficiencyStatement.getCourseTitle() }));
artHandler.prefillArtefactAccordingToSource(artefact, efficiencyStatement);
ePFCollCtrl = new ArtefactWizzardStepsController(ureq, getWindowControl(), artefact, (VFSContainer) null);
listenTo(ePFCollCtrl);
// set flag for js-window-resizing (see velocity)
mainVC.contextPut("collectwizard", true);
}
}
use of org.olat.portfolio.ui.artefacts.collect.ArtefactWizzardStepsController in project openolat by klemens.
the class CertificateAndEfficiencyStatementListController method doCollectArtefact.
private void doCollectArtefact(UserRequest ureq, String title, Long efficiencyStatementKey) {
EPArtefactHandler<?> artHandler = portfolioModule.getArtefactHandler(EfficiencyStatementArtefact.ARTEFACT_TYPE);
if (artHandler != null && artHandler.isEnabled() && assessedIdentity.equals(getIdentity())) {
AbstractArtefact artefact = artHandler.createArtefact();
// only author can create artefact
artefact.setAuthor(getIdentity());
// no business path becouse we cannot launch an efficiency statement
artefact.setCollectionDate(new Date());
artefact.setTitle(translate("artefact.title", new String[] { title }));
EfficiencyStatement fullStatement = esm.getUserEfficiencyStatementByKey(efficiencyStatementKey);
artHandler.prefillArtefactAccordingToSource(artefact, fullStatement);
ePFCollCtrl = new ArtefactWizzardStepsController(ureq, getWindowControl(), artefact, (VFSContainer) null);
listenTo(ePFCollCtrl);
}
}
use of org.olat.portfolio.ui.artefacts.collect.ArtefactWizzardStepsController in project openolat by klemens.
the class CertificateAndEfficiencyStatementController method popupArtefactCollector.
/**
* opens the collect-artefact wizard
*
* @param ureq
*/
private void popupArtefactCollector(UserRequest ureq) {
EPArtefactHandler<?> artHandler = portfolioModule.getArtefactHandler(EfficiencyStatementArtefact.ARTEFACT_TYPE);
if (artHandler != null && artHandler.isEnabled()) {
AbstractArtefact artefact = artHandler.createArtefact();
// only author can create artefact
artefact.setAuthor(getIdentity());
// no business path becouse we cannot launch an efficiency statement
artefact.setCollectionDate(new Date());
artefact.setTitle(translate("artefact.title", new String[] { efficiencyStatement.getCourseTitle() }));
artHandler.prefillArtefactAccordingToSource(artefact, efficiencyStatement);
ePFCollCtrl = new ArtefactWizzardStepsController(ureq, getWindowControl(), artefact, (VFSContainer) null);
listenTo(ePFCollCtrl);
// set flag for js-window-resizing (see velocity)
mainVC.contextPut("collectwizard", true);
}
}
Aggregations