Package com.hlcl.rql.as

Examples of com.hlcl.rql.as.Page


   */
  public java.util.List<ContentPage> getContentPages() throws RQLException {
    PageArrayList children = getContentPagesList().getChildPagesForTemplate(getParameter("contentPageTmpltName"));
    java.util.List<ContentPage> result = new ArrayList<ContentPage>(children.size());
    for (Iterator iterator = children.iterator(); iterator.hasNext();) {
      Page page = (Page) iterator.next();
      result.add(new ContentPage(page));
    }
    return result;
  }
View Full Code Here


      checkedPages.put(physicalPage.getPageGuid(), physicalPage.getPage());

      // for all physical pages below do
      PageArrayList physicalChilds = physicalPage.getAllPhysicalChildPages(true);
      for (int i = 0; i < physicalChilds.size(); i++) {
        Page child = (Page) physicalChilds.get(i);
        // skip ever touched pages to prevent looping
        if (checkedPages.containsKey(child.getPageGuid())) {
          continue;
        }
        // try on physical child page
        doRecursive(physicalPage.morphInto(child));
      }
View Full Code Here

    // 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;
      }
      // remember this physical page
View Full Code Here

   * Creates a new recycling block automatically if it doesn't exists already.
   */
  public int deactivate(PageArrayList contentPagesListChildren) throws RQLException {
    int result = 0;
    for (Iterator iterator = contentPagesListChildren.iterator(); iterator.hasNext();) {
      Page page = (Page) iterator.next();
      if (deactivate(page)) {
        result++;
      }
    }
    return result;
View Full Code Here

   * @see #getLinkRowByUrl(String)
   * @see #createLinkRow(String, String, boolean)
   * @throws RQLException
   */
  public Page getOrCreateLinkRowByUrl(String clickableText, String url, boolean isLinkPasswordProtected) throws RQLException {
    Page result = getLinkRowByUrl(url);
    if(result == null) {
      result = createLinkRow(clickableText, url, isLinkPasswordProtected);
    }
    return result;
  }
View Full Code Here

   * Creates a new link row in this block and fill all given row values. Updated is set to today.
   *
   * @throws RQLException
   */
  public Page createLinkRow(String clickableText, String url, boolean isLinkPasswordProtected) throws RQLException {
    Page currentLinkRow = super.createRow(clickableText);
    updateCurrentLinkRow(url, isLinkPasswordProtected);
    return currentLinkRow;
  }
View Full Code Here

   * found.
   */
  public Page getLinkRowByUrl(String url) throws RQLException {
    PageArrayList linkRows = getRows();
    for (int i = 0; i < linkRows.size(); i++) {
      Page rowPg = linkRows.getPage(i);
      TextAnchor anchor = rowPg.getTextAnchor(getParameter("linkTmpltElemName"));
      if (anchor.isUrlEquals(url)) {
        return rowPg;
      }
    }
    // signal not found
View Full Code Here

  /**
   * Überschreibt an der augenblicklichen Linkzeile die gegeben Werte. Mit {@link #nextRow()} kann zur nächsten Zeile navigiert
   * werden.
   */
  public void overwriteLinkRow(String clickableText, String url, boolean isLinkPasswordProtected) throws RQLException {
    Page pageToOverwrite = overwriteCurrentRowPage(clickableText);
    updateLinkRow(pageToOverwrite, url, isLinkPasswordProtected);
  }
View Full Code Here

      String projectGuid="06BE79A1D9F549388F06F6B649E27152";

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

      Page startPg = project.getPageById("27007");

      // prepare action
      Class.forName("org.hsqldb.jdbcDriver");
      Connection connection = DriverManager.getConnection("jdbc:hsqldb:mem:cacpat", "sa", "");
      String[] skipSuffixes = {"_fragment"};
      ContentAreaCollectorPageAction action = new ContentAreaCollectorPageAction(connection, "cacpat", skipSuffixes, "company");

      // 1. add all
      PageArrayList children = startPg.getListChildPages("content_pages_list");
      for (Iterator iterator = children.iterator(); iterator.hasNext();) {
        Page child = (Page) iterator.next();
        action.invoke(child);
      }
     
      // 2. add some with different content area
      action.setContentAreaName("business_administration");
View Full Code Here

    // start page itself
    Set result = getPage().collectContainedText(findList, delimiter, hasVisibleHeadline(), caseSensitive);
    // all block childs too
    PageArrayList childs = getAllNonPhysicalChildPages();
    for (int i = 0; i < childs.size(); i++) {
      Page child = (Page) childs.get(i);
      result.addAll(child.collectContainedText(findList, delimiter, hasVisibleHeadline(child), caseSensitive));
    }
    return result;
  }
View Full Code Here

TOP

Related Classes of com.hlcl.rql.as.Page

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.