Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.6)

E22562-05

oracle.apps.fnd.applcore.audit.ui.util
Class AuditModelUtility

java.lang.Object
  extended by oracle.apps.fnd.applcore.audit.ui.util.AuditModelUtility

public class AuditModelUtility
extends java.lang.Object


Constructor Summary
AuditModelUtility()
           
 
Method Summary
 void addChildAM(oracle.jbo.server.ApplicationModuleDefImpl amChildDef, AuditTreeNode topAM)
          Method to add any child AM's for the given AM and the childAMs VOs (and childVOs)
 void addChildVOs(java.lang.String[] childVONames, oracle.jbo.server.ApplicationModuleDefImpl amDef, AuditTreeNode voTree)
          Method to add childVOs.
 void addChildVOs(oracle.jbo.server.ViewDefImpl viewDef, AuditTreeNode voTree, oracle.jbo.server.ApplicationModuleDefImpl am)
          Method to add childVOs when viewlink in place.
static oracle.jbo.ApplicationModule getAM()
          Method to return the FndAuditModuleAM
static java.util.List getCustomObjContextAttr(oracle.jbo.server.ViewDefImpl customViewDef)
          public method to get the contextAttribute columns for logging purposes.
static java.util.List getFndAppModules(java.lang.String webApp)
          Private method to get the resultant rows from fnd_audit_webapp_am given a webApp.
static oracle.jbo.Row[] getFndMetadataAttrs(FndAuditAttributesVOImpl metadataVO, AuditTreeNode root)
          Public method to get the resultant rows from fnd_metadata_attributes given a whereClause.
static oracle.jbo.Row[] getFndMetadataAttrsWithoutFlag(FndAuditAttributesVOImpl metadataVO, AuditTreeNode root)
          Method that returns rows fro fnd_auditattributes given a viewObjectName and EnabledFlag is Y
 java.util.List<Attribute> getListOfAttributes(java.lang.String amName, java.lang.String viewName)
          Get the list of attributes for the specific VO.
 java.util.List<Attribute> getListOfDefaultAttributes(java.lang.String viewName)
          Get the list of attributes for the specific VO.
static FndAuditAttributesVOImpl getMetadataVO()
          Method to return the FndAuditAttributesVOImpl
 AuditTreeNode getParentAMVOMap(java.util.List auditedViewObjs, java.util.List ams)
          Method that is the parent method to crea the Tree Model object of AM's and VO's (including childAMs and childVOs/GrandChildVOs)
static void invalidateAuditMDSCache()
           
static void invalidateAuditMDSCacheInternal()
           
 boolean isAccessorAttr(oracle.jbo.server.AttributeDefImpl voAttrDef)
          Method to check whether the attribute is a viewAccessor attribute.
 boolean isAuditable(java.lang.String tableName)
          Method that determines whether a table is Auditble based on the existence of a shadow table.
static oracle.jbo.server.ViewDefImpl isCustomViewObject(AuditTreeNode node)
          Public method returns whether a custom view object based on a AuditTreeNode
static void setDisplayLabelForAttrs(java.lang.String viewName, oracle.jbo.Row[] attrRows)
          Method to set the display names for the attributes shown in the enabled attributes table of setup UI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuditModelUtility

public AuditModelUtility()
Method Detail

getParentAMVOMap

public AuditTreeNode getParentAMVOMap(java.util.List auditedViewObjs,
                                      java.util.List ams)
Method that is the parent method to crea the Tree Model object of AM's and VO's (including childAMs and childVOs/GrandChildVOs)

Parameters:
auditedViewObjs -
Returns:
AuditTreeNode

addChildAM

public void addChildAM(oracle.jbo.server.ApplicationModuleDefImpl amChildDef,
                       AuditTreeNode topAM)
Method to add any child AM's for the given AM and the childAMs VOs (and childVOs)

Parameters:
amChildDef -
topAM -

addChildVOs

public void addChildVOs(java.lang.String[] childVONames,
                        oracle.jbo.server.ApplicationModuleDefImpl amDef,
                        AuditTreeNode voTree)
