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

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

public class accountSuspend
extends java.lang.Object

accountSuspend is a RESTful service which suspends Accounts.

 This class has a Path annotation with the value "/accountRestore/" which
 means the resource will be available at:
 http://<hostname>:<port>/<context root>/<servlet path>/accountRestore/

 Only POST Operation is supported: -
 
 POST should contain a JSON array of the accounts to be suspended


Constructor Summary
accountSuspend()
           
 
Method Summary
 java.lang.String POST(java.lang.String obj, javax.servlet.http.HttpServletRequest requestObj, javax.servlet.http.HttpServletResponse responseObj, java.lang.String dnStr, java.lang.String date)
          Processes a POST request accountSuspend is a RESTful service which restores any number of accounts.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

accountSuspend

public accountSuspend()
Method Detail

POST

public java.lang.String POST(java.lang.String obj,
                             @Context
                             javax.servlet.http.HttpServletRequest requestObj,
                             @Context
                             javax.servlet.http.HttpServletResponse responseObj,
                             java.lang.String dnStr,
                             java.lang.String date)
Processes a POST request accountSuspend is a RESTful service which restores any number of accounts.
 This class has a Path annotation with the value "/accountRestore/" which
 means the resource will be available at:
 http://<hostname>:<port>/<context root>/<servlet path>/accountRestore/

 Only POST Operation is supported: -
 
 POST should contain a JSON array of the accounts to be orphaned

Parameters:
?date - QueryString the scheduled date to process the request (null = now)
messageBody - - contain a JSON array of account DNs. [ {"dn":"erglobalid=5503788781337089647,ou=0,ou=accounts,erglobalid=00000000000000000000,ou=goonit,dc=com2"}, {"dn":"erglobalid=5509508293822099211,ou=0,ou=accounts,erglobalid=00000000000000000000,ou=goonit,dc=com2"} ]