Package com.hlcl.rql.as

Examples of com.hlcl.rql.as.PasswordAuthentication


//      String projectGuid="06BE79A1D9F549388F06F6B649E27152";
//
//      CmsClient client = new CmsClient(logonGuid);
//      Project project = client.getProject(sessionKey, projectGuid);
     
      client = new CmsClient(new PasswordAuthentication("testuser_compass", "testuser368"));
      Project project = client.getProjectByName("hip.hlcl.com");
      System.out.println(client.getConnectedUser().getName());

      // check different pages
      String[] pageIds = {"127290", "624522", "656879", "7375"};
View Full Code Here


   */
  private void readTableDataFromCms() throws RQLException {
    CmsClient client = null;
    try {
      // login
      client = new CmsClient(new PasswordAuthentication(getUserName(), getPassword()));
      Project project = client.getProjectByName(getProjectName());

      // prepare parameters
      ScriptParameters parms = project.getParameters(getParmPageId());

View Full Code Here

    try {
      String user = args[0];
      String pw = args[1];
      String[] projectNames = StringHelper.split(args[2], ",");

      client = new CmsClient(new PasswordAuthentication(user, pw));

      for (int i = 0; i < projectNames.length; i++) {
        String projectName = projectNames[i];
        Project project = client.getProjectByName(projectName);
View Full Code Here

    // by new page id
    Page targetPg = project.getPageById("2");
    System.out.println(targetPg.getInfoText());
   
    // b) with user name and password
    CmsClient client1 = new CmsClient(new PasswordAuthentication("lejafr", "pw"), new URL("http://reddot.hlcl.com/cms/hlclRemoteRql.asp"));
    Project project1 = client1.getProjectByName("hip.hlcl.com");
   
    CmsClient client2 = new CmsClient(new PasswordAuthentication("lejafradm", "pw"), new URL("http://kswfrd02/cms/hlclRemoteRql.asp"));
    Project project2 = client2.getProjectByName("hlag_wm2008");
   
    Page source1Pg = project1.getPageById("127290");
    System.out.println(source1Pg.getInfoText());
   
View Full Code Here

TOP

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

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.