Method to add childVOs.

Parameters:
childVONames -
amDef -
voTree -

addChildVOs

public void addChildVOs(oracle.jbo.server.ViewDefImpl viewDef,
                        AuditTreeNode voTree,
                        oracle.jbo.server.ApplicationModuleDefImpl am)
Method to add childVOs when viewlink in place.

Parameters:
viewDef -
voTree -
am -

getListOfDefaultAttributes

public java.util.List<Attribute> getListOfDefaultAttributes(java.lang.String viewName)
Get the list of attributes for the specific VO. Here the attributes that are not shown are: 1. Who columns 2. Columns that have auditable set to false

Parameters:
amName -
viewName -
Returns:

getListOfAttributes

public java.util.List<Attribute> getListOfAttributes(java.lang.String amName,
                                                     java.lang.String viewName)
Get the list of attributes for the specific VO. Here the attributes that are not shown are: 1. Hidden Attributes 2. Who columns 3. Columns that have auditable set to false

Parameters:
amName -
viewName -
Returns:

isAccessorAttr

public boolean isAccessorAttr(oracle.jbo.server.AttributeDefImpl voAttrDef)
Method to check whether the attribute is a viewAccessor attribute.

Parameters:
voAttrDef -
Returns:

isCustomViewObject

public static oracle.jbo.server.ViewDefImpl isCustomViewObject(AuditTreeNode node)
Public method returns whether a custom view object based on a AuditTreeNode

Parameters:
node -
Returns:
ViewDefImpl

getAM

public static oracle.jbo.ApplicationModule getAM()
Method to return the FndAuditModuleAM

Returns:
ApplicationModule

getFndMetadataAttrs

public static oracle.jbo.Row[] getFndMetadataAttrs(FndAuditAttributesVOImpl metadataVO,
                                                   AuditTreeNode root)
Public method to get the resultant rows from fnd_metadata_attributes given a whereClause. The whereClause can be null too.

Parameters:
FndAuditAttributesVOImpl -
AuditTreeNode -
Returns:
Row[]

getFndMetadataAttrsWithoutFlag

public static oracle.jbo.Row[] getFndMetadataAttrsWithoutFlag(FndAuditAttributesVOImpl metadataVO,
                                                              AuditTreeNode root)
Method that returns rows fro fnd_auditattributes given a viewObjectName and EnabledFlag is Y

Parameters:
metadataVO -
root -
Returns:

setDisplayLabelForAttrs

public static void setDisplayLabelForAttrs(java.lang.String viewName,
                                           oracle.jbo.Row[] attrRows)
Method to set the display names for the attributes shown in the enabled attributes table of setup UI

Parameters:
viewName -
attrRows -

getMetadataVO

public static FndAuditAttributesVOImpl getMetadataVO()
Method to return the FndAuditAttributesVOImpl

Returns:
FndAuditAttributesVOImpl

getFndAppModules

public static java.util.List getFndAppModules(java.lang.String webApp)
Private method to get the resultant rows from fnd_audit_webapp_am given a webApp.

Parameters:
webApp -
Returns:
List

getCustomObjContextAttr

public static java.util.List getCustomObjContextAttr(oracle.jbo.server.ViewDefImpl customViewDef)
public method to get the contextAttribute columns for logging purposes. This wll help during reporting custom objects by their columns.

Parameters:
customViewDef -

invalidateAuditMDSCache

public static void invalidateAuditMDSCache()

invalidateAuditMDSCacheInternal

public static void invalidateAuditMDSCacheInternal()
                                            throws oracle.mds.core.ConcurrentMOChangeException
Throws:
oracle.mds.core.ConcurrentMOChangeException

isAuditable

public boolean isAuditable(java.lang.String tableName)
Method that determines whether a table is Auditble based on the existence of a shadow table.

Parameters:
tableName -
Returns:
String

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.6)

E22562-05

Copyright © 2012 Oracle. All Rights Reserved.