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

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

public class personSearch
extends java.lang.Object

personSearch is a RESTful service which performs searches on Persons. This class has a Path annotation with the value "/personSearch/{filter}" which means the resource will be available at: http://<hostname>:<port>/<context root>/<servlet path>/personSearch/{filter} The filter can be any valid ldap filter, e.g. : - http(s)://localhost/goonit/goonapi/personSearch/(&(sn=goon*)(cn=*goon*))


Constructor Summary
personSearch()
           
 
Method Summary
 java.lang.String GET(javax.servlet.http.HttpServletRequest requestObj, javax.servlet.http.HttpServletResponse responseObj, java.lang.String filter)
           Processes a GET request (Search) and returns a JSON object containing an JSON array of Persons matching the filter.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

personSearch

public personSearch()
Method Detail

GET

public java.lang.String GET(@Context
                            javax.servlet.http.HttpServletRequest requestObj,
                            @Context
                            javax.servlet.http.HttpServletResponse responseObj,
                            java.lang.String filter)
                     throws java.lang.Exception
 Processes a GET request (Search) and returns a JSON object containing an JSON array of Persons matching the filter.

Parameters:
filter - - a valid LDAP Account search filter
 e.g. http://localhost/goonit/goonapi/personSearch/(&(sn=goon)(mail=alice*))
 
{"items":
[
{"profileName":"Person",
"erpersonstatus":"0",
"erparent":"erglobalid=00000000000000000000,ou=goonit,dc=com2",
"mail":"alice.goon@goonit.spoof",
"dn":"erglobalid=5499064908328644351,ou=0,ou=people,erglobalid=00000000000000000000,ou=goonit,dc=com2",
"sn":"Goon",
"cn":"Alice Goon"},
{"profileName":"Person",
"erpersonstatus":"0",
"erparent":"erglobalid=00000000000000000000,ou=goonit,dc=com2",
"mail":"alice.goon@goonit.spoof","dn":"erglobalid=8157654929874629362,ou=0,ou=people,erglobalid=00000000000000000000,ou=goonit,dc=com2",
"sn":"Goon","cn":"eve goon"}
]}
 
Throws:
java.lang.Exception