Package org.olat.course.nodes.projectbroker.service

Examples of org.olat.course.nodes.projectbroker.service.ProjectBrokerModuleConfiguration


   * @param previewMode
   */
  public ProjectFolderController(UserRequest ureq, WindowControl wControl, UserCourseEnvironment userCourseEnv, NodeEvaluation ne, boolean previewMode, Project project) {
    super(ureq, wControl);
    this.config = ne.getCourseNode().getModuleConfiguration();
    ProjectBrokerModuleConfiguration moduleConfig = new ProjectBrokerModuleConfiguration(ne.getCourseNode().getModuleConfiguration());
   
    content = createVelocityContainer("folder");

    // TODO:cg/05.01.2010 Refactoring : move isIdentityCourseAdministrator and isOLATAdmin into isProjectManager method
    if (   ProjectBrokerManagerFactory.getProjectBrokerManager().isProjectParticipant(ureq.getIdentity(), project)
View Full Code Here


    this.node = node;
    //o_clusterOk by guido: save to hold reference to course inside editor
    this.courseId = course.getResourceableId();
    this.config = node.getModuleConfiguration();
    projectBrokerModuleConfiguration  = new ProjectBrokerModuleConfiguration(node.getModuleConfiguration());
    Translator fallbackTranslator = new PackageTranslator(Util.getPackageName(DropboxForm.class), ureq.getLocale(), new PackageTranslator(Util.getPackageName(MSCourseNodeEditController.class), ureq.getLocale()));
    Translator myTranslator = new PackageTranslator( Util.getPackageName(ProjectBrokerCourseEditorController.class), ureq.getLocale(),  fallbackTranslator);
    setTranslator(myTranslator);

    // check if a project-broker exists
View Full Code Here

  protected ProjectListController(UserRequest ureq, WindowControl wControl, UserCourseEnvironment userCourseEnv, NodeEvaluation ne, boolean previewMode) {
    super(ureq, wControl);
    this.userCourseEnv = userCourseEnv;
    this.nodeEvaluation = ne;
    courseId = userCourseEnv.getCourseEnvironment().getCourseResourceableId();
    moduleConfig = new ProjectBrokerModuleConfiguration(ne.getCourseNode().getModuleConfiguration());
   
    contentVC = createVelocityContainer("project_list");
    // set header info with project-broker run mode
    String infoProjectBrokerRunMode = "";
    if (moduleConfig.isAcceptSelectionManually() && moduleConfig.isAutoSignOut()) {
View Full Code Here

    int PAGE_SIZE = 20;
    PackageTranslator translator = new PackageTranslator(this.getClass().getPackage().getName(), Locale.GERMAN);

    ProjectBroker projectBrokerD = ProjectBrokerManagerFactory.getProjectBrokerManager().createAndSaveProjectBroker();
    Long idProjectBrokerD = projectBrokerD.getKey();
    ProjectBrokerModuleConfiguration moduleConfig = new ProjectBrokerModuleConfiguration( new ModuleConfiguration() );

    for (int i = 0; i < ITERATION; i++) {
      createProject("thema D1_" + i, id1, idProjectBrokerD, resourceableId );     
    }
    List projectListD = ProjectBrokerManagerFactory.getProjectBrokerManager().getProjectListBy(idProjectBrokerD);
View Full Code Here

  }

  public void testIsProjectManager() throws Exception {
    ProjectBroker projectBrokerD = ProjectBrokerManagerFactory.getProjectBrokerManager().createAndSaveProjectBroker();
    Long idProjectBrokerD = projectBrokerD.getKey();
    ProjectBrokerModuleConfiguration moduleConfig = new ProjectBrokerModuleConfiguration( new ModuleConfiguration() );
   
    Project testProjectA = createProject("thema A", id1, idProjectBrokerD, resourceableId );
    List<Identity> projectManagerList = new ArrayList<Identity>();
    projectManagerList.add(id1);
    BGConfigFlags flags = BGConfigFlags.createRightGroupDefaultFlags();
View Full Code Here

TOP

Related Classes of org.olat.course.nodes.projectbroker.service.ProjectBrokerModuleConfiguration

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.