Thursday, January 19, 2012

ADF 11G : Work with History Programatically

@Override
protected Object getHistoryContextForAttribute(AttributeDefImpl attributeDefImpl) { Object value= super.getHistoryContextForAttribute(attributeDefImpl);
if (value == null && (attributeDefImpl.getHistoryKind() == AttributeDefImpl.HISTORY_MODIFY_USER attributeDefImpl.getHistoryKind() == AttributeDefImpl.HISTORY_CREATE_USER))
{ return "anonymous"; }
return value; }