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

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

public class objectprofileByClass
extends com.goonit.imapi.jaxrs.servlet.isim.LDAPHelper

objectProfileByClass is a RESTful service which retrieves the ISIM account form template for a given objectclass. This class has a Path annotation with the value "/objectProfileByClass/{objectclass}" which means the resource will be available at: http://<hostname>:<port>/<context root>/<servlet path>/objectProfileByClass/{objectclass} e.g. http://localhost/goonit/goonapi/objectProfileByClass/erldapuseraccount Only the GET operation is implemented. Returns same information as /objectprofile instead


Constructor Summary
objectprofileByClass()
           
 
Method Summary
 java.lang.String GET(java.lang.String oc)
          Processes a GET request (READ) and returns a JSON object with the Account form detail.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

objectprofileByClass

public objectprofileByClass()
Method Detail

GET

public java.lang.String GET(java.lang.String oc)
                     throws java.lang.Exception
Processes a GET request (READ) and returns a JSON object with the Account form detail.

Parameters:
profileName - the profile name for the account e.g http://localhost/goonit/goonapi/objectProfileByClass/erldapuseraccount
Returns:
{"body": {"tabbedForm": [{"@index":"0", "@selected":"true", "title":"$tag.ldap.User", "image":[], "url":"javascript:switchTabs(document.forms['body'],0);", "formElement":[{"@name":"data.eruid","@label":"$eruid", "@required":"true","input":{"@name":"data.eruid","@size":"50"}, "constraint":{"type":"REQUIRED","parameter":"true"} }, {"@name":"data.erldapcontainername", "@label":"$erldapcontainername", "@isReadOnlyOnModify":"true", "searchFilter":{"filter":"(objectclass=erLdapContainerAccount)", "base":"contextual", "attribute":"erLdapContainerName", "size":[], "prepopulate":"false"} }, ....
Throws:
java.lang.Exception