Skip to main content

Create extensible object

Create a Java Class that extends com.soffid.iam.sync.intf.ExtensibleObject

Add a constructor that will receive two parameters:

  • Primary key (Long)
  • Object type (String)

Override the method Object getAttribute(String attribute). This method must return the object attribute.

A sample implementation could be:

class ClearanceExtensibleObject extends ExtensibleObject {
  Clearance obj;
  public CustomExtensibleObject (Long id, String type) {
    obj = ServiceLocator.instance.getClearanceService().findById(id);
  }
  public Object getAttribute (String attribute) {
    if (obj == null) return null;
    return PropertyUtils.getProperty(obj, attribute);
  }
}