Package com.hlcl.rql.as

Examples of com.hlcl.rql.as.Page


  private void doRecursive(Page page) throws RQLException {

    PageArrayList childs = page.getChildPages();
    // for all childs do
    for (int i = 0; i < childs.size(); i++) {
      Page child = (Page) childs.get(i);
      // classify physical or not
      if (child.contains(isPhysicalPageTmpltElemName)) {
        // add only
        allPhysicalChilds.add(child);
      } else {
        // add and try on child
        allNonPhysicalChilds.add(child);
View Full Code Here


  private void doRecursiveOnlyPhysicalPages(Page page) throws RQLException {

    PageArrayList childs = page.getChildPagesIgnoreShadowedMultilinks(shadowElementsNameSuffix);
    // for all childs do
    for (int i = 0; i < childs.size(); i++) {
      Page child = (Page) childs.get(i);
      // classify physical or not
      if (child.contains(isPhysicalPageTmpltElemName)) {
        // add only
        allPhysicalChilds.add(child);
      } else {
        doRecursiveOnlyPhysicalPages(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;
      }
View Full Code Here

      System.out.println(client.getConnectedUser().getName());

      // check different pages
      String[] pageIds = {"127290", "624522", "656879", "7375"};
      for (int i = 0; i < pageIds.length; i++) {
        Page startPg = project.getPageById(pageIds[i]);
        System.out.println(startPg.getInfoText());
       
        // build helper class
        PublishPagePolicies policies = new PublishPagePolicies(startPg);
//        System.out.println(policies.getPageProjectVariantNameSuffixes());
View Full Code Here

   *            clickable name of the mail address
   * @param updated
   *            the page updated date
   */
  public void setFooter(String responsibleId, String displayName, ReddotDate updated) throws RQLException {
    Page page = getPage();
    page.startSetElementValues();
    page.addSetStandardFieldTextValue(getParameter("respIdTmpltElemName"), responsibleId);
    page.addSetStandardFieldTextValue(getParameter("respNameTmpltElemName"), displayName);
    page.addSetStandardFieldDateValue(getParameter("pageUpdatedTmpltElemName"), updated);
    page.endSetElementValues();
  }
View Full Code Here

   *            person or group mailbox displayed name in page footer link
   * @throws RQLException
   */
  public void setResponsibility(String requesterUserId, String responsibleType, String responsibleId, String responsibleName)
      throws RQLException {
    Page page = getPage();
    page.startSetElementValues();
    page.startDeleteElementValues();
    // delete or update
    if (requesterUserId.length() == 0) {
      page.addDeleteStandardFieldTextValue(getParameter("requesterUserIdTmpltElemName"));
    } else {
      page.addSetStandardFieldTextValue(getParameter("requesterUserIdTmpltElemName"), requesterUserId.toLowerCase());
    }
    page.addSetOptionListValue(getParameter("responsibleIdTypeTmpltElemName"), responsibleType);
    // convert a personal user id always to lower case
    if (responsibleType.equals(getParameter("responsibleIdTypePersonValue"))) {
      responsibleId = responsibleId.toLowerCase();
    }
    page.addSetStandardFieldTextValue(getParameter("respIdTmpltElemName"), responsibleId);
    page.addSetStandardFieldTextValue(getParameter("respNameTmpltElemName"), responsibleName);
    page.endDeleteElementValues();
    page.endSetElementValues();
  }
View Full Code Here

   * Returns true, if the linked responsible department row is contained in the responsible department table.
   * <p>
   * Returns false if no responsible department row is linked at all.
   */
  public boolean isResponsibleDepartmentValid() throws RQLException {
    Page rowPg = getResponsibleRow();
    if (rowPg == null) {
      return false;
    }
    return getResponsibleDepartments().contains(rowPg);
  }
View Full Code Here

   *             if the given page is not an instance of responsible_table_row
   * @throws InvalidResponsibleDepartmentException
   *             if given department number cannot be found in table
   */
  public void linkResponsibleDepartmentByPageGuid(String responsibleTableRowPageGuid) throws RQLException {
    Page depPageOrNull = getResponsibleDeparmentRowByPageGuid(responsibleTableRowPageGuid);
    if (depPageOrNull == null) {
      throw new InvalidResponsibleDepartmentException("Responsible department row for given page guid "
          + responsibleTableRowPageGuid + " cannot be found. Try with a valid number again.");
    }
    linkResponsibleDepartment(depPageOrNull);
View Full Code Here

   *             if the given page is not an instance of responsible_table_row
   * @throws InvalidResponsibleDepartmentException
   *             if given department number cannot be found in table
   */
  public void linkResponsibleDepartmentByDepartmentNumber(String responsibleTableRowDepartmentNumber) throws RQLException {
    Page depPageOrNull = getResponsibleDeparmentRowByNumber(responsibleTableRowDepartmentNumber);
    if (depPageOrNull == null) {
      throw new InvalidResponsibleDepartmentException("Responsible department row for given number "
          + responsibleTableRowDepartmentNumber + " cannot be found. Try with a valid number again.");
    }
    linkResponsibleDepartment(depPageOrNull);
View Full Code Here

  /**
   * Returns the list MultiLink element from the central responsible departments table.
   */
  private com.hlcl.rql.as.List getDepartmentsTableList() throws RQLException {
    Page tablePg = getProject().getPageById(getParameter("responsibleTablePageId"));
    com.hlcl.rql.as.List departmentsList = tablePg.getList(getParameter("departmentsListTmpltElemName"));
    return departmentsList;
  }
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.