com.goonit.imapi.jaxrs.servlet.isim
Class roleSearch
java.lang.Object
com.goonit.imapi.jaxrs.servlet.isim.roleSearch
public class roleSearch
- extends java.lang.Object
roleSearch
is a RESTful service which performs searches on Roles.
This class has a Path
annotation with the value "/roleSearch/{filter}" which
means the resource will be available at:
http://<hostname>:<port>/<context root>/<servlet path>/roleSearch/{dnStr}
The filter can be any valid ldap filter, e.g. : -
http(s)://localhost/goonit/goonapi/roleSearch/(&(errolename=*))
Method Summary |
java.lang.String |
GET(javax.servlet.http.HttpServletRequest requestObj,
javax.servlet.http.HttpServletResponse responseObj,
java.lang.String filter)
Processes a GET request and returns the stored message. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
roleSearch
public roleSearch()
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 and returns the stored message.
- Returns:
- an Array of Roles
{"items":[
{"ersystemrolecategory":"",
"bu":"erparent"
,"eraccessoption":"",
"erparent":"erglobalid=00000000000000000000,ou=goonit,dc=com2",
"objectclass":"top,errole,ermanageditem,eraccessitem",
"dn":"erglobalid=00000000000000000001,ou=roles,erglobalid=00000000000000000000,ou=goonit,dc=com2",
"eraccessname":"",
"description":"Predefined system administrator role.",
"ownername":"",
"errolename":"ITIM Administrators",
"erroleassignmentkey":""},
{"ersystemrolecategory":"",
"bu":"erparent",
"eraccessoption":"3",
"erparent":"erglobalid=00000000000000000000,ou=goonit,dc=com2",
"objectclass":"top,errole,ermanageditem,eraccessitem",
"dn":"erglobalid=6183026828283923556,ou=roles,erglobalid=00000000000000000000,ou=goonit,dc=com2",
"eraccessname":"role 1",
"description":"",
"ownername":"",
"errolename":"role 1",
"erroleassignmentkey":""},
{"ersystemrolecategory":"",
"bu":"erparent",
"eraccessoption":"3",
"erparent":"erglobalid=00000000000000000000,ou=goonit,dc=com2",
"objectclass":"top,errole,ermanageditem,eraccessitem",
"dn":"erglobalid=9154849093950620960,ou=roles,erglobalid=00000000000000000000,ou=goonit,dc=com2","eraccessname":"role 2","description":"","ownername":"","errolename":"role 2","erroleassignmentkey":"vc,test"}
....
- Throws:
java.rmi.RemoteException
com.ibm.itim.apps.ApplicationException