com.goonit.imapi.jaxrs.servlet.isim
Class personAccounts
java.lang.Object
com.goonit.imapi.jaxrs.servlet.isim.personAccounts
public class personAccounts
- extends java.lang.Object
personAccounts
is a JAX RESTful service which returns a JSON Array of all the accounts which belong to a given Owner.
This class has a Path
annotation with the value "/personAccounts/{personDN}" which
means the resource will be available at:
http://<hostname>:<port>/<context root>/<servlet path>/personAccounts/{personDN}
Only the GET method is implemented
Method Summary |
java.lang.String |
GET(javax.servlet.http.HttpServletRequest requestObj,
javax.servlet.http.HttpServletResponse responseObj,
java.lang.String strDN)
Processes a GET request with Owner distinguished name and returns details of all the Owner's accounts. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
personAccounts
public personAccounts()
GET
public java.lang.String GET(@Context
javax.servlet.http.HttpServletRequest requestObj,
@Context
javax.servlet.http.HttpServletResponse responseObj,
java.lang.String strDN)
throws java.rmi.RemoteException,
com.ibm.itim.apps.ApplicationException
- Processes a GET request with Owner distinguished name and returns details of all the Owner's accounts.
e.g. http://localhost/goonit/goonapi/personAccounts/erglobalid=5499452727130575810,ou=0,ou=people,erglobalid=00000000000000000000,ou=goonit,dc=com2
- Parameters:
personDN
- the Person's DN
- Returns:
- the list of a Person's Accounts
{
"items":[
{"eraccountstatus":"0","erservicename":"Linux ISIM Dev","owner":"erglobalid=5499452727130575810,ou=0,ou=people,erglobalid=00000000000000000000,ou=goonit,dc=com2","profileName":"PosixLinuxAccount","erservice":"erglobalid=5501780362594029019,ou=services,erglobalid=00000000000000000000,ou=goonit,dc=com2","dn":"erglobalid=5503780951037724874,ou=0,ou=accounts,erglobalid=00000000000000000000,ou=goonit,dc=com2","eraccountcompliance":"1","cn":"goonb"},
{"eraccountstatus":"0","erservicename":"Goon LDAP ITIM","owner":"erglobalid=5499452727130575810,ou=0,ou=people,erglobalid=00000000000000000000,ou=goonit,dc=com2","profileName":"LdapAccount","erservice":"erglobalid=5491839733665865895,ou=services,erglobalid=00000000000000000000,ou=goonit,dc=com2","dn":"erglobalid=8595990321501997558,ou=0,ou=accounts,erglobalid=00000000000000000000,ou=goonit,dc=com2","eraccountcompliance":"3","cn":"goonb"},
{"eraccountstatus":"0","erservicename":"ITIM Service","owner":"erglobalid=5499452727130575810,ou=0,ou=people,erglobalid=00000000000000000000,ou=goonit,dc=com2","profileName":"ITIMAccount","erservice":"erglobalid=00000000000000000002,ou=services,erglobalid=00000000000000000000,ou=goonit,dc=com2","dn":"eruid=goonb,ou=systemUser,ou=itim,ou=goonit,dc=com2","eraccountcompliance":"1","cn":"goonb"}
]}
- Throws:
java.rmi.RemoteException
com.ibm.itim.apps.ApplicationException