Search in sources :

Example 1 with EPCreateLiveBlogArtefactStep00

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());
}
Also used : EPCreateLiveBlogArtefactStep00(org.olat.modules.webFeed.portfolio.EPCreateLiveBlogArtefactStep00) AbstractArtefact(org.olat.portfolio.model.artefacts.AbstractArtefact) StepsMainRunController(org.olat.core.gui.control.generic.wizard.StepsMainRunController) Step(org.olat.core.gui.control.generic.wizard.Step) Date(java.util.Date) StepRunnerCallback(org.olat.core.gui.control.generic.wizard.StepRunnerCallback)

Example 2 with EPCreateLiveBlogArtefactStep00

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());
}
Also used : EPCreateLiveBlogArtefactStep00(org.olat.modules.webFeed.portfolio.EPCreateLiveBlogArtefactStep00) AbstractArtefact(org.olat.portfolio.model.artefacts.AbstractArtefact) StepsMainRunController(org.olat.core.gui.control.generic.wizard.StepsMainRunController) Step(org.olat.core.gui.control.generic.wizard.Step) Date(java.util.Date) StepRunnerCallback(org.olat.core.gui.control.generic.wizard.StepRunnerCallback)

Aggregations

Date (java.util.Date)2 Step (org.olat.core.gui.control.generic.wizard.Step)2 StepRunnerCallback (org.olat.core.gui.control.generic.wizard.StepRunnerCallback)2 StepsMainRunController (org.olat.core.gui.control.generic.wizard.StepsMainRunController)2 EPCreateLiveBlogArtefactStep00 (org.olat.modules.webFeed.portfolio.EPCreateLiveBlogArtefactStep00)2 AbstractArtefact (org.olat.portfolio.model.artefacts.AbstractArtefact)2