Examples of Page


Examples of org.jbehave.core.io.rest.confluence.Confluence.Page

        return createResourceMap(baseUrl, searchTerms[0], searchTerms[1], includePattern);
    }

    private Map<String, Resource> createResourceMap(String baseUrl, String spaceKey, String pageName, String pattern) {
        Map<String, Resource> result = new HashMap<String, Resource>();
        Page rootPage = confluence.loadRootPage(baseUrl, spaceKey, pageName);
        addPage(result, rootPage.getSelfReference(), pattern);
        return result;
    }
View Full Code Here

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

      if (!pageClass.isAssignableTo(Widget.class)) {
        throw new GenerationException(
                "Class " + pageClass.getFullyQualifiedName() + " is annotated with @Page, so it must be a subtype " +
                "of Widget.");
      }
      Page annotation = pageClass.getAnnotation(Page.class);
      List<String> template = parsePageUriTemplate(pageClass, annotation.path());
      String pageName = template.get(0);

      MetaClass prevPageWithThisName = pageNames.put(pageName, pageClass);
      if (prevPageWithThisName != null) {
        throw new GenerationException(
                "Page names must be unique, but " + prevPageWithThisName + " and " + pageClass +
                " are both named [" + pageName + "]");
      }
      Statement pageImplStmt = generateNewInstanceOfPageImpl(pageClass, pageName);
      if (annotation.startingPage() == true) {
        defaultPages.add(pageClass);

        // need to assign the page impl to a variable and add it to the map twice
        ctor.append(Stmt.declareFinalVariable("defaultPage", PageNode.class, pageImplStmt));
        pageImplStmt = Variable.get("defaultPage");
View Full Code Here

Examples of org.jboss.seam.navigation.Page

     
      //First, try to get the conversation id from the request parameter defined for the page
      String viewId = Pages.getCurrentViewId();
      if ( viewId!=null )
      {
         Page page = Pages.instance().getPage(viewId);
        
         if(conversationName != null)
         {
             ConversationIdParameter currentConversationIdParameter = Pages.instance().getConversationIdParameter(conversationName);
            
             if(currentConversationIdParameter == null)
             {
                 throw new IllegalStateException("The conversationName specified: " + conversationName + ", does not exist.");
             }
             // Try to restore the conversation from parameters (the user has specified the exact conversation to restore using f:param)
             conversationId = currentConversationIdParameter.getRequestConversationId(parameters);
            
             // NOTE: If conversationId is still null, don't try to resolve the EL here because we don't yet
             // have a conversation and therefore things may blow up; resolve EL in getInitialConversationId()
         }
         else
         {
             conversationId = page.getConversationIdParameter().getRequestConversationId(parameters);
         }        
         //TODO: how about the parent conversation id?
      }

   }
View Full Code Here

Examples of org.jboss.seam.pageflow.Page

    );
    PageflowParser pageflowParser = new PageflowParser(stringReader);
    ProcessDefinition processDefinition = pageflowParser.readProcessDefinition();
   
    StartState start = (StartState) processDefinition.getStartState();
    Page confirm = (Page) processDefinition.getNode("confirm");
    Page complete = (Page) processDefinition.getNode("complete");
    Page cont = (Page) processDefinition.getNode("continue");
    assert confirm!=null;
    assert complete!=null;
    assert cont!=null;
   
    ProcessInstance processInstance = new ProcessInstance(processDefinition);
View Full Code Here

Examples of org.jboss.seam.pages.Page

      Conversation conversation = Conversation.instance();
      if ( !conversation.isNested() || conversation.isLongRunning() )
      {
         if (viewId!=null)
         {
            Page page = Pages.instance().getPage(viewId);
            return page.getConversationIdParameter().getParameterValue();
         }
         else
         {
            return conversation.getId();
         }
View Full Code Here

Examples of org.jbpm.graph.node.Page

    // SEAM can expect that when a wait state is entered, the main
    // path of execution is positioned in a page.  That page
    // contains the url that SEAM should render.
    // In this simple page flow process, we always start with the
    // review page.
    Page page = (Page) pageFlowToken.getNode();
    assertNotNull(page);
    assertEquals("review", page.getName());
    assertEquals("review.jsp", page.getUrl());
   
    // so now, the SEAM page flow renders the review page.
    // in review.jsp, the EL expression "taskInstance[document].text" should resolve
    // to 'blablabla'
    taskInstance = (TaskInstance) contextInstance.getVariable("taskInstance");
    document = (Document) taskInstance.getVariable("document");
    assertEquals("blablabla", document.getText());
    assertEquals("business process review task", taskInstance.getName());

    // suppose the user presses the approve button
    pageFlowToken.signal("approve");

    // now the page flow process should have moved to the
    // approved page with the approved.jsp
    page = (Page) pageFlowToken.getNode();
    assertNotNull(page);
    assertEquals("approved", page.getName());
    assertEquals("approved.jsp", page.getUrl());

    // ...and, the business process task instance should have ended.
    assertTrue(taskInstance.hasEnded());
    // causing the business process to move to the next state
    assertEquals("file horizontally", businessToken.getNode().getName());
View Full Code Here

Examples of org.jbpm.pvm.internal.query.Page

    addOrderByClause("hpi."+property+" desc");
    return this;
  }

  public HistoryProcessInstanceByVariableQuery page(int firstResult, int maxResults) {
    this.page = new Page(firstResult, maxResults);
    return this;
  }
View Full Code Here

Examples of org.jcoredb.buffer.Page

   
    int idx = -1;
   
    try
    {
      Page page  = null;
     
      //Check if the page is already in the buffer
      Integer frame = index.get(id);
     
      //If not then read the page from disk
      if (frame == null)
      {   
        idx = scheduler.getNextFrame();
       
        page = new Page(id);
        page.setBytes(fileSystem.read(id).getBytes());
               
        //Remove the old page from the index
        index.remove(frames[idx].getId());

        //Inform the scheduler that the old page was replaced
View Full Code Here

Examples of org.jpublish.Page

        return root;
    }

    public void render(JPublishContext context, String path, Reader in, Writer out) throws IOException, ViewRenderException {
        try {
            Page page = (Page) context.get(JPublishContext.JPUBLISH_PAGE);
            Object viewContext = createViewContext(context, path);

            Template template = fmConfig.getTemplate(path, UtilHttp.getLocale(context.getRequest()));
            template.setObjectWrapper(BeansWrapper.getDefaultInstance());
View Full Code Here

Examples of org.jsurveylib.model.Page

    public List<Page> getPages() {
        List<Page> pages = new ArrayList<Page>();
        //read all pages
        NodeList pageNodes = xmlRoot.getElementsByTagName("page");
        for (int p = 0; p < pageNodes.getLength(); p++) {
            Page page = new Page();
            pages.add(page);
            Element pageNode = (Element) pageNodes.item(p);
            if (pageNode.hasAttribute("label")) {
                page.setLabel(pageNode.getAttribute("label"));
            }
            if (pageNode.hasAttribute("isSkipped")) {
                page.setSkipped(pageNode.getAttribute("isSkipped").trim().equals("true"));
            }

            try {
                parseSurveyElements(pageNode, page);
            } catch (Exception e) {
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.