Package com.hlcl.rql.as

Examples of com.hlcl.rql.as.Page


   * Seiten werden gelöscht!
   */
  public void deleteAllWithContainerChilds(String containerTemplateElementName, boolean ignoreReferences) throws RQLException {

    for (int i = 0; i < size(); i++) {
      Page page = (Page) get(i);
      page.deleteWithContainerChilds(containerTemplateElementName, ignoreReferences);
    }
    clear();
  }
View Full Code Here


   * Prüft mit #startsWith, da in RD häufig der Extender nicht im filename auftaucht.
   */
  public Page findByFilename(String filename) throws RQLException {

    for (int i = 0; i < size(); i++) {
      Page page = (Page) get(i);
      if (filename.startsWith(page.getFilename())) {
        return page;
      }
    }
    // indicate not found
    return null;
View Full Code Here

   * Prüft mit #endsWith().
   */
  public Page findByFilenameEndsWith(String filenameSuffix) throws RQLException {

    for (int i = 0; i < size(); i++) {
      Page page = (Page) get(i);
      if (page.getFilename().endsWith(filenameSuffix)) {
        return page;
      }
    }
    // indicate not found
    return null;
View Full Code Here

   * Prüft mit #equals().
   */
  public Page findByHeadline(String headline) throws RQLException {

    for (int i = 0; i < size(); i++) {
      Page page = (Page) get(i);
      if (headline.equals(page.getHeadline())) {
        return page;
      }
    }
    // indicate not found
    return null;
View Full Code Here

   * Prüft mit #startsWith().
   */
  public Page findByHeadlineStartsWith(String headlinePrefix) throws RQLException {

    for (int i = 0; i < size(); i++) {
      Page page = (Page) get(i);
      if (page.getHeadline().startsWith(headlinePrefix)) {
        return page;
      }
    }
    // indicate not found
    return null;
View Full Code Here

   * Prüft den ersten Gruppenwert group(1) der RegEx mit #equals(groupValue).
   */
  public Page findByHeadlineRegExFirstGroupEquals(String regexWithGroup, String groupValue) throws RQLException {
    Pattern pattern = Pattern.compile(regexWithGroup);
    for (int i = 0; i < size(); i++) {
      Page page = (Page) get(i);
      Matcher matcher = pattern.matcher(page.getHeadline());
      if (matcher.find() && matcher.group(1).equals(groupValue)) {
        return page;
      }
    }
    // indicate not found
View Full Code Here

   * Prüft mit #equals().
   */
  public Page findByPageId(String pageId) throws RQLException {

    for (int i = 0; i < size(); i++) {
      Page page = (Page) get(i);
      if (pageId.equals(page.getPageId())) {
        return page;
      }
    }
    // indicate not found
    return null;
View Full Code Here

   * Prüft mit #equals().
   */
  public Page findByPageGuid(String pageGuid) throws RQLException {

    for (int i = 0; i < size(); i++) {
      Page page = (Page) get(i);
      if (pageGuid.equals(page.getPageGuid())) {
        return page;
      }
    }
    // indicate not found
    return null;
View Full Code Here

  public Page findByStandardFieldDateValue(String templateElementName, ReddotDate dateValue) throws RQLException {

    String value = dateValue.getAsyyyyMMdd();

    for (int i = 0; i < size(); i++) {
      Page page = (Page) get(i);
      if (value.equals(page.getStandardFieldDateValue(templateElementName).getAsyyyyMMdd())) {
        return page;
      }
    }
    // indicate not found
    return null;
View Full Code Here

   * verhindern. TODO werden hier auch draft seiten anderer autoren mit gefunden?
   */
  public Page findByStandardFieldTextValue(String templateElementName, String value, boolean freeOccupiedMemory) throws RQLException {

    for (int i = 0; i < size(); i++) {
      Page page = (Page) get(i);
      if (value.equals(page.getStandardFieldTextValue(templateElementName))) {
        return page;
      }
      // free occupied memory
      if (freeOccupiedMemory) {
        page.freeOccupiedMemory();
      }
    }
    // indicate not found
    return null;
  }
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.