Package com.hlcl.rql.util.as

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


  /**
   * Collect and classify only physical child pagess.
   */
  private void doRecursiveOnlyPhysicalPages(Page page) throws RQLException {

    PageArrayList childs = page.getChildPagesIgnoreShadowedMultilinks(shadowElementsNameSuffix);
    // for all childs do
    for (int i = 0; i < childs.size(); i++) {
      Page child = (Page) childs.get(i);
      // classify physical or not
      if (child.contains(isPhysicalPageTmpltElemName)) {
        // add only
        allPhysicalChilds.add(child);
      } else {
View Full Code Here


   */
  public PageArrayList getAllNonPhysicalChildPages() throws RQLException {
    if (allPhysicalChilds == null) {
      gatherChilds(true);
    }
    return new PageArrayList(allNonPhysicalChilds);
  }
View Full Code Here

   */
  public PageArrayList getAllPhysicalChildPages(boolean collectNonPhysicalChildPagesAsWell) throws RQLException {
    if (allPhysicalChilds == null) {
      gatherChilds(collectNonPhysicalChildPagesAsWell);
    }
    return new PageArrayList(allPhysicalChilds);
  }
View Full Code Here

   * Liefert alle Kindseiten, die an allen Links dieses DynLink-Sets angehängt sind.
   */
  public PageArrayList getChildPages() throws RQLException {

    java.util.List anchors = getAnchors();
    PageArrayList result = new PageArrayList(anchors.size());

    // collect all anchors child pages
    for (Iterator iter = anchors.iterator(); iter.hasNext();) {
      Anchor anchor = (Anchor) iter.next();
      Page childOrNull = anchor.getChildPage();
      if (childOrNull != null) {
        result.add(childOrNull);
      }
    }
    return result;
  }
View Full Code Here

    // invoke configured page action
    pageAction.invoke(physicalPage.getPage());

    // search on all physical childs
    // for all physical pages below do
    PageArrayList physicalChilds = physicalPage.getAllPhysicalChildPages(false);
    for (int i = 0; i < physicalChilds.size(); i++) {
      Page child = (Page) physicalChilds.get(i);

      // skip pages investigated already
      if (treePages.containsPage(child)) {
        continue;
      }
View Full Code Here

  /**
   * Returns the first link table block found in this page's container element blocks, or null, if no link table block found.
   */
  public LinkTableBlock getFirstLinkTableBlock() throws RQLException {
    PageArrayList pages = getPage().getContainerChildPages(getParameter("blocksTmpltElemName"),
        getParameter("linkTableBlockTmpltName"));
    if (pages.isEmpty()) {
      return null;
    }
    return new LinkTableBlock(pages.first());
  }
View Full Code Here

  /**
   * Returns the first text block found in this page's container element blocks, or null, if no block found.
   */
  public TextBlock getFirstTextBlock() throws RQLException {
    PageArrayList pages = getPage()
        .getContainerChildPages(getParameter("blocksTmpltElemName"), getParameter("textBlockTmpltName"));
    if (pages.isEmpty()) {
      return null;
    }
    return new TextBlock(pages.first());
  }
View Full Code Here

   * Returns the responsibility departments pages (cached within project).
   */
  public PageArrayList getResponsibleDepartments() throws RQLException {
    Project project = getProject();
    String responsiblityPagesCacheId = getResponsiblityPagesCacheId();
    PageArrayList rowPages = project.getPages(responsiblityPagesCacheId);
    if (rowPages == null) {
      // get row pages
      com.hlcl.rql.as.List departmentsList = getDepartmentsTableList();
      rowPages = departmentsList.getChildPages();
      // cache within project
View Full Code Here

   * Returns the first recycling table block from the blocks container or null, if it doesn't have a recycling table block page at
   * all.
   */
  public RecyclingTableBlock getRecyclingTableBlock() throws RQLException {
    Container bottomCtr = getBlocksContainer();
    PageArrayList children = bottomCtr.getChildPagesForTemplate(getParameter("recyclingBlockTmpltName"));
    // no one found
    if (children.size() == 0) {
      return null;
    }
    // wrap
    return new RecyclingTableBlock(children.first());
  }
View Full Code Here

  /**
   * Returns the first enhanced list table block from the blocks container or null, if it doesn't have such a block page at all.
   */
  public EnhancedListTableBlock getEnhancedListTableBlock() throws RQLException {
    Container bottomCtr = getBlocksContainer();
    PageArrayList children = bottomCtr.getChildPagesForTemplate(getParameter("enhancedListTableBlockTmpltName"));
    // no one found
    if (children.size() == 0) {
      return null;
    }
    // wrap
    return new EnhancedListTableBlock(children.first());
  }
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.