Examples of CmsClient


Examples of com.hlcl.rql.as.CmsClient

    String logonGuid = "0B1FBC04A6D94A45A6C5E2AC8915B698";
    String sessionKey = "C26CF959E1434E31B7F9DA89829369B4";
    String projectGuid = "73671509FA5C43ED8FC4171AD0298AD2";

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

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

    // check page state
    currentPg.isInStateWaitingToBeTranslated();
View Full Code Here

Examples of com.hlcl.rql.as.CmsClient

    String logonGuid = "0B1FBC04A6D94A45A6C5E2AC8915B698";
    String sessionKey = "C26CF959E1434E31B7F9DA89829369B4";
    String projectGuid = "73671509FA5C43ED8FC4171AD0298AD2";

    CmsClient client = new CmsClient(logonGuid);

    // import a plugin from xml definition
    // file path valid on server where MS is installed
    Plugin plugin = client.importPlugin("E:\\Server\\CMS\\ASP\\PlugIns\\jrql\\cancelWaitingJobs.xml");
    System.out.println(plugin.getPluginGuid());
    System.out.println(plugin.getName() + " " + plugin.isActive());

    // assign projects to plug-in and activate
    String[] guids = { "06BE79A1D9F549388F06F6B649E27152", "73671509FA5C43ED8FC4171AD0298AD2" };
    plugin.assignProjects(guids);
    System.out.println(plugin.isActive());

    // enabling/disabling group of plug-ins
    List<Plugin> enabledPlugins = client.enablePluginsByNameContains("PROD", true);
    System.out.println(enabledPlugins);
    List<Plugin> disabledPlugins = client.disablePluginsByNameContains("PROD", true);
    System.out.println(disabledPlugins);
   
    // delete plug-ins
    int anzahl = client.deletePluginsByNameContains("jRQL", false);
    System.out.println(anzahl);

  }
View Full Code Here

Examples of com.hlcl.rql.as.CmsClient

    // get fixed text styles
    String fixedStyles = IOUtils.toString(new FileInputStream("d:\\texteditor_styles.txt"));

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

    for (TemplateFolder folder : project.getAllTemplateFolders()) {
      for (Template template : folder.getTemplates()) {
        for (TemplateElement textElem : template.getTextTemplateElements()) {
          if (textElem.isHtmlText()) {
View Full Code Here

Examples of com.hlcl.rql.as.CmsClient

    String logonGuid = "0B1FBC04A6D94A45A6C5E2AC8915B698";
    String sessionKey = "C26CF959E1434E31B7F9DA89829369B4";
    String projectGuid = "73671509FA5C43ED8FC4171AD0298AD2";

    CmsClient client = new CmsClient(logonGuid);

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

    String startPageId = "4712";
   
    // create walker
    Class.forName("org.hsqldb.jdbcDriver");
View Full Code Here

Examples of com.hlcl.rql.as.CmsClient

    String logonGuid = "0B1FBC04A6D94A45A6C5E2AC8915B698";
    String sessionKey = "C26CF959E1434E31B7F9DA89829369B4";
    String projectGuid = "73671509FA5C43ED8FC4171AD0298AD2";

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

    Page currentPg = project.getPageById("4711");
    boolean empty = currentPg.isImageEmpty("templateElementName");
    boolean entered = currentPg.isImageValueEntered("templateElementName");
View Full Code Here

Examples of com.hlcl.rql.as.CmsClient

    String logonGuid = "0B1FBC04A6D94A45A6C5E2AC8915B698";
    String sessionKey = "C26CF959E1434E31B7F9DA89829369B4";
    String projectGuid = "73671509FA5C43ED8FC4171AD0298AD2";

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

    Page sourcePage = project.getPageById("4711");
    Page targetPage = project.getPageById("4712");

    // copy all content elements (source and target should have same content class)
View Full Code Here

Examples of com.hlcl.rql.as.CmsClient

    String logonGuid = "0B1FBC04A6D94A45A6C5E2AC8915B698";
    String sessionKey = "C26CF959E1434E31B7F9DA89829369B4";
    String projectGuid = "73671509FA5C43ED8FC4171AD0298AD2";

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

    PageSearch search = project.definePageSearch();
//    search.addContentClassCriteriaEqual();
  }
View Full Code Here

Examples of com.hlcl.rql.as.CmsClient

    String logonGuid = "0B1FBC04A6D94A45A6C5E2AC8915B698";
    String sessionKey = "C26CF959E1434E31B7F9DA89829369B4";
    String projectGuid = "73671509FA5C43ED8FC4171AD0298AD2";

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

    UserGroup userGroup1 = project.getUserGroupByGuid("userGroupGuid");
    UserGroup userGroup2 = project.getUserGroupByName("userGroupName");

    List<UserGroup> userGroups1 = project.getUserGroups();
    List<UserGroup> userGroups2 = project.getUserGroupsNameStartsWith("area-");

    boolean contains = userGroup1.contains("user name");
    User user = client.getUserByName("userName");
    boolean contains2 = userGroup1.contains(user);
    userGroup2.addUser(user);

    List<User> users = userGroup1.getUsers();
    for (User user2 : users) {
View Full Code Here

Examples of com.hlcl.rql.as.CmsClient

    String logonGuid = "0B1FBC04A6D94A45A6C5E2AC8915B698";
    String sessionKey = "C26CF959E1434E31B7F9DA89829369B4";
    String projectGuid = "73671509FA5C43ED8FC4171AD0298AD2";

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

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

    String textValue = currentPg.getTextValue("templateElementName");
    currentPg.setTextValue("templateElementName", "htmlSourceCode");
View Full Code Here

Examples of com.hlcl.rql.as.CmsClient

    String logonGuid = "0B1FBC04A6D94A45A6C5E2AC8915B698";
    String sessionKey = "C26CF959E1434E31B7F9DA89829369B4";
    String projectGuid = "73671509FA5C43ED8FC4171AD0298AD2";

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

    Page currentPg = project.getPageById("34009");
    currentPg.undoChanges();
    currentPg.reject("note name", "reject comment");
    currentPg.submitToWorkflow();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.