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

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

public class roleChildrenAdd
extends java.lang.Object

roleChildrenAdd is a RESTFul service which makes Roles children of a parent role

This class has a Path annotation with the value "/roleChildrenAdd/{roleDN}" which means the resource will be available at: http://<hostname>:<port>/<context root>/<servlet path>/roleChildrenAdd/{roleDN} Only the POST Operation is supported and a JSON Array of child roles DN needs to be posted


Constructor Summary
roleChildrenAdd()
           
 
Method Summary
 java.lang.String POST(java.lang.String json, java.lang.String dnStr, javax.servlet.http.HttpServletRequest requestObj, javax.servlet.http.HttpServletResponse responseObj)
          Processes a POST (Role add Child Roles) request and returns the ISIM process id of the request.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

roleChildrenAdd

public roleChildrenAdd()
Method Detail

POST

public java.lang.String POST(java.lang.String json,
                             java.lang.String dnStr,
                             @Context
                             javax.servlet.http.HttpServletRequest requestObj,
                             @Context
                             javax.servlet.http.HttpServletResponse responseObj)
                      throws java.rmi.RemoteException,
                             com.ibm.itim.apps.ApplicationException
Processes a POST (Role add Child Roles) request and returns the ISIM process id of the request.

Parameters:
{dnStr} - the DN of the Parent Role.
messageBody - e.g POST https://localhost/goonapi/roleChildrenAdd/erglobalid=2900003699897423756,ou=roles,erglobalid=00000000000000000000,ou=goonit,dc=com2 ["erglobalid=142302682828392779,ou=roles,erglobalid=00000000000000000000,ou=goonit,dc=com2, "erglobalid=9154849093950620960,ou=roles,erglobalid=00000000000000000000,ou=goonit,dc=com2" ]
Returns:
the Request ID received from ITIM
Throws:
java.rmi.RemoteException
com.ibm.itim.apps.ApplicationException