Package com.hlcl.rql.util.as

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


   * Liefert eine Liste mit allen über MainLink verknüpften Seiten. Erste Seite ist die Projektstartseite und letzte ist diese Seite
   * selbst.
   */
  public PageArrayList collectMainLinkParentPagesUntilRoot() throws RQLException {

    PageArrayList result = new PageArrayList();

    // collect going backwards until project start page
    Page page = this;
    try {
      while (true) {
        result.add(page);
        page = page.getMainLinkParentPage();
      }
    } catch (UnlinkedPageException upe) {
      // simply end iteration
    }
View Full Code Here


  /**
   * Löscht diese Seite mit allen Kindseiten des gegebenen Containers. Dieses Page Objekt darf danach nicht mehr benutzt werden.
   */
  public void deleteWithContainerChilds(String containerTemplateElementName, boolean ignoreReferences) throws RQLException {

    PageArrayList blockPages = getContainerChildPages(containerTemplateElementName);
    for (int j = 0; j < blockPages.size(); j++) {
      Page blockPg = (Page) blockPages.get(j);
      blockPg.delete(ignoreReferences);
    }
    delete(ignoreReferences);
  }
View Full Code Here

   */
  public PageArrayList getChildPages() throws RQLException {

    // collect from all multilinks, which are not reference sources
    java.util.List multiLinks = getMultiLinks(false);
    PageArrayList childPages = new PageArrayList();
    for (int i = 0; i < multiLinks.size(); i++) {
      MultiLink multiLink = (MultiLink) multiLinks.get(i);
      childPages.addAll(multiLink.getChildPages());
    }
    return childPages;
  }
View Full Code Here

   */
  public PageArrayList getChildPagesIgnoreShadowedMultilinks(String shadowElementsNameSuffix) throws RQLException {

    // collect from all multilinks, which are not reference sources
    java.util.List multiLinks = getMultiLinksWithoutShadowedOnes(shadowElementsNameSuffix, false);
    PageArrayList childPages = new PageArrayList();
    for (int i = 0; i < multiLinks.size(); i++) {
      MultiLink multiLink = (MultiLink) multiLinks.get(i);
      childPages.addAll(multiLink.getChildPages());
    }
    return childPages;
  }
View Full Code Here

  public PageArrayList getParentPages() throws RQLException {

    java.util.List<MultiLink> links = getMultiLinksToThisPage();

    // collect all pages where these links are on
    PageArrayList result = new PageArrayList(links.size());
    for (Iterator iter = links.iterator(); iter.hasNext();) {
      MultiLink link = (MultiLink) iter.next();
      result.add(link.getPage());
    }
    return result;
  }
View Full Code Here

  public Page getPageById(String pageId) throws RQLException {

    PageSearch pageSearch = getPageSearch();
    pageSearch.addPageIdCriteriaEqual(pageId);
    // max 1 page in result, so get all
    PageArrayList result = pageSearch.getPages();
    return result.size() != 1 ? null : result.first();
  }
View Full Code Here

  private String searchForPageById(String pageId) throws RQLException {

    PageSearch pageSearch = getPageSearch();
    pageSearch.addPageIdCriteriaEqual(pageId);
    // max 1 page in result, so get all
    PageArrayList result = pageSearch.getPages();
    return result.size() != 1 ? null : result.first().getPageGuid();
  }
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.