Examples of Navigation


Examples of org.gatein.mop.api.workspace.Navigation

public abstract class AbstractNavigationOperationHandler extends AbstractSiteOperationHandler
{
   @Override
   protected void execute(OperationContext operationContext, ResultHandler resultHandler, Site site) throws ResourceNotFoundException, OperationException
   {
      Navigation navigation = site.getRootNavigation().getChild("default");
      if (navigation == null) throw new ResourceNotFoundException("Navigation does not exist for site " + getSiteKey(site));
     
      execute(operationContext, resultHandler, navigation);
   }
View Full Code Here

Examples of org.gatein.mop.api.workspace.Navigation

      {
         children.add("pages");
         pageOrNav = true;
      }

      Navigation defaultNav = site.getRootNavigation().getChild("default");
      if (defaultNav != null && !defaultNav.getChildren().isEmpty())
      {
         children.add("navigation");
         pageOrNav = true;
      }
View Full Code Here

Examples of org.gatein.mop.api.workspace.Navigation

         Page pages = site.getRootPage().getChild("pages");
         if (pages != null && !pages.getChildren().isEmpty())
         {
            pageOrNav = true;
         }
         Navigation defaultNav = site.getRootNavigation().getChild("default");
         if (defaultNav != null && !defaultNav.getChildren().isEmpty())
         {
            pageOrNav = true;
         }

         //TODO: Until invalid site entries without a leading slash is corrected, this is needed to ignore them.
View Full Code Here

Examples of org.gatein.mop.api.workspace.Navigation

      {
         throw new NavigationServiceException(NavigationError.NAVIGATION_NO_SITE);
      }

      //
      Navigation rootNode = site.getRootNavigation();

      //
      Navigation defaultNode = rootNode.getChild("default");
      if (defaultNode == null)
      {
         defaultNode = rootNode.addChild("default");
      }

      //
      NavigationState state = navigation.state;
      if (state != null)
      {
         Integer priority = state.getPriority();
         defaultNode.getAttributes().setValue(MappedAttributes.PRIORITY, priority);
      }

      //
      dataCache.removeNavigationData(session, navigation.key);
View Full Code Here

Examples of org.gatein.mop.api.workspace.Navigation

      {
         throw new NavigationServiceException(NavigationError.NAVIGATION_NO_SITE);
      }

      //
      Navigation rootNode = site.getRootNavigation();
      Navigation defaultNode = rootNode.getChild("default");

      //
      if (defaultNode != null)
      {
         // Invalidate cache
         dataCache.removeNavigation(navigation.key);
         String rootId = navigation.data.rootId;
         if (rootId != null)
         {
            dataCache.removeNodes(Collections.singleton(rootId));
         }

         // Destroy nav
         defaultNode.destroy();

         // Update state
         navigation.data = null;

         //
View Full Code Here

Examples of org.jboss.errai.ui.nav.client.local.Navigation

  protected void navigateToLoginPage() {
    navigateToPage(LoginPage.class);
  }

  protected void navigateToPage(Class<? extends UniquePageRole> roleClass) {
    Navigation navigation = IOC.getBeanManager().lookupBean(Navigation.class).getInstance();
    Cookies.setCookie(CURRENT_PAGE_COOKIE, navigation.getCurrentPage().name());
    navigation.goToWithRole(roleClass);
  }
View Full Code Here

Examples of org.jboss.seam.pages.Navigation

      {
         List<Page> stack = getPageStack(viewId);
         for (int i=stack.size()-1; i>=0; i--)
         {
            Page page = stack.get(i);
            Navigation navigation = page.getNavigations().get(actionExpression);
            if (navigation==null)
            {
               navigation = page.getDefaultNavigation();
            }
           
            if ( navigation!=null && navigation.navigate(context, actionOutcomeValue) ) return true
           
         }
      }
      return false;
   }
View Full Code Here

Examples of org.openqa.selenium.WebDriver.Navigation

        IsNotProxyable isNotProxyable = new IsNotProxyable();

        // when
        WebDriver driver = Mockito.mock(WebDriver.class, isNotProxyable);
        Options options = mock(Options.class, isNotProxyable);
        Navigation navigation = mock(Navigation.class, isNotProxyable);
        ImeHandler ime = mock(ImeHandler.class, isNotProxyable);
        Logs logs = mock(Logs.class, isNotProxyable);

        // then
        try {
            driver.toString();
            driver.close();
            driver.equals(new Object());
            driver.get("");
            driver.getClass();
            driver.getCurrentUrl();
            driver.getPageSource();
            driver.getTitle();
            driver.getWindowHandle();
            driver.hashCode();
            driver.quit();
            driver.toString();

            options.addCookie(mock(Cookie.class));
            options.deleteAllCookies();
            options.deleteCookie(mock(Cookie.class));
            options.deleteCookieNamed("");
            options.getCookieNamed("");

            navigation.back();
            navigation.forward();
            navigation.to("");
            navigation.to(new URL("http://localhost/"));

            ime.activateEngine("");
            ime.deactivate();
            ime.getActiveEngine();
            ime.isActivated();
View Full Code Here

Examples of org.playframework.playclipse.Navigation

        viewName = "app/" + (useJapid? "japidviews" : "views") + "/"
          + (packageName.equals("controllers") ? "" : packageName.substring(12).replace('.', '/') + "/")
          + controllerName + "/" + viewName + ".html";
      }
     
      (new Navigation(editor)).goToViewAbs(viewName);
    }
    return null;
  }
View Full Code Here

Examples of org.playframework.playclipse.Navigation

    if (action == null) {
      System.out.println("no action to go to.");
      return null;
    }
    else {
      (new Navigation(editor)).goToAction(action);
      return null;
    }
  }
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.