Examples of NavigationHandler


Examples of org.olat.course.run.navigation.NavigationHandler

    // build up the running structure for this user;
    uce = new UserCourseEnvironmentImpl(ureq.getUserSession().getIdentityEnvironment(), course.getCourseEnvironment());
    // build score now
    uce.getScoreAccounting().evaluateAll();
    navHandler = new NavigationHandler(uce, false);

    // jump to either the forum or the folder if the business-launch-path says
    // so.
    boolean showAssessmentTool = false;
   
View Full Code Here

Examples of org.olat.course.run.navigation.NavigationHandler

           
            // rebuild up the running structure for this user, after publish;
            uce = new UserCourseEnvironmentImpl(ureq.getUserSession().getIdentityEnvironment(), CourseFactory.loadCourse(course.getResourceableId()).getCourseEnvironment());
            // build score now
            uce.getScoreAccounting().evaluateAll();
            navHandler = new NavigationHandler(uce, false);
           
            // rebuild and jump to root node
            updateTreeAndContent(ureq, null, null);
            // and also tools (maybe new assessable nodes -> show efficiency
            // statment)
View Full Code Here

Examples of org.strecks.navigate.NavigationHandler

  }

  @Test
  public void testString()
  {
    NavigationHandler navigationHandler = factory.getNavigationHandler("beanClass", String.class);
    assert navigationHandler instanceof MappingNavigationHandler;
  }
View Full Code Here

Examples of org.strecks.navigate.NavigationHandler

  }

  @Test
  public void testActionForward()
  {
    NavigationHandler navigationHandler = factory.getNavigationHandler("beanClass", ActionForward.class);
    assert navigationHandler instanceof ActionForwardNavigationHandler;
  }
View Full Code Here

Examples of org.strecks.navigate.NavigationHandler

  }

  @Test
  public void testPageClass()
  {
    NavigationHandler navigationHandler = factory.getNavigationHandler("beanClass", Page.class);
    assert navigationHandler instanceof PageNavigationHandler;
  }
View Full Code Here

Examples of org.strecks.navigate.NavigationHandler

  }

  @Test
  public void testViewAdapter()
  {
    NavigationHandler navigationHandler = factory.getNavigationHandler("beanClass", ViewAdapter.class);
    assert navigationHandler instanceof ViewAdapterNavigationHandler;
  }
View Full Code Here

Examples of org.strecks.navigate.NavigationHandler

  public void testGetNavigationHandler() throws SecurityException, NoSuchMethodException
  {
    NavigationHandlerInfo info = new NavigationHandlerInfo(new DefaultNavigationHandlerFactory(),
        ActionWithNavigate.class.getMethod("nextPage"));

    NavigationHandler navigationHandler = navigationReader.getNavigationHandler(ActionWithNavigate.class, info);
    assert navigationHandler instanceof PageNavigationHandler;
  }
View Full Code Here

Examples of org.strecks.navigate.NavigationHandler

    navigationReader.readAnnotations(clazz);
    NavigationHolder navigationHolder = navigationReader.getNavigationHolder();
    NavigationHandlerFactory factory = navigationHolder.getFactory();
    assert factory instanceof IdentityNavigationHandlerFactory;
   
    NavigationHandler navigationHandler = factory.getNavigationHandler(null,null);
    assert navigationHandler instanceof SpringViewNavigationHandler;
   
    SpringViewNavigationHandler h = (SpringViewNavigationHandler) navigationHandler;
    return h;
  }
View Full Code Here

Examples of org.strecks.navigate.NavigationHandler

    NavigationHandlerInfo navigationInfo = readNavigationHandlerFactory(actionBeanClass);

    if (navigationInfo != null)
    {
      NavigationHandler navigationHandler = getNavigationHandler(actionBeanClass, navigationInfo);

      checkTypes(navigationHandler.getClass(), navigationInfo.getMethod());

      navigationHolder = new NavigationHolder(navigationHandler, navigationInfo.getFactory(), navigationInfo
          .getMethod());

      return true;
View Full Code Here

Examples of org.strecks.navigate.NavigationHandler

  NavigationHandler getNavigationHandler(Class actionClass, NavigationHandlerInfo info)
  {
    NavigationHandlerFactory factory = info.getFactory();
    Class type = info.getMethod().getReturnType();

    NavigationHandler navigationHandler = factory.getNavigationHandler(actionClass.getName(), type);

    // make sure that navigationHandler is not null
    Assert.notNull(navigationHandler);
    return navigationHandler;
  }
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.