Package com.hlcl.rql.as

Examples of com.hlcl.rql.as.Page


   */
  public PageArrayList select(PageFilter filter) throws RQLException {

    PageArrayList selected = new PageArrayList();
    for (int i = 0; i < size(); i++) {
      Page page = (Page) get(i);
      if (filter.check(page)) {
        selected.add(page);
      }
    }
    return selected;
View Full Code Here


   */
  public PageArrayList selectAllPagesWithHeadlineIn(Collection<String> headlines) throws RQLException {

    PageArrayList selected = new PageArrayList();
    for (int i = 0; i < size(); i++) {
      Page page = (Page) get(i);
      if (headlines.contains(page.getHeadline())) {
        selected.add(page);
      }
    }
    return selected;
  }
View Full Code Here

      String projectGuid="06BE79A1D9F549388F06F6B649E27152";

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

      Page currentPg = project.getPageById("127290");
      PageArrayList pages = currentPg.getListChildPages("admin_list");

      ModificationsCollector mods = new ModificationsCollector();
      mods.created(pages.getPage(0));
      mods.updated(pages.getPage(1));
      mods.created(pages.getPage(3));
View Full Code Here

          String language = languages[i];
          LanguageVariant lv = project.setCurrentLanguageVariantByRfcLanguageId(language);
          System.out.println(project.getCurrentLanguageVariant().getName());

          // get page content elements in current lv
          Page currentPg = project.getPageById("3466");
          System.out.println("dbg " + lv.getName() + "=" + currentPg.getHeadline());
          matrix.addProperty("headline", currentPg.getHeadline(), lv);
          matrix.addProperty("changed by", currentPg.getLastChangedByUserName(), lv);
          matrix.addProperty("changed on", currentPg.getLastChangedOnAsddMMyyyy(), lv);
          matrix.addProperty("state", currentPg.getStateInfo(), lv);

          List<ContentElement> contentElements = currentPg.getContentElements(false);

          // // out values
          // for (ContentElement contentElement : contentElements) {
          // System.out.println("dbg " + contentElement.getTemplateElementName() + " " + contentElement.getValueAsString());
          // }
View Full Code Here

   * Return all pages from current pages for which the configured attribute is contained in given list.
   */
  private PageArrayList getCurrentPagesWithAttributeIn(Collection<String> attributes) throws RQLException {
    PageArrayList result = new PageArrayList();
    for (int i = 0; i < currentPages.size(); i++) {
      Page page = (Page) currentPages.get(i);
      PageAttributeAdapter adapter = buildAdapter(page);
      if (attributes.contains(adapter.getValue())) {
        result.add(page);
      }
    }
View Full Code Here

   * Sets the current attributes by applying the adapter to all current pages.
   */
  private void initializeCurrentAttributes() throws RQLException {
    currentAttributes = new ArrayList<String>(currentPages.size());
    for (Iterator iterator = currentPages.iterator(); iterator.hasNext();) {
      Page page = (Page) iterator.next();
      PageAttributeAdapter adapter = buildAdapter(page);
      currentAttributes.add(adapter.getValue());
    }
  }
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.