Create extensible object

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

Add a constructor that will receive two parameters:

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);
  }
}

Revision #2
Created 29 June 2023 15:54:46 by Gabriel Buades
Updated 30 June 2023 06:25:36 by Gabriel Buades