Search in sources :

Example 1 with AccessRightsContext

use of org.olat.modules.portfolio.ui.wizard.AccessRightsContext in project OpenOLAT by OpenOLAT.

the class PublishController method doAddAccessRights.

private void doAddAccessRights(UserRequest ureq) {
    removeAsListenerAndDispose(addMembersWizard);
    Step start = new AddMember_1_ChooseMemberStep(ureq, binder);
    StepRunnerCallback finish = new StepRunnerCallback() {

        @Override
        public Step execute(UserRequest uureq, WindowControl wControl, StepsRunContext runContext) {
            AccessRightsContext rightsContext = (AccessRightsContext) runContext.get("rightsContext");
            MailTemplate mailTemplate = (MailTemplate) runContext.get("mailTemplate");
            addMembers(rightsContext, mailTemplate);
            return StepsMainRunController.DONE_MODIFIED;
        }
    };
    addMembersWizard = new StepsMainRunController(ureq, getWindowControl(), start, finish, null, translate("add.member"), "o_sel_course_member_import_1_wizard");
    listenTo(addMembersWizard);
    getWindowControl().pushAsModalDialog(addMembersWizard.getInitialComponent());
}
Also used : AccessRightsContext(org.olat.modules.portfolio.ui.wizard.AccessRightsContext) MailTemplate(org.olat.core.util.mail.MailTemplate) StepsMainRunController(org.olat.core.gui.control.generic.wizard.StepsMainRunController) AddMember_1_ChooseMemberStep(org.olat.modules.portfolio.ui.wizard.AddMember_1_ChooseMemberStep) Step(org.olat.core.gui.control.generic.wizard.Step) AddMember_1_ChooseMemberStep(org.olat.modules.portfolio.ui.wizard.AddMember_1_ChooseMemberStep) WindowControl(org.olat.core.gui.control.WindowControl) StepsRunContext(org.olat.core.gui.control.generic.wizard.StepsRunContext) StepRunnerCallback(org.olat.core.gui.control.generic.wizard.StepRunnerCallback) UserRequest(org.olat.core.gui.UserRequest)

Example 2 with AccessRightsContext

use of org.olat.modules.portfolio.ui.wizard.AccessRightsContext in project openolat by klemens.

the class PublishController method doAddAccessRights.

private void doAddAccessRights(UserRequest ureq) {
    removeAsListenerAndDispose(addMembersWizard);
    Step start = new AddMember_1_ChooseMemberStep(ureq, binder);
    StepRunnerCallback finish = new StepRunnerCallback() {

        @Override
        public Step execute(UserRequest uureq, WindowControl wControl, StepsRunContext runContext) {
            AccessRightsContext rightsContext = (AccessRightsContext) runContext.get("rightsContext");
            MailTemplate mailTemplate = (MailTemplate) runContext.get("mailTemplate");
            addMembers(rightsContext, mailTemplate);
            return StepsMainRunController.DONE_MODIFIED;
        }
    };
    addMembersWizard = new StepsMainRunController(ureq, getWindowControl(), start, finish, null, translate("add.member"), "o_sel_course_member_import_1_wizard");
    listenTo(addMembersWizard);
    getWindowControl().pushAsModalDialog(addMembersWizard.getInitialComponent());
}
Also used : AccessRightsContext(org.olat.modules.portfolio.ui.wizard.AccessRightsContext) MailTemplate(org.olat.core.util.mail.MailTemplate) StepsMainRunController(org.olat.core.gui.control.generic.wizard.StepsMainRunController) AddMember_1_ChooseMemberStep(org.olat.modules.portfolio.ui.wizard.AddMember_1_ChooseMemberStep) Step(org.olat.core.gui.control.generic.wizard.Step) AddMember_1_ChooseMemberStep(org.olat.modules.portfolio.ui.wizard.AddMember_1_ChooseMemberStep) WindowControl(org.olat.core.gui.control.WindowControl) StepsRunContext(org.olat.core.gui.control.generic.wizard.StepsRunContext) StepRunnerCallback(org.olat.core.gui.control.generic.wizard.StepRunnerCallback) UserRequest(org.olat.core.gui.UserRequest)

Aggregations

UserRequest (org.olat.core.gui.UserRequest)2 WindowControl (org.olat.core.gui.control.WindowControl)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 StepsRunContext (org.olat.core.gui.control.generic.wizard.StepsRunContext)2 MailTemplate (org.olat.core.util.mail.MailTemplate)2 AccessRightsContext (org.olat.modules.portfolio.ui.wizard.AccessRightsContext)2 AddMember_1_ChooseMemberStep (org.olat.modules.portfolio.ui.wizard.AddMember_1_ChooseMemberStep)2