Package org.olat.core.gui.control.generic.wizard

Examples of org.olat.core.gui.control.generic.wizard.StepRunnerCallback


        Step start  = new PublishStep00(ureq, cetm, course);
       
        /*
         * callback executed in case wizard is finished.
         */
        StepRunnerCallback finish = new StepRunnerCallback(){
          @SuppressWarnings("unchecked")
          public Step execute(UserRequest ureq1, WindowControl wControl1, StepsRunContext runContext) {
            /*
             * all information to do now is within the runContext saved
             */
 
View Full Code Here


          Step start = new UserBulkChangeStep00(ureq, selectedIdentities);
          Roles roles = ureq.getUserSession().getRoles();
          isAdministrativeUser = (roles.isAuthor() || roles.isGroupManager() || roles.isUserManager() || roles.isOLATAdmin());

          // callback executed in case wizard is finished.
          StepRunnerCallback finish = new StepRunnerCallback() {
            public Step execute(UserRequest ureq1, WindowControl wControl1, StepsRunContext runContext) {
              // all information to do now is within the runContext saved
              boolean hasChanges = false;
              try {
                if (runContext.containsKey("validChange") && ((Boolean) runContext.get("validChange")).booleanValue()) {
View Full Code Here

    setTranslator(UserManager.getInstance().getPropertyHandlerTranslator(getTranslator()));
    userPropertyHandlers = UserManager.getInstance().getUserPropertyHandlersFor(usageIdentifyer, true);
   
    Step start = new ImportStep00(ureq, canCreateOLATPassword);
    // callback executed in case wizard is finished.
    StepRunnerCallback finish = new StepRunnerCallback() {
      public Step execute(UserRequest ureq1, WindowControl wControl1, StepsRunContext runContext) {
        // all information to do now is within the runContext saved
        boolean hasChanges = false;
        try {
          if (runContext.containsKey("validImport") && ((Boolean) runContext.get("validImport")).booleanValue()) {
View Full Code Here

  @SuppressWarnings("unused")
  protected void event(UserRequest ureq, Component source, Event event) {
    if(source == startWizardButton){
      Step startStep = new ZsuzStepUserData(ureq);
     
      StepRunnerCallback finishCallback = new StepRunnerCallback() {
        @SuppressWarnings({"synthetic-access","unused"})
        public Step execute(UserRequest ureq2, WindowControl control, StepsRunContext runContext) {
          MailTemplate mailtemplate = (MailTemplate)runContext.get("mailtemplate");
          //fetch data from runContext and send eMail with it
          MailerWithTemplate mailer = MailerWithTemplate.getInstance();
View Full Code Here

           */
          Step start = new DeletStep00(ureq, hasIdentitiesToDelete, identitiesToDelete);
          /*
           * wizard finish callback called after "finish" is called
           */
          StepRunnerCallback finishCallback = new StepRunnerCallback() {
            public Step execute(UserRequest ureq, WindowControl control, StepsRunContext runContext) {
              hasIdentitiesToDeleteAfterRun = ((Boolean) runContext.get("hasIdentitiesToDelete")).booleanValue();
              if (hasIdentitiesToDeleteAfterRun) {
                List<Identity> identitiesToDelete = (List<Identity>) runContext.get("identitiesToDelete");
                amountUsersToDelete = identitiesToDelete.size();
View Full Code Here

       */
      Step start = new StartStepImpl(ureq);
      /*
       * wizard finish callback called after "finish" is called
       */
      StepRunnerCallback finishCallback = new StepRunnerCallback() {
        public Step execute(UserRequest ureq2, WindowControl control, StepsRunContext runContext) {
          // here goes the code which reads out the wizards data from the
          // runContext and then does some wizardry
          //
          // after successfully finishing -> send a NOSTEP to indicate proper
View Full Code Here

TOP

Related Classes of org.olat.core.gui.control.generic.wizard.StepRunnerCallback

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.