Package com.hlcl.rql.as

Examples of com.hlcl.rql.as.Page


   * @param ifNotAvailable
   * @return
   * @throws RQLException
   */
  public String getResponsibleUserNameIfAvailable(String ifNotAvailable) throws RQLException {
    Page page = getPage();
    String templateElementName = getParameter("respNameTmpltElemName");
    if (page.contains(templateElementName)) {
      StandardFieldTextElement rdText = page.getStandardFieldTextElement(templateElementName);
      if (rdText != null) {
        return rdText.getText();
      }
    }
    return ifNotAvailable;
View Full Code Here


   * @param ifNotAvailable
   * @return
   * @throws RQLException
   */
  public String getResponsibleUserIdIfAvailable(String ifNotAvailable) throws RQLException {
    Page page = getPage();
    String templateElementName = getParameter("respIdTmpltElemName");
    if (page.contains(templateElementName)) {
      StandardFieldTextElement rdText = page.getStandardFieldTextElement(templateElementName);
      if (rdText != null) {
        return rdText.getText();
      }
    }
    return ifNotAvailable;
View Full Code Here

    }

    // try to link the department row for the determined department number, if no row linked
    boolean linked = false;
    if (!isResponsibleDepartmentLinked() && depNoToLinkOrNull != null) {
      Page newRowPg = getResponsibleDepartments().findByHeadline(depNoToLinkOrNull);
      if (newRowPg != null) {
        linkResponsibleDepartment(newRowPg);
        linked = true;
      }
    }
View Full Code Here

   * @param ifNotAvailable
   * @return
   * @throws RQLException
   */
  public String getUpdatedOnIfAvailable(String ifNotAvailable) throws RQLException {
    Page page = getPage();
    String templateElementName = getParameter("pageUpdatedTmpltElemName");
    if (page.contains(templateElementName)) {
      ReddotDate rdDate = page.getStandardFieldDateValue(templateElementName);
      if (rdDate != null) {
        return rdDate.getAsyyyyMMdd();
      }
    }
    return ifNotAvailable;
View Full Code Here

  public Set<PhysicalPage> collectBlockPagesPhysicalParents(String filterTemplateName) throws RQLException {
    Set<PhysicalPage> result = new HashSet<PhysicalPage>();
    PageArrayList blockPages = getBlocksContainer().getChildPagesForTemplate(filterTemplateName);
    // check parent of all block pages
    for (int i = 0; i < blockPages.size(); i++) {
      Page blockPage = blockPages.getPage(i);
      collectPhysicalParentsPrim(result, blockPage);
    }
    return result;
  }
View Full Code Here

  public Set<PhysicalPage> collectBlockPagesPhysicalParents() throws RQLException {
    Set<PhysicalPage> result = new HashSet<PhysicalPage>();
    PageArrayList blockPages = getBlocksContainer().getChildPages();
    // check parent of all block pages
    for (int i = 0; i < blockPages.size(); i++) {
      Page blockPage = blockPages.getPage(i);
      collectPhysicalParentsPrim(result, blockPage);
    }
    return result;
  }
View Full Code Here

      // remember in instance to steer next refresh
      refreshIntervalInMinutes = Integer.parseInt(parms.get("refreshIntervalInMinutes"));

      // get row pages
      Page tablePg = project.getPageById(parms.get("responsibleTablePageId"));
      PageArrayList rowPages = tablePg.getListChildPages(parms.get("departmentsListTmpltElemName"));

      // get all data and save within data holder rows
      responsibleDepartments = new ArrayList<ResponsibleTableRow>(rowPages.size());
      for (Iterator iterator = rowPages.iterator(); iterator.hasNext();) {
        Page rowPg = (Page) iterator.next();

        // copy and save data
        ResponsibleTableRow rowData = new ResponsibleTableRow(rowPg.getPageGuid(), rowPg.getStandardFieldTextValue(parms
            .get("responsibleAreaTmpltElemName")), rowPg.getStandardFieldTextValue(parms.get("responsibleRccBackupUserIdTmpltElemName")),
            rowPg.getStandardFieldTextValue(parms.get("responsibleRccBackupUserNameTmpltElemName")), rowPg
                .getStandardFieldTextValue(parms.get("responsibleSourceDepartmentNameTmpltElemName")), rowPg.getHeadline(), rowPg
                .getStandardFieldTextValue(parms.get("responsibleRccUserIdTmpltElemName")), rowPg.getStandardFieldTextValue(parms
                .get("responsibleRccUserNameTmpltElemName")), rowPg.getOptionListValue(parms
                .get("responsibleMailSubjectStatisticAreaTmpltElemName")), rowPg.getStandardFieldTextValue(parms
                .get("responsibleMailWorkAreaTmpltElemName")));
        responsibleDepartments.add(rowData);
      }

      // remember last refresh time only if no exception
View Full Code Here

   * Didn't link the given contentPagesChildPage to the recycling block, if it's not a child of this page's content_pages_list element.
   */
  public int deactivate(PageArrayList contentPagesListChildren, RecyclingTableBlock targetBlock) throws RQLException {
    int result = 0;
    for (Iterator iterator = contentPagesListChildren.iterator(); iterator.hasNext();) {
      Page page = (Page) iterator.next();
      if (deactivate(page, targetBlock)) {
        result++;
      }
    }
    return result;
View Full Code Here

   */
  private PageArrayList getPath(String startPageIdsOrNull, String separator, boolean includeBlocks, boolean includeNodes) throws RQLException {

    PageArrayList result = new PageArrayList();
    // collect going backwards until project start page
    Page page = this.getPage();
    boolean loop = true;
    try {
      while (loop) {
        int type = getPageType(page);
        if (type == PAGE_TYPE_PHYSICAL) {
          result.add(page);
        } else if (type == PAGE_TYPE_BLOCK) {
          if (includeBlocks) {
            result.add(page);
          }
        } else if (type == PAGE_TYPE_NODE) {
          if (includeNodes) {
            if (isContentNode(page)) {
              List pseudoList = page.getList(getParameter("nodePagePseudoListTmpltElemName"));
              if (pseudoList != null && pseudoList.hasChildPages()) {
                Page firstChild = pseudoList.getFirstChildPage();
                if (firstChild != null) {
                  result.add(firstChild);
                }
              }
            } else {
View Full Code Here

    String projectGuid = "73671509FA5C43ED8FC4171AD0298AD2";

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

    Page currentPg = project.getPageById("34009");

    // check page state
    currentPg.isInStateWaitingToBeTranslated();
    System.out.println(currentPg.getStateInfo());

    // translation editor action: do not translate
    currentPg.doNotTranslateFromMainToCurrent();
   
    // do not translate from main to de
    LanguageVariant targetLanguageVariant = project.getLanguageVariantByRfcLanguageId("de");
    currentPg.doNotTranslateFromMainTo(targetLanguageVariant);
   
    // do not translate, very flexible
    LanguageVariant sourceLanguageVariant = project.getLanguageVariantByRfcLanguageId("en");
    currentPg.doNotTranslate(sourceLanguageVariant, targetLanguageVariant);
  }
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.