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);

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

    // add users to user group
    User user = client.getUserByName("lejafr");
    userGroup1.addUser(user);
    userGroup1.addUsers(userGroup2);

    // add given users
    List<User> users = new ArrayList<User>();
    users.add(client.getUserByName("lejafr2"));
    users.add(client.getUserByName("lejafr3"));
    userGroup1.addUsers(users);
   
    // remove users
    userGroup1.removeUser(user);
    userGroup1.addUsers(userGroup2);
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);
   
    // 1. step - prepare the page
    Page currentPg = project.getPageById("4711");
    currentPg.startSetElementValues();
   
View Full Code Here

Examples of com.hlcl.rql.as.CmsClient

      String logonGuid="D0EF5D1C8FCB41CDAE1E6CF03C971A5D";
      String sessionKey="8A1A58AD2E694CE4A6E6615345F34244";
      String projectGuid="06BE79A1D9F549388F06F6B649E27152";

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

      Page currentPg = project.getPageById("908278");
      PageArrayList currentPages = currentPg.getListChildPages("content_pages_list");
      System.out.println("current= " + currentPages.collectHeadlines());
     
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);

    ProjectVariant pv1 = project.getProjectVariantByGuid("project variant guid");
    ProjectVariant pv2 = project.getProjectVariantByName("project variant name");

    LanguageVariant lv1 = project.getLanguageVariantByGuid("language variant guid");
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);

    PageArrayList allPagesSavedAsDraft = project.getAllPagesSavedAsDraft();
    PageArrayList allPagesWaitingForCorrection = project.getAllPagesWaitingForCorrection();
    PageArrayList allPagesWaitingForRelease = project.getAllPagesWaitingForRelease();
   
    User connectedUser = client.getConnectedUser();
    connectedUser.getPagesSavedAsDraft(project);
    connectedUser.getPagesWaitingForCorrection(project);
    connectedUser.getPagesWaitingForRelease(project);
    connectedUser.getMyPagesInWorkflow(project);
  }
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("1234");

    System.out.println(currentPg.getStandardFieldTextValue("column_1_header"));
    currentPg.setStandardFieldTextValue("column_1_header", "new header value");
View Full Code Here

Examples of com.hlcl.rql.as.CmsClient

    String logonGuid = "0904ABF0E43443D2881FE7481339650E";
    String sessionKey = "490EC675042F4C5A8A6DF1ED63ADD7A6";
    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()) {
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.isInStateSavedAsDraft();
    currentPg.isInStateSavedAsDraftNew();
    currentPg.isInStateSavedAsDraftChanged();
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");
    boolean withFollowingPages = false;
    boolean withRelated = true;
    PublishingJob job = new PublishingJob(currentPg, withFollowingPages, withRelated);

    job.addToPublish("projectVariantGuid1,projectVariantGuid2,projectVariantGuid3", ",", "languageVariantGuid");

//    currentPg.publishAllCombinations(withFollowingPages, "projectVariantGuids", "separator", "languageVariantGuids");
    job.setMailReceiver(client.getConnectedUser());

    job.start();
    job.getNumberOfPublishingMails();
  }
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");
    PageArrayList listChildren = currentPg.getListChildPages("fields_list");

    for (int i = 0; i < listChildren.size(); i++) {
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.