Package com.hlcl.rql.as

Examples of com.hlcl.rql.as.Template


   *            headline of new content page
   */
  public ContentPage createContentPage(String headline, boolean addAtBottom, String requesterUserId, boolean isResponsibleIdAPerson,
      String responsibleId, String responsibleName, String responsibleDepartmentNumber) throws RQLException {
    // create content page
    Template template = getTemplateByName(getParameter("contentTmpltFldrName"), getParameter("contentPageTmpltName"));
    ContentPage result = new ContentPage(getContentPagesList().createAndConnectPage(template, headline, addAtBottom));
    // set responsibility
    result.setResponsibility(requesterUserId, isResponsibleIdAPerson, responsibleId, responsibleName, responsibleDepartmentNumber);
    // updated today
    result.setUpdatedToday();
View Full Code Here


   * @throws RQLException
   */
  public RecyclingTableBlock createBottomRecyclingTableBlock() throws RQLException {
    Container ctr = getBottomBlocksContainer();
    String templateName = getParameter("recyclingBlockTmpltName");
    Template template = getTemplateByName(getParameter("contentTmpltFldrName"), templateName);
    return new RecyclingTableBlock(ctr.createAndConnectPage(template, getHeadline() + " " + templateName, true));
  }
View Full Code Here

   * @throws RQLException
   */
  public LinkTableBlock createBottomLinkTableBlock() throws RQLException {
    Container ctr = getBottomBlocksContainer();
    String templateName = getParameter("linkTableBlockTmpltName");
    Template template = getTemplateByName(getParameter("contentTmpltFldrName"), templateName);
    return new LinkTableBlock(ctr.createAndConnectPage(template, getHeadline() + " " + templateName, true));
  }
View Full Code Here

   *
   * @param headline
   *            Headline of new created link table block page
   */
  public LinkTableBlock createLinkTableBlock(String headlinePrefix) throws RQLException {
    Template template = getProject().getTemplateByName(getParameter("contentTmpltFldrName"),
        getParameter("linkTableBlockTmpltName"));
    return new LinkTableBlock(getPage().createAndConnectPageAtContainer(getParameter("blocksTmpltElemName"), template,
        headlinePrefix + " " + template.getName()));
  }
View Full Code Here

   * @throws RQLException
   */
  public RecyclingTableBlock createRecyclingTableBlock() throws RQLException {
    Container ctr = getBlocksContainer();
    String templateName = getParameter("recyclingBlockTmpltName");
    Template template = getTemplateByName(getParameter("contentTmpltFldrName"), templateName);
    return new RecyclingTableBlock(ctr.createAndConnectPage(template, getHeadline() + " " + templateName, true));
  }
View Full Code Here

   * @throws RQLException
   */
  public EnhancedListTableBlock createEnhancedListTableBlock() throws RQLException {
    Container ctr = getBlocksContainer();
    String templateName = getParameter("enhancedListTableBlockTmpltName");
    Template template = getTemplateByName(getParameter("contentTmpltFldrName"), templateName);
    return new EnhancedListTableBlock(ctr.createAndConnectPage(template, getHeadline() + " " + templateName, true));
  }
View Full Code Here

  /**
   * Return the page type for the encapsulated page.
   */
  private int getPageType(Page page) throws RQLException {
    Template template = page.getTemplate();
    if (getNodeTemplates().contains(template)) {
      return PAGE_TYPE_NODE;
    }
    if (template.contains(getParameter("isPhysicalPageTmpltElemName"))) {
      return PAGE_TYPE_PHYSICAL;
    } else {
      return PAGE_TYPE_BLOCK;
    }
  }
View Full Code Here

    String projectGuid = "73671509FA5C43ED8FC4171AD0298AD2";

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

    Template template = project.getTemplateByName("content_templates", "field_page");

    Page currentPg = project.getPageById("34009");
    Page fieldPg = currentPg.createAndConnectPageAtList("fields_list", template, "new field page", true);
  }
View Full Code Here

    String projectGuid = "268F46EF5EB74A75824856D3DA1C6597";

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

    Template newTemplate = project.getTemplateByName("content_templates", "text_block");

    for (TemplateFolder folder : project.getAllTemplateFolders()) {
      for (Template template : folder.getTemplates()) {
        // skip not page templates
        if (!template.getName().endsWith("_page")) {
View Full Code Here

TOP

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

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.