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

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

public class service
extends java.lang.Object

service is a RESTFul service which performs Create, Read, Update and Delete operations on Service Entities.

This resource is available at: http://<hostname>:<port>/<context root>/<servlet path>/service/{dnStr} For GET, POST and DELETE Methods the dnStr represents the DN of the Person For PUT (Create Person) dnStr is the DN of the Organization Container within which the user should be created.


Constructor Summary
service()
           
 
Method Summary
 java.lang.String DELETE(java.lang.String strDN)
          Processes a DELETE (Service DELETE) request and returns the ISIM process id of the request.
 java.lang.String GET(javax.servlet.http.HttpServletRequest requestObj, javax.servlet.http.HttpServletResponse responseObj, java.lang.String strDN)
          Processes a GET request (READ) and returns a JSON object with the Service Details.
 java.lang.String POST(java.lang.String json, java.lang.String dnStr)
          Processes a POST (Service Update) request and returns the ISIM process id of the request.
 java.lang.String putMessage(java.lang.String json, java.lang.String profileName, java.lang.String dnstr)
          Processes a PUT (Service Create) 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

service

public service()
Method Detail

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 (READ) and returns a JSON object with the Service Details.

Returns:
- A JSON object containing the service details e.g. http://localhost/goonit/goonapi/service/erglobalid=5913724919930104998,ou=services,erglobalid=00000000000000000000,ou=goonit,dc=com2 {"attributeValueMap":{"eradaptertdiversion":{"name":"eradaptertdiversion","values":["7.1 - 2012-01-31"]},"eradapterresourcestatus":{"name":"eradapterresourcestatus","values":["0"]},"eradaptermemory":{"name":"eradaptermemory","values":["init = 4194304(4096K) used = 44453584(43411K) committed = 83299328(81347K) max = 536870912(524288K)"]},"erposixdisablealcache":{"name":"erposixdisablealcache","values":["false"]},"erposixsudoerspath":{"name":"erposixsudoerspath","values":["/etc/sudoers"]},"eradapterresourceversion":{"name":"eradapterresourceversion","values":["Linux-redhat "]},"eradapterdispatcherversion":{"name":"eradapterdispatcherversion","values":["60.1008"]},"eradapterprofileversion":{"name":"eradapterprofileversion","values":["0"]},"eradapterversion":{"name":"eradapterversion","values":["6.0.22.35"]},"eradapterlaststatustime":{"name":"eradapterlaststatustime","values":["20130522131123Z"]},"erparent":{"name":"erparent","values":["erglobalid=00000000000000000000,ou=goonit,dc=com2"]},"objectclass":{"name":"objectclass","values":["top","erPosixLinuxRMIService","erManagedItem","erServiceItem","erRemoteServiceItem"]},"erposixhomedirremove":{"name":"erposixhomedirremove","values":["false"]},"erurl":{"name":"erurl","values":["localhost"]},"erserviceuid":{"name":"erserviceuid","values":["root"]},"eradapteruptime":{"name":"eradapteruptime","values":["20130522050406Z"]},"erglobalid":{"name":"erglobalid","values":["5501780362594029019"]},"eradapteraccount":{"name":"eradapteraccount","values":["root"]},"eradapterconnectorversion":{"name":"eradapterconnectorversion","values":["60.1015"]},"erposixuseshadow":{"name":"erposixuseshadow","values":["true"]},"eritdiurl":{"name":"eritdiurl","values":["rmi://localhost:1099/ITDIDispatcher"]},"erservicename":{"name":"erservicename","values":["Linux ISIM Dev"]},"eradapterplatform":{"name":"eradapterplatform","values":["Linux 2.6.32-279.22.1.el6.x86_64 amd64 JRE 1.6.0 IBM J9 2.4 Linux amd64-64 jvmxa6460sr7-20091214_49398 (JIT enabled, AOT enabled)\nJ9VM - 20091214_049398\nJIT - r9_20091123_13891\nGC - 20091111_AA"]},"erposixreturnsudoprivileges":{"name":"erposixreturnsudoprivileges","values":["false"]},"description":{"name":"description","values":["ISIM Development Server"]},"erposixusesudo":{"name":"erposixusesudo","values":["false"]},"erposixauthmethod":{"name":"erposixauthmethod","values":["pba"]}}}
Throws:
java.rmi.RemoteException
com.ibm.itim.apps.ApplicationException

POST

public java.lang.String POST(java.lang.String json,
                             java.lang.String dnStr)
Processes a POST (Service Update) request and returns the ISIM process id of the request.

Parameters:
{dnStr} - the DN of the Person being updated. e.g https://localhost/goonit/goonapi/service/erglobalid=5913724919930104998,ou=services,erglobalid=00000000000000000000,ou=goonit,dc=com2
?date= - optional date to schedule the request
messageBody - - A JSON Object representing the attributes being changed, e.g. { "attributeValueMap": { "erservicename": { "name": "erservicename","values": ["GoonIT Linux ISIM Dev"]}}}
Returns:
"Success" or HTTP Response code. There is no ISIM Request.

putMessage

public java.lang.String putMessage(java.lang.String json,
                                   java.lang.String profileName,
                                   java.lang.String dnstr)
Processes a PUT (Service Create) request and returns the ISIM process id of the request.

Parameters:
{dnStr} - the DN of the Organisation unit in which the service is being updated. e.g https://localhost/goonit/goonapi/service/erglobalid=6328172302732505759,ou=orgchart,erglobalid=00000000000000000000,ou=goonit,dc=com2
?date= - optional date to schedule the request
messageBody - - A JSON Object representing the Service attributes (dn, objectclass, erglobalid should not be set)
Returns:
"Success" or HTTP Response code. There is no ISIM Request.

DELETE

public java.lang.String DELETE(java.lang.String strDN)
Processes a DELETE (Service DELETE) request and returns the ISIM process id of the request.

Parameters:
{dnStr} - the DN of the Service being deleted. e.g https://localhost/goonit/goonapi/service/erglobalid=5913724919930104998,ou=services,erglobalid=00000000000000000000,ou=goonit,dc=com2
Returns:
"Success" or HTTP Response code. There is no ISIM Request ID.