use of org.olat.modules.webFeed.portfolio.EPCreateLiveBlogArtefactStep00 in project OpenOLAT by OpenOLAT.
the class EPAddArtefactController method prepareNewLiveBlogArtefactWizzard.
private void prepareNewLiveBlogArtefactWizzard(UserRequest ureq) {
EPArtefactHandler<?> artHandler = portfolioModule.getArtefactHandler(LiveBlogArtefact.TYPE);
AbstractArtefact artefact1 = artHandler.createArtefact();
artefact1.setAuthor(getIdentity());
artefact1.setCollectionDate(new Date());
// preset as signed by 60%
artefact1.setSignature(60);
Step start = new EPCreateLiveBlogArtefactStep00(ureq, preSelectedStruct, artefact1);
// no vfsTemp!, blog doesn't need a directory
StepRunnerCallback finish = new EPArtefactWizzardStepCallback();
collectStepsCtrl = new StepsMainRunController(ureq, getWindowControl(), start, finish, null, translate("create.blog.artefact.wizzard.title"), "o_sel_artefact_add_wizard o_sel_artefact_add_blog_wizard");
listenTo(collectStepsCtrl);
getWindowControl().pushAsModalDialog(collectStepsCtrl.getInitialComponent());
}
use of org.olat.modules.webFeed.portfolio.EPCreateLiveBlogArtefactStep00 in project openolat by klemens.
the class EPAddArtefactController method prepareNewLiveBlogArtefactWizzard.
private void prepareNewLiveBlogArtefactWizzard(UserRequest ureq) {
EPArtefactHandler<?> artHandler = portfolioModule.getArtefactHandler(LiveBlogArtefact.TYPE);
AbstractArtefact artefact1 = artHandler.createArtefact();
artefact1.setAuthor(getIdentity());
artefact1.setCollectionDate(new Date());
// preset as signed by 60%
artefact1.setSignature(60);
Step start = new EPCreateLiveBlogArtefactStep00(ureq, preSelectedStruct, artefact1);
// no vfsTemp!, blog doesn't need a directory
StepRunnerCallback finish = new EPArtefactWizzardStepCallback();
collectStepsCtrl = new StepsMainRunController(ureq, getWindowControl(), start, finish, null, translate("create.blog.artefact.wizzard.title"), "o_sel_artefact_add_wizard o_sel_artefact_add_blog_wizard");
listenTo(collectStepsCtrl);
getWindowControl().pushAsModalDialog(collectStepsCtrl.getInitialComponent());
}
Aggregations