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

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

public class accountSearch
extends java.lang.Object

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


Constructor Summary
accountSearch()
           
 
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 accounts matching the filter.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

accountSearch

public accountSearch()
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 (Search) and returns a JSON object containing an JSON array of accounts matching the filter.

Parameters:
filter - - a valid LDAP Account search filter
 e.g. http://localhost/goonit/goonapi/account/erglobalid=8283467927700422958,ou=0,ou=accounts,erglobalid=00000000000000000000,ou=goonit,dc=com2
 
 {"items":
 [{"eraccountstatus":"0",
 "erservicename":"Goon LDAP ITIM",
 "owner":"erglobalid=5499064908328644351,ou=0,ou=people,erglobalid=00000000000000000000,ou=goonit,dc=com2",
 "profileName":"LdapAccount",
 "erservice":"erglobalid=491839733665865895,ou=services,erglobalid=00000000000000000000,ou=goonit,dc=com2",
 "dn":"erglobalid=509508293822099211,ou=0,ou=accounts,erglobalid=00000000000000000000,ou=goonit,dc=com2",
 "eraccountcompliance":"3",
 "cn":"goona",
 "vince":"vincent"},
 
 {
 "eraccountstatus":"0",
 "erservicename":"Goon LDAP ITIM",
 "owner":"erglobalid=003d5499452727130575810,ou=0,ou=people,erglobalid=00000000000000000000,ou=goonit,dc=com2",
 "profileName":"LdapAccount",
 "erservice":"erglobalid=491839733665865895,ou=services,erglobalid=00000000000000000000,ou=goonit,dc=com2",
 "dn":"erglobalid=8595990321501997558,ou=,ou=accounts,erglobalid=00000000000000000000,ou=goonit,dc=com2",
 "eraccountcompliance":"3","cn":"goonb","vince":"vincent"
 }
 ]}
 
Throws:
java.rmi.RemoteException
com.ibm.itim.apps.ApplicationException