com.goonit.imapi.jaxrs.servlet.isim
Class accountAdopt
java.lang.Object
com.goonit.imapi.jaxrs.servlet.isim.accountAdopt
public class accountAdopt
- extends java.lang.Object
accountAdopt
is a RESTful service which adopts Orphan Accounts.
This class has a Path
annotation with the value "/accountAdopt/{dnStr}/{ownerType}" which
means the resource will be available at:
http://<hostname>:<port>/<context root>/<servlet path>/account/{dnStr}
Method Summary |
java.lang.String |
POST(java.lang.String json,
java.lang.String dnStr,
java.lang.String ownerType)
Processes a POST request to adopt accounts. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
accountAdopt
public accountAdopt()
POST
public java.lang.String POST(java.lang.String json,
java.lang.String dnStr,
java.lang.String ownerType)
- Processes a POST request to adopt accounts.
e.g. http://localhost/goonit/goonapi/accountAdopt/{ownerDN}/{ownerType}
- Parameters:
ownerDN
- the Distinguished name of the new owner of the account.ownerType
- the type of ownership (e.g. INDIVIDUAL)messageBody
- JSON array of accounts to adopt, e.g. :
["erglobalid=5492820963263542989,ou=orphans,erglobalid=00000000000000000000,ou=goonit,dc=com2",
"erglobalid=5492820989601278193,ou=orphans,erglobalid=00000000000000000000,ou=goonit,dc=com2"]