Package com.hlcl.rql.util.as

Examples of com.hlcl.rql.util.as.PageArrayList


   *
   * @return List of Pages
   */
  public void referencePageLinks(TemplateElement templateElement, MultiLink targetLink, int maxPages) throws RQLException {

    PageArrayList pages = getAllPages(maxPages);
    for (Iterator iterator = pages.iterator(); iterator.hasNext();) {
      Page page = (Page) iterator.next();
      page.getMultiLink(templateElement.getName()).referenceTo(targetLink);
    }
  }
View Full Code Here


    CmsClient client = new CmsClient(logonGuid);
    Project project = client.getProject(sessionKey, projectGuid);

    Page sourcePg = projectOld.getPageById("old page id");
    PageArrayList listChildren = sourcePg.getListChildPages("fields_list");

    Page targetPg = project.getPageById("new page id");

    for (int i = 0; i < listChildren.size(); i++) {
      Page childPage = listChildren.getPage(i);

    }
  }
View Full Code Here

    String projectGuid = "73671509FA5C43ED8FC4171AD0298AD2";

    CmsClient client = new CmsClient(logonGuid);
    Project project = client.getProject(sessionKey, projectGuid);

    PageArrayList allPagesSavedAsDraft = project.getAllPagesSavedAsDraft();
    PageArrayList allPagesWaitingForCorrection = project.getAllPagesWaitingForCorrection();
    PageArrayList allPagesWaitingForRelease = project.getAllPagesWaitingForRelease();
   
    User connectedUser = client.getConnectedUser();
    connectedUser.getPagesSavedAsDraft(project);
    connectedUser.getPagesWaitingForCorrection(project);
    connectedUser.getPagesWaitingForRelease(project);
View Full Code Here

    CmsClient client = new CmsClient(logonGuid);
    Project project = client.getProject(sessionKey, projectGuid);

    Page currentPg = project.getPageById("34009");
    PageArrayList listChildren = currentPg.getListChildPages("fields_list");

    for (int i = 0; i < listChildren.size(); i++) {
      Page page = listChildren.getPage(i);
      System.out.println(page.getInfoText());
      System.out.println(page.getLastChangedByUserName());
      System.out.println(page.getLastChangedOnAsddMMyyyyHmma());
    }
    if (currentPg.hasContainerChildPages("blocks_bottom")) {
View Full Code Here

    CmsClient client = new CmsClient(logonGuid);
    Project project = client.getProject(sessionKey, projectGuid);

    Page currentPg = project.getPageById("228766");
    PageArrayList listChildren1 = currentPg.getListChildPages("content_pages_list");
    PageArrayList listChildren2 = currentPg.getListChildPages("content_pages_list", "content_page");

    PageArrayList containerChildren1 = currentPg.getContainerChildPages("blocks_bottom");
    PageArrayList containerChildren2 = currentPg.getContainerChildPages("containerTemplateElementName", "link_table_block");

    listChildren1.findByPageId("pageId");

    listChildren1.findByHeadlineStartsWith("headlinePrefix");
    listChildren1.findByHeadline("headline");
View Full Code Here

  /**
   * Liefert eine Liste von Seiten zurück, die von einem Benutzer der gegebenen Gruppe erstellt wurde.
   */
  private PageArrayList filterAndWrapPageNodesInWorkflow(RQLNodeList pagesInWorkflowNodeList, UserGroup userGroup)
      throws RQLException {
    PageArrayList pages = new PageArrayList();
    if (pagesInWorkflowNodeList != null) {
      for (int i = 0; i < pagesInWorkflowNodeList.size(); i++) {
        RQLNode node = pagesInWorkflowNodeList.get(i);
        if (userGroup.contains(node.getAttribute("username"))) {
          pages.add(new Page(this, node.getAttribute("guid")));
        }
      }
    }
    return pages;
  }
View Full Code Here

  public PageArrayList getAllPagesBasedOn(Template template, int maxPages) throws RQLException {

    RQLNodeList pageNodes = getAllPagesBasedOnNodeList(template, maxPages);

    // check empty
    PageArrayList pages = new PageArrayList();
    if (pageNodes == null) {
      return pages;
    }

    // convert result
    for (int i = 0; i < pageNodes.size(); i++) {
      RQLNode pageNode = (RQLNode) pageNodes.get(i);
      pages.add(new Page(this, template, pageNode.getAttribute("guid"), pageNode.getAttribute("id"), pageNode
          .getAttribute("headline")));
    }

    return pages;
  }
View Full Code Here

        + "<PAGES action='listnames' />" + "</PROJECT>" + "</IODATA>";
    RQLNode rqlResponse = callCms(rqlRequest);
    RQLNodeList pageNodes = rqlResponse.getNodes("PAGE");

    // convert result
    PageArrayList pages = new PageArrayList(pageNodes.size());
    for (int i = 0; i < pageNodes.size(); i++) {
      RQLNode pageNode = (RQLNode) pageNodes.get(i);
      pages.add(new Page(this, pageNode.getAttribute("guid")));
    }
    return pages;
  }
View Full Code Here

        + "<TREESEGMENT type='app.1805' action='load' guid='60B59419CCD64C05B453BBD6EDA62C93' descent='app' />" + "</IODATA>";
    RQLNode rqlResponse = callCms(rqlRequest);
    RQLNodeList pageNodes = rqlResponse.getNodes("SEGMENT");

    // convert result
    PageArrayList pages = new PageArrayList();
    if (pageNodes == null) {
      return pages;
    }
    for (int i = 0; i < pageNodes.size(); i++) {
      RQLNode segmentNode = (RQLNode) pageNodes.get(i);
      pages.add(new Page(this, segmentNode.getAttribute("guid"), segmentNode.getAttribute("pageid"), segmentNode
          .getAttribute("col1value")));
    }
    return pages;
  }
View Full Code Here

    checkSessionKey();
    RQLNodeList pagesNodeList = getPagesByStateNodeList(workflowState, userOrNull);

    // wrap all page nodes
    PageArrayList pages = new PageArrayList();
    if (pagesNodeList != null) {
      for (int i = 0; i < pagesNodeList.size(); i++) {
        RQLNode node = pagesNodeList.get(i);
        pages.add(new Page(this, node.getAttribute("guid")));
      }
    }
    return pages;
  }
View Full Code Here

TOP

Related Classes of com.hlcl.rql.util.as.PageArrayList

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.