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

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

public class serviceSearch
extends java.lang.Object

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


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

Constructor Detail

serviceSearch

public serviceSearch()
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.rmi.RemoteException,
                            com.ibm.itim.apps.ApplicationException
 Processes a GET request (Service Search) and returns a JSON object containing an JSON array of services matching the filter.

Parameters:
filter - a valid LDAP Account search filter
 e.g. http://localhost/goonit/goonapi/serviceSearch/(!(eradapterresourcestatus=*))
Returns:
{"items":[ {"profileName":"ITIMService", "enforcementaction":"0", "erparent":"erglobalid=00000000000000000000,ou=goonit,dc=com2", "dn":"erglobalid=00000000000000000002,ou=services,erglobalid=00000000000000000000,ou=goonit,dc=com2", "name":"ITIM Service"}, {"profileName":"LdapProfile", "enforcementaction":"2", "erparent":"erglobalid=6328172302732505759,ou=orgchart,erglobalid=00000000000000000000,ou=goonit,dc=com2", "dn":"erglobalid=7281391438717001658,ou=services,erglobalid=00000000000000000000,ou=goonit,dc=com2", "name":"BranchBanking"}, {"profileName":"LdapProfile", "enforcementaction":"0", "erparent":"erglobalid=00000000000000000000,ou=goonit,dc=com2", "dn":"erglobalid=5491839733665865895,ou=services,erglobalid=00000000000000000000,ou=goonit,dc=com2", "name":"Goon LDAP ITIM"}]}
Throws:
java.rmi.RemoteException
com.ibm.itim.apps.ApplicationException