com.goonit.imapi.jaxrs.servlet.isim
Class goonldap

java.lang.Object
  extended by com.goonit.imapi.jaxrs.servlet.isim.LDAPHelper
      extended by com.goonit.imapi.jaxrs.servlet.isim.goonldap

public class goonldap
extends com.goonit.imapi.jaxrs.servlet.isim.LDAPHelper

goonldap is a RESTFul service which performs LDAP Searches against the directory and converts all responses to JSON.

This class has a Path annotation with the value "/goonldap/{dnStr}" which means the resource will be available at: http://<hostname>:<port>/<context root>/<servlet path>/goonldap/{searchBase}/{filter}


Constructor Summary
goonldap()
           
 
Method Summary
 java.lang.String GET(java.lang.String searchBase, java.lang.String q, java.lang.String returnAttributes)
          goonldap is a RESTFul service which performs LDAP Searches against the directory and converts all responses to JSON.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

goonldap

public goonldap()
Method Detail

GET

public java.lang.String GET(java.lang.String searchBase,
                            java.lang.String q,
                            java.lang.String returnAttributes)
                     throws java.lang.Exception
goonldap is a RESTFul service which performs LDAP Searches against the directory and converts all responses to JSON.
 

 This class has a Path annotation with the value "/goonldap/{searchBase}/{filter}" which
 means the resource will be available at:
 http://<hostname>:<port>/<context root>/<servlet path>/goonldap/{searchBase}/{filter}
 The service accepts an optional Query string of attrs which is a comma separated list of attributes to return
 http://192.168.1.70/goonit/goonapi/goonldap/dc=com2/(errolename=*)?attrs=errolename,erglobalid

Returns:
e.g. : [ {"dn":"erglobalid=00000000000000000001,ou=roles,erglobalid=00000000000000000000,ou=goonit,dc=com2", "erglobalid":"00000000000000000001", "errolename":"ITIM Administrators"}, {"dn":"erglobalid=00000000000000000003,ou=sysRoles,erglobalid=00000000000000000000,ou=goonit,dc=com2", "erglobalid":"00000000000000000003", "errolename":"System Administrator"}, {"dn":"erglobalid=2900003699897423756,ou=roles,erglobalid=00000000000000000000,ou=goonit,dc=com2", "erglobalid":"2900003699897423756", "errolename":"HR System Administrators role"}, {"dn":"erglobalid=00000000000000000102,ou=sysRoles,erglobalid=00000000000000000000,ou=goonit,dc=com2", "erglobalid":"00000000000000000102", "errolename":"Privileged Administrator"} ]
Throws:
java.lang.Exception