Package edu.uchicago.grouperabi

Examples of edu.uchicago.grouperabi.GrouperQueryEngine


  private static String stemName = "uc:applications:gnetid";

  static GrouperQueryEngine getQueryEngine() throws IOException {
    nsit.Config conf = nsit.Config.getInstance();
    return new GrouperQueryEngine(conf.getOption("ldap_host"), conf.getOption("grouper_url"),
        conf.getOption("grouper_user"), conf.getOption("grouper_password"), stemName);
  }
View Full Code Here


    }
  }
 
  @Test
  public void testGetMemberships() throws GrouperABIException, IOException {
    GrouperQueryEngine gqe = getQueryEngine();
   
    ArrayList<Group> results = gqe.getMemberships(new Subject("20967693K"));
   
    for(Group g: results){
      System.out.println(g.getName());
    }
   
View Full Code Here

  }
 
  @Test
  public void getGroupsByType() throws GrouperABIException, IOException {
    System.out.println("test getGroupsByType");
    GrouperQueryEngine gqe = getQueryEngine();
   
    ArrayList<Group> results = gqe.getGroupsByType("Closure");
   
    for(Group g: results){
      System.out.println(g.getName());
    }
   
View Full Code Here

TOP

Related Classes of edu.uchicago.grouperabi.GrouperQueryEngine

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.