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

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

public class personGetPolicies
extends java.lang.Object

personAuthorizedServices is a simple a JAX-RS resource that returns the Provisioning Policies which apply to a user.

This class has a Path annotation with the value "/personAuthorizedServices/{personDN}" which means the resource will be available at: http://<hostname>:<port>/<context root>/<servlet path>/goonapi/personGetPolicies/{personDN}code>


Constructor Summary
personGetPolicies()
           
 
Method Summary
 java.lang.String GET(javax.servlet.http.HttpServletRequest requestObj, javax.servlet.http.HttpServletResponse responseObj, java.lang.String strDN)
          Processes a GET request and returns an Array of Provisioning Policies that apply to the Person object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

personGetPolicies

public personGetPolicies()
Method Detail

GET

public java.lang.String GET(@Context
                            javax.servlet.http.HttpServletRequest requestObj,
                            @Context
                            javax.servlet.http.HttpServletResponse responseObj,
                            java.lang.String strDN)
Processes a GET request and returns an Array of Provisioning Policies that apply to the Person object.

Parameters:
personDN - - the Person's DistinguishedName
Returns:
{ "items": [ { "erenabled": "true", "caption": "ITIM account policy", "erparent": "erglobalid=00000000000000000000,ou=goonit,dc=com2", "keywords": "", "dn": "erglobalid=00000000000000000005,ou=policies,erglobalid=00000000000000000000,ou=goonit,dc=com2", "name": "Default provisioning policy for ITIM", "description": "Allow everyone to be provisioned for an ITIM account." }, { "erenabled": "true", "caption": "", "erparent": "erglobalid=00000000000000000000,ou=goonit,dc=com2", "keywords": "", "dn": "erglobalid=2974185885988025708,ou=policies,erglobalid=00000000000000000000,ou=goonit,dc=com2", "name": "All Linux services", "description": "" } ]