com.goonit.imapi.jaxrs.servlet.isim
Class accountRestore
java.lang.Object
com.goonit.imapi.jaxrs.servlet.isim.accountRestore
public class accountRestore
- extends java.lang.Object
accountRestore
is a RESTful service which restores Accounts with a supplied password.
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 restored
[
{"dn":"erglobalid=5503788781337089647,ou=0,ou=accounts,erglobalid=00000000000000000000,ou=goonit,dc=com2","password":"Passw0rd"},
{"dn":"erglobalid=5509508293822099211,ou=0,ou=accounts,erglobalid=00000000000000000000,ou=goonit,dc=com2","password":"Passw0rd"}
]
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
accountRestore 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 |
accountRestore
public accountRestore()
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
accountRestore
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:
messageBody
- contain a JSON array of account dn's and passwords.
[
{"dn":"erglobalid=5503788781337089647,ou=0,ou=accounts,erglobalid=00000000000000000000,ou=goonit,dc=com2","password":"Passw0rd"},
{"dn":"erglobalid=5509508293822099211,ou=0,ou=accounts,erglobalid=00000000000000000000,ou=goonit,dc=com2","password":"Passw0rd"}
]