Package org.olat.course.nodes.projectbroker.datamodel

Examples of org.olat.course.nodes.projectbroker.datamodel.ProjectBroker


   *
   */
  public void testCreateListDeleteProjects() throws Exception {
    System.out.println("testCreateListDeleteProjects: start...");
    // create ProjectBroker A + B
    ProjectBroker projectBrokerA = ProjectBrokerManagerFactory.getProjectBrokerManager().createAndSaveProjectBroker();
    Long idProjectBrokerA = projectBrokerA.getKey();
    ProjectBroker projectBrokerB = ProjectBrokerManagerFactory.getProjectBrokerManager().createAndSaveProjectBroker();
    Long idProjectBrokerB = projectBrokerB.getKey();
    // add project to ProjectBroker A
    createProject("thema A1", id1, idProjectBrokerA, resourceableId );
    createProject("thema A2", id1, idProjectBrokerA, resourceableId );
    // add project to ProjectBroker B
    createProject("thema B1", id1, idProjectBrokerB, resourceableId );
View Full Code Here


    System.out.println("testPerformanceGetProjectList: start...");
    int FIRST_ITERATION = 10;
    int SECOND_ITERATION = 90;
    int THIRD_ITERATION = 400;
    // create ProjectBroker C
    ProjectBroker projectBrokerC = ProjectBrokerManagerFactory.getProjectBrokerManager().createAndSaveProjectBroker();
    Long idProjectBrokerC = projectBrokerC.getKey();
    DBFactory.getInstance().closeSession();
    for (int i = 0; i < FIRST_ITERATION; i++) {
      createProject("thema C1_" + i, id1, idProjectBrokerC, resourceableId );   
    }
    DBFactory.getInstance().closeSession();
View Full Code Here

    int ITERATION = 300;
    int START_PAGE_INDEX = 100;
    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 );     
    }
View Full Code Here

    System.out.println("tableModel.getValueAt(row, col) for " + PAGE_SIZE + "elements (of " + ITERATION + ") takes " + duration + "ms with " + ITERATION + " projects");
    // cleanup
  }

  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);
View Full Code Here

TOP

Related Classes of org.olat.course.nodes.projectbroker.datamodel.ProjectBroker

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.