Package org.olat.core.gui.components.velocity

Examples of org.olat.core.gui.components.velocity.VelocityContainer.contextPut()


        .isEnabled(BGConfigFlags.GROUP_MINMAX_SIZE));
    listenTo(this.modifyBusinessGroupController);
   
    tmp.put("businessGroupForm", this.modifyBusinessGroupController.getInitialComponent());
    tmp.contextPut("BuddyGroup", businessGroup);
    tmp.contextPut("type", this.currBusinessGroup.getType());
    tmp.contextPut("groupid", this.currBusinessGroup.getKey());
    return tmp;
  }

  /**
 
View Full Code Here


    listenTo(this.modifyBusinessGroupController);
   
    tmp.put("businessGroupForm", this.modifyBusinessGroupController.getInitialComponent());
    tmp.contextPut("BuddyGroup", businessGroup);
    tmp.contextPut("type", this.currBusinessGroup.getType());
    tmp.contextPut("groupid", this.currBusinessGroup.getKey());
    return tmp;
  }

  /**
   * @param ureq
View Full Code Here

      ownerGrpCntrllr.setAddUserMailTempl(ownerAddUserMailTempl);
      MailTemplate ownerAremoveUserMailTempl = BGMailHelper.createRemoveParticipantMailTemplate(currBusinessGroup, ureq.getIdentity());
      ownerGrpCntrllr.setRemoveUserMailTempl(ownerAremoveUserMailTempl);
      // expose to velocity
      tmp.put("ownerGrpMngmnt", ownerGrpCntrllr.getInitialComponent());
      tmp.contextPut("hasOwnerGrp", Boolean.TRUE);
    } else {
      tmp.contextPut("hasOwnerGrp", Boolean.FALSE);
    }
    // groupcontroller which allows to remove all members
    partipGrpCntrllr = new GroupController(ureq, getWindowControl(), true, false, enableTablePreferences, currBusinessGroup
View Full Code Here

      ownerGrpCntrllr.setRemoveUserMailTempl(ownerAremoveUserMailTempl);
      // expose to velocity
      tmp.put("ownerGrpMngmnt", ownerGrpCntrllr.getInitialComponent());
      tmp.contextPut("hasOwnerGrp", Boolean.TRUE);
    } else {
      tmp.contextPut("hasOwnerGrp", Boolean.FALSE);
    }
    // groupcontroller which allows to remove all members
    partipGrpCntrllr = new GroupController(ureq, getWindowControl(), true, false, enableTablePreferences, currBusinessGroup
        .getPartipiciantGroup());
    listenTo(partipGrpCntrllr);
View Full Code Here

    partipGrpCntrllr.setAddUserMailTempl(partAddUserMailTempl);
    MailTemplate partAremoveUserMailTempl = BGMailHelper.createRemoveParticipantMailTemplate(currBusinessGroup, ureq.getIdentity());
    partipGrpCntrllr.setRemoveUserMailTempl(partAremoveUserMailTempl);
    // expose to velocity
    tmp.put("partipGrpMngmnt", partipGrpCntrllr.getInitialComponent());
    tmp.contextPut("type", this.currBusinessGroup.getType())
   
    // Show waiting list only if enabled
    if (hasWaitingList) {
      // waitinglist-groupcontroller which allows to remove all members
      SecurityGroup waitingList = currBusinessGroup.getWaitingGroup();
View Full Code Here

      waitingGruppeController.setRemoveUserMailTempl(waitRemoveUserMailTempl);
      MailTemplate waitTransferUserMailTempl = BGMailHelper.createWaitinglistTransferMailTemplate(currBusinessGroup, ureq.getIdentity());
      waitingGruppeController.setTransferUserMailTempl(waitTransferUserMailTempl);
      // expose to velocity
      tmp.put("waitingGrpMngmnt", waitingGruppeController.getInitialComponent());
      tmp.contextPut("hasWaitingGrp", Boolean.TRUE);
    } else {
      tmp.contextPut("hasWaitingGrp", Boolean.FALSE);
    }
    return tmp;
  }
View Full Code Here

      waitingGruppeController.setTransferUserMailTempl(waitTransferUserMailTempl);
      // expose to velocity
      tmp.put("waitingGrpMngmnt", waitingGruppeController.getInitialComponent());
      tmp.contextPut("hasWaitingGrp", Boolean.TRUE);
    } else {
      tmp.contextPut("hasWaitingGrp", Boolean.FALSE);
    }
    return tmp;
  }

  /**
 
View Full Code Here

  private void initializeContent() {
    updateUserList();
    VelocityContainer readyToDeleteContent = createVelocityContainer("readyToDelete");
    readyToDeleteContent.put("readyToDelete", tableCtr.getInitialComponent());
    readyToDeleteContent.contextPut("header", translate("ready.to.delete.header",
        Integer.toString(UserDeletionManager.getInstance().getDeleteEmailDuration()) ));
    readyToDeletePanel.setContent(readyToDeleteContent);
  }

  protected void updateUserList() {
View Full Code Here

   * @return the wrapper component
   */
  public static Component createLearningObjectivesComponent(String learningObjectives, UserRequest ureq) {
    VelocityContainer vc = new VelocityContainer("learningObjs", VELOCITY_ROOT + "/objectives.html", new PackageTranslator(PACKAGE, ureq
        .getLocale()), null);
    vc.contextPut("learningObjectives", learningObjectives);
    return vc;
  }
}
View Full Code Here

  }
 
  private void displayChecklist(UserRequest ureq, boolean isAdmin) {
    // add title
    VelocityContainer displayChecklistVC = this.createVelocityContainer("manage");
    displayChecklistVC.contextPut("checklistTitle", this.checklist.getTitle());
   
    // group choice
    groupForm = new GroupChoiceForm(ureq, getWindowControl(), lstGroups, isAdmin);
    groupForm.addControllerListener(this);
    displayChecklistVC.put("groupForm", groupForm.getInitialComponent());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.