Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 7 (11.1.7)

E22562-07

oracle.apps.fnd.applcore.audit.common.model.utility
Class MDSAuditEventUtil

java.lang.Object
  extended by oracle.apps.fnd.applcore.audit.common.model.utility.MDSAuditEventUtil

public class MDSAuditEventUtil
extends java.lang.Object

Utility class for reporting MDS audit events. Currently, the only public method provided is to tranform custom audit attributes. More methods may be added in future.


Method Summary
static java.util.Collection<CommonAuditAttributeBean> transformCustomAttributes(java.util.Collection<CommonAuditAttributeBean> attributes)
          Utility method to flatten MDS custom audit attributes to look similar to the regular attributes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

transformCustomAttributes

public static java.util.Collection<CommonAuditAttributeBean> transformCustomAttributes(java.util.Collection<CommonAuditAttributeBean> attributes)
Utility method to flatten MDS custom audit attributes to look similar to the regular attributes. It would leave MDS standard audit attributes unaffected and only processes the custom attributes (those named as "custom-attribute*").

MDS supports it's consumer components like ADF and SOA to add upto 5 arbitrary audit attributes to the MDS audit events. These are internally stored in OPSS as generic attributes as described below.

If a custom audit attribute using the following call

 mdsCustomAuditEvent.addAttribute("MyAttribute", 
                                        "MyValue", 
                                        "MyOldValue");
 
Then it will be stored in OPSS as shown below (with another standard MDS attribute for mds-sandbox-name).
OPSS Attribute Name Attribute Value
custom-attribute1-name MyAttribute
custom-attribute1-value MyValue
custom-attribute1-old-value MyOldValue
mds-sandbox-nameMySandbox

Since this is not user friendly, this class provides transformation method to flatten the generic attributes as shown below to match how the attribute was added originally.

Attribute NameValue Old Value
MyAttributeMyValue MyOldValue
mds-sandbox-nameMySandbox

The utility method is expected to be invoked by Audit Reporting UI for any MDS custom audit event (component names are suffixed with -MDS) to present the attributes correctly in the UI.

Parameters:
attributes - Collection of audit attributes for MDS custom audit event. This can include both custom attributes and regular attributes. Must not be null
Returns:
Collection of audit attributes for reporting in the UI. Custom attributes are flattened, non custom attributes are unmodified.

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 7 (11.1.7)

E22562-07

Copyright © 2013 Oracle. All Rights Reserved.