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

E22562-07

oracle.apps.fnd.applcore.dataSecurity.dataSecurityService.applicationModule
Class DataSecurityAMImpl

java.lang.Object
  extended by oracle.jbo.common.NamedObjectImpl
      extended by oracle.jbo.server.NamedObjectImpl
          extended by oracle.jbo.server.ComponentObjectImpl
              extended by oracle.jbo.server.ContainerObjectImpl
                  extended by oracle.jbo.server.ApplicationModuleImpl
                      extended by oracle.apps.fnd.applcore.oaext.model.OAApplicationModuleImpl
                          extended by oracle.apps.fnd.applcore.dataSecurity.dataSecurityService.applicationModule.DataSecurityAMImpl
All Implemented Interfaces:
java.util.EventListener, DataSecurityAM, OAApplicationModule, OASeedDataService, oracle.jbo.ApplicationModule, oracle.jbo.common.TransPostControl, oracle.jbo.common.ws.WSApplicationModuleMarshaller, oracle.jbo.ComponentObject, oracle.jbo.ExprWrappable, oracle.jbo.GenericHints, oracle.jbo.OperationContainer, oracle.jbo.Properties, oracle.jbo.server.ContainerObject, oracle.jbo.server.TransactionListener, oracle.jbo.VariableManagerOwner, oracle.jbo.VariableManagerOwnerBase, oracle.jbo.WarningContainer, oracle.svcmsg.SvcMsgReceiver, oracle.svcmsg.SvcMsgSender
Direct Known Subclasses:
DataSecurityWSAMImpl

public class DataSecurityAMImpl
extends OAApplicationModuleImpl
implements DataSecurityAM


Field Summary
static java.lang.String JAXB_CONTEXT_PATH
          JAXB_CONTEXT_PATH.
 
Fields inherited from class oracle.apps.fnd.applcore.oaext.model.OAApplicationModuleImpl
RCS_ID
 
Fields inherited from class oracle.jbo.server.ApplicationModuleImpl
DEFAULT_DEF_NAME, SHARED_SCOPE_APPLICATION, SHARED_SCOPE_SESSION
 
Fields inherited from class oracle.jbo.server.ContainerObjectImpl
mComponentList, mComponents
 
Fields inherited from class oracle.jbo.common.NamedObjectImpl
mFullName, mObjName, mParent, mProperties, RES_ID_SUFFIX
 
Fields inherited from interface oracle.jbo.ApplicationModule
ACTIVATE_CLIENT_FLAG, ACTIVATE_REMOVE_FLAG, ACTIVATE_SKIP_RESTORE_VO_FROM_DEF, ACTIVATE_TRANSIENT_FLAG, ACTIVATE_UNDO_FLAG, DEFAULT_DEF_FULL_NAME, DEFAULT_ROOT_APP_MOD_NAME, EFF_DT_PROPERTY_STR, IMAGE_LOC, PASSIVATE_DEFER_FLAG, PASSIVATE_HINT_FLAG, PASSIVATE_TO_DATABASE, PASSIVATE_TO_FILE, PASSIVATE_TO_MEMORY, PASSIVATE_TO_STACK_FLAG, PASSIVATE_TRANSIENT_FLAG, PASSIVATE_UNDO_FLAG, RELEASE_LEVEL_MANAGED, RELEASE_LEVEL_RESERVED, RELEASE_LEVEL_UNMANAGED, REMOVE_SNAPSHOT, RESET_CLIENT_ONLY_FLAG, RESET_INTERNAL_FLAG, RESET_KEEP_ALL_SNAPSHOTS_FLAG, RESET_MANAGE_SNAPSHOTS, RESET_RELOAD_FLAG, RESET_ROLLBACK_FLAG, SYNC_BATCH, SYNC_IMMEDIATE, SYNC_LAZY
 
Fields inherited from interface oracle.jbo.GenericHints
PROPERTY_LABEL, PROPERTY_LABEL_PLURAL, PROPERTY_TOOLTIP
 
Fields inherited from interface oracle.apps.fnd.applcore.oaext.model.OASeedDataService
RCS_ID_RECORDED
 
Fields inherited from interface oracle.jbo.common.TransPostControl
TRANS_POST_GET_ATTR_BY_INDEX, TRANS_POST_GET_ATTR_BY_NAME, TRANS_POST_GET_ATTR_COUNT, TRANS_POST_GET_ATTR_INDEX_OF, TRANS_POST_GET_STRUCTURE_DEF, TRANS_POST_PUSHBACK, TRANS_POST_REFRESH_UNDO_CHANGES, TRANS_POST_REFRESH_WITH_DB_FORGET_CHANGES, TRANS_POST_REFRESH_WITH_DB_ONLY_IF_UNCHANGED, TRANS_POST_REMOVE, TRANS_POST_SET_ATTR_BY_INDEX, TRANS_POST_SET_ATTR_BY_NAME
 
Fields inherited from interface oracle.jbo.common.ws.WSApplicationModuleMarshaller
ACTIVATION_AFTER_LOSS_OF_AFFINITY, ACTIVATION_AFTER_RESTART, ACTIVATION_NONE, SYNC_INT_BATCH, SYNC_INT_BATCH_DO_WORK
 
Constructor Summary
DataSecurityAMImpl()
          This is the default constructor (do not remove).
 
Method Summary
static boolean checkForUserSpecificGrants(Privilege privilege, DataContext dataContext, oracle.jbo.server.DBTransaction dbTxn, oracle.adf.share.ADFContext ctx)
           
 boolean checkFunctionSecurityGrant(java.lang.String functionName, java.lang.String objectName, oracle.jbo.server.DBTransaction dbTxn)
          Checks whether function security grant exists for the specified function on the specified object.
 void filterByObjectId(java.lang.Long objId)
           
 void filterByRoleName(java.lang.String rolename)
           
static void flushCaches()
          Internal API for ApplCore.
static void flushJVMCaches()
          Internal API for ApplCore.
static void flushJVMCachesForAllEnterprises()
          Internal API for ApplCore.
static void flushUserSessionCaches()
          Internal API for ApplCore.
 java.lang.String[] getAggregatePrivileges(DataContext dataContext)
          Provides the list of aggregate privilege names granted to the user for the specified dataContext (Object/PK) in the current session context.
static java.lang.String[] getAggregatePrivileges(DataContext dataContext, oracle.jbo.server.DBTransaction dbTxn)
          Provides the list of aggregate privilege names granted to the user for the specified dataContext (Object/PK) in the current session context.
 OAViewObjectImpl getFndFormFunctions()
          Container's getter for FndFormFunctions.
 FndFormFunctionsVOImpl getFndFormFunctions1()
          Container's getter for FndFormFunctions1.
 oracle.jbo.server.ViewLinkImpl getFndFormFunctionsVOToFndObjects1()
          Container's getter for FndFormFunctionsVOToFndObjects1.
 oracle.jbo.server.ViewLinkImpl getFndFormFunctionsVOToFndObjects2()
          Container's getter for FndFormFunctionsVOToFndObjects2.
 OAViewObjectImpl getFndGrants()
          Container's getter for FndGrants.
 FndGrantsSBChangesVOImpl getFndGrantsSBChanges()
          Container's getter for FndGrantsSBChanges1.
 OAViewObjectImpl getFndGrantsSBRolesFilter1()
          Container's getter for FndGrantsSBRolesFilter1.
 FndGrantsUnSecuredVOImpl getFndGrantsUnSecured()
          Container's getter for FndGrantsUnSecured.
 oracle.jbo.server.ViewLinkImpl getFndGrantsUnSecuredVOToFndMenus1()
          Container's getter for FndGrantsUnSecuredVOToFndMenus1.
 oracle.jbo.server.ViewLinkImpl getFndGrantsUnSecuredVOToFndObjectsUnSecured1()
          Container's getter for FndGrantsUnSecuredVOToFndObjectsUnSecured1.
 oracle.jbo.server.ViewLinkImpl getFndGrantsVOToFndMenus1()
          Container's getter for FndGrantsVOToFndMenus1.
 oracle.jbo.server.ViewLinkImpl getFndGrantsVOToFndObjectInstanceSets1()
          Container's getter for FndGrantsVOToFndObjectInstanceSets1.
 oracle.jbo.server.ViewLinkImpl getFndGrantsVOToFndObjects1()
          Container's getter for FndGrantsVOToFndObjects1.
 FndMenuEntriesVOImpl getFndMenuEntries()
          Container's getter for FndMenuEntries1.
 oracle.jbo.server.ViewLinkImpl getFndMenuEntriesVOToFndFormFunctions1()
          Container's getter for FndMenuEntriesVOToFndFormFunctions1.
 OAViewObjectImpl getFndMenus()
          Container's getter for FndMenus.
 FndMenusVOImpl getFndMenus1()
          Container's getter for FndMenus1.
 FndMenusVOImpl getFndMenus2()
          Container's getter for FndMenus2.
 oracle.jbo.server.ViewLinkImpl getFndMenusToFndMenuEntries1()
          Container's getter for FndMenusToFndMenuEntries1.
 FndObjectInstanceSetsVOImpl getFndObjectInstanceSets()
          Container's getter for FndObjectInstanceSets1.
 FndObjectInstanceSetsVOImpl getFndObjectInstanceSets1()
          Container's getter for FndObjectInstanceSets1.
 FndObjectInstanceSetsVOImpl getFndObjectInstanceSets2()
          Container's getter for FndObjectInstanceSets2.
 FndObjectInstanceSetsVOImpl getFndObjectInstanceSets3()
          Container's getter for FndObjectInstanceSets3.
 FndObjectISSBChangesVOImpl getFndObjectISSBChanges()
          Container's getter for FndObjectISSBChanges2.
 OAViewObjectImpl getFndObjects()
          Container's getter for FndObjects.
 FndObjectsVOImpl getFndObjects1()
          Container's getter for FndObjects1.
 FndObjectsVOImpl getFndObjects2()
          Container's getter for FndObjects2.
 FndObjectsVOImpl getFndObjects3()
          Container's getter for FndObjects3.
 FndObjectsSBChangesVOImpl getFndObjectsSBChanges()
          Container's getter for FndObjectsSBChanges1.
 FndObjectsSBChangesVOImpl getFndObjectsSBChanges1()
          Container's getter for FndObjectsSBChanges1.
 oracle.jbo.server.ViewLinkImpl getFndObjectsSBChangesVOToFndGrantsSBChanges1()
          Container's getter for FndObjectsSBChangesVOToFndGrantsSBChanges1.
 oracle.jbo.server.ViewLinkImpl getFndObjectsSBChangesVOToFndObjectISSBChanges1()
          Container's getter for FndObjectsSBChangesVOToFndObjectISSBChanges1.
 FndObjectsUnSecuredVOImpl getFndObjectsUnSecured()
          Container's getter for FndObjectsUnSecured.
 FndObjectsUnSecuredVOImpl getFndObjectsUnSecured1()
          Container's getter for FndObjectsUnSecured1.
 oracle.jbo.server.ViewLinkImpl getFndObjectsUnSecuredVOToFndObjectInstanceSets1()
          Container's getter for FndObjectsUnSecuredVOToFndObjectInstanceSets1.
 oracle.jbo.server.ViewLinkImpl getFndObjectsVOToFndObjectInstanceSets1()
          Container's getter for FndObjectsVOToFndObjectInstanceSets1.
 FndRawGeneratorVOImpl getFndRawGenerator()
          Container's getter for FndRawGenerator.
static java.lang.String getFormattedDate(java.sql.Date date)
           
 KFFHierFilterVOImpl getKFFHierFilter1()
          Container's getter for KFFHierFilter1.
 long getMenuId(java.lang.String[] functionNames, java.lang.String objectName, oracle.jbo.server.DBTransaction dbTxn)
          Important: For Internal Use Only.
 java.util.ArrayList<java.util.HashMap> getObjectsFilterList()
           
 java.lang.String[] getPrivileges(DataContext dataContext)
          Provides the list of privilege names granted to the user for the specified dataContext (Object/PK) in the current session context.
static java.lang.String[] getPrivileges(DataContext dataContext, oracle.jbo.server.DBTransaction dbTxn)
          Provides the list of privilege names granted to the user for the specified dataContext (Object/PK) in the current session context.
 java.util.ArrayList<java.lang.String> getRolesFilterList()
           
 java.sql.Timestamp getSBCreationTimeStamp()
           
 FndFilterImpl[] getSecurityFilters(Privilege privilege, DataContext dataContext, java.lang.String grantInstanceType)
          Gets Security Filters.
static FndFilterImpl[] getSecurityFilters(Privilege privilege, DataContext dataContext, java.lang.String grantInstanceType, oracle.jbo.server.DBTransaction dbTxn)
          Return the security filters for a given privilege on an object for the user in the current session context.
 java.lang.String getSecurityPredicate(Privilege privilege, DataContext dataContext, java.lang.String grantInstanceType, java.lang.String statementType, java.lang.String tableAlias)
          Return the security predicate for a given privilege on an object for the user in the current session context.
static java.lang.String getSecurityPredicate(Privilege privilege, DataContext dataContext, java.lang.String grantInstanceType, java.lang.String statementType, java.lang.String tableAlias, oracle.jbo.server.DBTransaction dbTxn)
          Return the security predicate for a given privilege on an object for the user in the current session context.
 oracle.jbo.domain.Raw getSysGuid()
          Gets the value of SYS_GUID().
 void grantAggregatePrivilege()
          Grats Aggregate Privilege.
static boolean isDSDisabled()
           
 void refreshTableIterator()
           
 void sampleDataSecurityAMImplExportable()
          Sample exportable method.
 void sampleDataSecurityAMImplExportable2(java.lang.String testParam1)
          Sample exportable method.
 boolean testPrivilege(Privilege privilege, DataContext dataContext)
          Test if a privilege is accessible for a given data context for the user in the current session context.
static boolean testPrivilege(Privilege privilege, DataContext dataContext, oracle.jbo.server.DBTransaction dbTxn)
          Test if a privilege is accessible for a given data context for the user in the current session context.
static boolean testPrivilege(java.lang.String privilegeName, java.lang.String objectName, java.lang.String pk1, java.lang.String pk2, java.lang.String pk3, java.lang.String pk4, java.lang.String pk5, oracle.jbo.server.DBTransaction dbTxn)
          Test if a privilege is accessible for a given privilege, objectName and pk.
 
Methods inherited from class oracle.apps.fnd.applcore.oaext.model.OAApplicationModuleImpl
getFNDNestedService, getFNDNestedService, getNLSLanguageForSeedData, getSeedContext, getSequenceValue, getSetId, invalidateSetIdCache, invalidateSetIdCache, isResetting, isSeedDataExtractMode, isSeedDataMode, isSeedDataUploadMode, isSeedDataValidateFullMode, isSeedDataValidatePartialMode, isT2PMode, prepareSession, prepareSession, resetState, resetState, seedExtract, seedUpload, seedUpload, seedUpload, setNLSLanguageForSeedData, setSeedContext, setT2PMode, synchronizeApplSessionWithDB, unSetT2PMode
 
Methods inherited from class oracle.jbo.server.ApplicationModuleImpl
activate, activateConnectionState, activateOpenVOs, activateState, activateState, activateState, activateState, activateStateForUndo, addChild, addResponse, addWarning, afterActivation, afterCommit, afterConnect, afterRemove, afterRollback, afterValidate, beforeCommit, beforeDisconnect, beforeRollback, beforeValidate, bindToWorkingSet, clearVOCaches, createApplicationModule, createComponentObject, createCompositeViewDef, createRootApplicationModule, createSharedDataHandle, createViewLink, createViewLink, createViewLinkBetweenViewObjects, createViewLinkFromEntityAssocName, createViewObject, createViewObject, createViewObjectForDef, createViewObjectFromQueryClauses, createViewObjectFromQueryStmt, createViewObjectFromQueryStmt, createViewObjectOnEntity, createViewObjectOnRowSet, createWorkerApplicationModule, createXMLSharedDataHandle, detach, doMessage, doPoolMessage, dumpQueryResult, executeCommand, executeQueryOnViewObjects, fetchAttributeProperties, findApplicationModule, findComponentObject, findObject, findObject, findOrCreateSharedApplicationModule, findRSIForEntity, findViewLink, findViewObject, findViewObjectUsingEntity, findViewObjectWithParameters, findVOsWithEntityUsage, findVOsWithEntityUsage, finishLoadingComponents, finishSyncWorkingSet, getAMStatistics, getApplicationModuleDef, getApplicationModuleImpls, getApplicationModuleNames, getApplicationModuleNames, getAppModuleRequestHandler, getAttributeDefs, getAttributeDefs, getAttributeDefsForVO, getClientProxyClassName, getClientProxyClassName, getClientProxyInterfaceName, getComponentObjectNames, getComponentObjectNames, getCurrentWorkingSet, getDBTransaction, getDefFullName, getDefName, getEntityAttributesPermission, getEntityRowFromHandle, getExceptionHandler, getImageLoc, getListBindingName, getListBindingRSI, getMostRecentStackId, getObjectMarshaller, getPreferredListRSI, getReleaseLevel, getRemoteObjectId, getResponseName, getSession, getStyles, getSyncLock, getSyncMode, getTransaction, getTransactionInternal, getUserPrincipalName, getViewAttributesPermission, getViewLinkNames, getViewLinkNames, getViewLinks, getViewObjectNames, getViewObjectNames, getViewObjects, getWorkingSetMarshaller, handleDefinitionChangedOnActivate, hasPendingDataPosts, internalGetListBindingRSI, invokeMethod, isForRemote, isLoadComponentsLazily, isNameGenerated, isRoot, isTransientTransactionListener, isValidIdForUndo, launchTester, marshal, marshalForActivate, passivateConnectionState, passivateOpenVOs, passivateState, passivateState, passivateState, passivateState, passivateState, passivateStateForUndo, prepareAccessorViewObjects, prepareApplicationModuleSession, prepareForActivation, prepareForPassivation, prepareSession, prepareViewObjects, processChangeNotifications, remove, removeChild, removeState, reservePassivationId, reserveSnapshotId, reset, resetState, selectAttributesForViewObjects, sendServiceMessage, sendWorkingSetRequests, setBoundToWorkingSet, setDataModelRefresh, setDBConnectionRequired, setExceptionHandler, setLoadComponentsLazily, setReleaseLevel, setRemoteAdapter, setSessionUserData, setStoreForPassiveState, setStyles, setSyncMode, setWorkingSetMarshaller, sync, syncMarshaller, syncWorkingSet, transformExceptionParams, transformExceptionParams, transPostGetAttr, transPostPushback, transPostRefresh, transPostRemove, transPostRevert, transPostRowOp, transPostSetAttr, transPostSetAttrValues
 
Methods inherited from class oracle.jbo.server.ContainerObjectImpl
addContainerListener, removeContainerListener
 
Methods inherited from class oracle.jbo.server.ComponentObjectImpl
addListener, applyPersonalization, create, createRef, createVariableValueManager, ensureVariableManager, findOperationDefinitions, findPersDefObject, getAllProperties, getApplicationModule, getBooleanAdfmConfigProperty, getCompListeners, getCompListenersList, getDefinitionManager, getFullNameForPersDef, getHintValue, getLabel, getLabelPlural, getMessageBundleClass, getProxyClassName, getProxyClassName, getResourceBundleDef, getRootApplicationModule, getStringFromMessageBundle, getTooltip, getVariableManager, hasVariables, isDead, isPersonalized, isRegWithPiggyMan, resolvePropertyRaw, setName, setParent, setProxyClassName
 
Methods inherited from class oracle.jbo.server.NamedObjectImpl
setParent, setPropertiesMap
 
Methods inherited from class oracle.jbo.common.NamedObjectImpl
allocatePropertyMap, getFullName, getName, getParent, getProperties, getPropertiesAsStrings, getPropertiesMap, getProperty, getProperty, getPropertyExpressionsMap, getPropertyMap, getRawPropertyValue, getResourcesFromBundle, isPropertyExpression, mergePropertyMap, refreshProperty, removeProperty, removeProperty, requiresNamePrefixedResId, resolveObjectProperty, setFullName, setPropertiesMap2, setProperty, setProperty, setPropertyExpression, setPropertyMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface oracle.jbo.ApplicationModule
activateState, activateState, activateState, activateStateForUndo, addWarning, clearVOCaches, createApplicationModule, createComponentObject, createCompositeViewDef, createViewLink, createViewLinkBetweenViewObjects, createViewLinkFromEntityAssocName, createViewObject, createViewObjectFromQueryClauses, createViewObjectFromQueryStmt, createViewObjectFromQueryStmt, createViewObjectOnEntity, createViewObjectOnRowSet, doPoolMessage, executeQueryOnViewObjects, fetchAttributeProperties, findApplicationModule, findComponentObject, findRSIForEntity, findViewLink, findViewObject, findViewObjectUsingEntity, findViewObjectWithParameters, getApplicationModuleNames, getApplicationModuleNames, getExceptionHandler, getListBindingName, getListBindingRSI, getMostRecentStackId, getPreferredListRSI, getReleaseLevel, getSession, getStyles, getSyncLock, getSyncMode, getTransaction, getViewLinkNames, getViewLinkNames, getViewObjectNames, getViewObjectNames, isRoot, isValidIdForUndo, passivateState, passivateState, passivateState, passivateState, passivateStateForUndo, prepareAccessorViewObjects, prepareSession, prepareViewObjects, processChangeNotifications, removeState, reservePassivationId, reserveSnapshotId, resetState, resetState, setExceptionHandler, setReleaseLevel, setStoreForPassiveState, setStyles, setSyncMode, sync, transformExceptionParams
 
Methods inherited from interface oracle.jbo.ComponentObject
getDefFullName, getDefName, getFullName, getName, remove
 
Methods inherited from interface oracle.jbo.GenericHints
getHintValue, getLabel, getLabelPlural, getTooltip
 
Methods inherited from interface oracle.jbo.Properties
getProperties, getProperty, getProperty, refreshProperty
 
Methods inherited from interface oracle.jbo.VariableManagerOwner
getName
 

Field Detail

JAXB_CONTEXT_PATH

public static final java.lang.String JAXB_CONTEXT_PATH
JAXB_CONTEXT_PATH.

See Also:
Constant Field Values
Constructor Detail

DataSecurityAMImpl

public DataSecurityAMImpl()
This is the default constructor (do not remove).

Method Detail

getFormattedDate

public static java.lang.String getFormattedDate(java.sql.Date date)

isDSDisabled

public static boolean isDSDisabled()

testPrivilege

public boolean testPrivilege(Privilege privilege,
                             DataContext dataContext)
Test if a privilege is accessible for a given data context for the user in the current session context.

Parameters:
privilege - the ApplCore privilege to test.
dataContext - data context (object and primary key) to use for testing the privilege. If null, then no data context is used.
Returns:
true if ApplCore privilege is accessible, false otherwise.

testPrivilege

public static boolean testPrivilege(java.lang.String privilegeName,
                                    java.lang.String objectName,
                                    java.lang.String pk1,
                                    java.lang.String pk2,
                                    java.lang.String pk3,
                                    java.lang.String pk4,
                                    java.lang.String pk5,
                                    oracle.jbo.server.DBTransaction dbTxn)
Test if a privilege is accessible for a given privilege, objectName and pk. This is a helper method useful when using Groovy.

Parameters:
privilegeName - the ApplCore privilege to test.
objectName - object name as defined in FND_OBJECTS.OBJ_NAME to use for testing the privilege.
pk1 - - first part of the composite pk of the row to test.
pk2 - - second part of the composite pk of the row to test.
pk3 - - third part of the composite pk of the row to test.
pk4 - - fourth part of the composite pk of the row to test.
pk5 - - fifth part of the composite pk of the row to test.
dbTxn - as DBTransaction
Returns:
true if ApplCore privilege is accessible, false otherwise.
See Also:
testPrivilege(Privilege, DataContext, DBTransaction)

getSecurityPredicate

public java.lang.String getSecurityPredicate(Privilege privilege,
                                             DataContext dataContext,
                                             java.lang.String grantInstanceType,
                                             java.lang.String statementType,
                                             java.lang.String tableAlias)
Return the security predicate for a given privilege on an object for the user in the current session context.

Parameters:
privilege - ApplCore privilege to use to determine the predicate.
dataContext - the data context, which provides the object Name and primary key information.
grantInstanceType - the grant instance type (e.g., "UNIVERSAL", "SET", "INSTANCE").
statementType - the statement type (e.g., "OTHER","VPD", "EXISTS").
tableAlias - alias for the table.
Returns:
The security predicate.

testPrivilege

public static boolean testPrivilege(Privilege privilege,
                                    DataContext dataContext,
                                    oracle.jbo.server.DBTransaction dbTxn)
Test if a privilege is accessible for a given data context for the user in the current session context.

Parameters:
privilege - the ApplCore privilege to test.
dataContext - data context (object and primary key) to use for testing the privilege.
dbTxn - as DBTransaction
Returns:
true if ApplCore privilege is accessible, false otherwise.

getSecurityPredicate

public static java.lang.String getSecurityPredicate(Privilege privilege,
                                                    DataContext dataContext,
                                                    java.lang.String grantInstanceType,
                                                    java.lang.String statementType,
                                                    java.lang.String tableAlias,
                                                    oracle.jbo.server.DBTransaction dbTxn)
Return the security predicate for a given privilege on an object for the user in the current session context.

Parameters:
privilege - ApplCore privilege to use to determine the predicate.
dataContext - the data context, which provides the object Name.
grantInstanceType - the grant instance type (valid values are "INSTANCE", "SET", "UNIVERSAL").
statementType - the statement type (valid values are "OTHER", "VPD", "EXISTS").
tableAlias - alias for the table.
dbTxn - as DBTransaction.
Returns:
security predicate.

getSecurityFilters

public FndFilterImpl[] getSecurityFilters(Privilege privilege,
                                          DataContext dataContext,
                                          java.lang.String grantInstanceType)
Gets Security Filters.

Parameters:
privilege - as Privilege
dataContext - as DataContext
grantInstanceType - as String
Returns:
array of FndFilterImpl

getSecurityFilters

public static FndFilterImpl[] getSecurityFilters(Privilege privilege,
                                                 DataContext dataContext,
                                                 java.lang.String grantInstanceType,
                                                 oracle.jbo.server.DBTransaction dbTxn)
Return the security filters for a given privilege on an object for the user in the current session context.

Parameters:
privilege - ApplCore privilege to use to determine the predicate.
dataContext - the data context, which provides the object Name.
grantInstanceType - the grant instance type (valid values are "INSTANCE", "SET", "UNIVERSAL").
dbTxn - as DBTransaction
Returns:
security filters.

getPrivileges

public java.lang.String[] getPrivileges(DataContext dataContext)
Provides the list of privilege names granted to the user for the specified dataContext (Object/PK) in the current session context.

Parameters:
dataContext - data context (object and primary key) to use for identifying the granted privileges.
Returns:
list of privilege names.

getPrivileges

public static java.lang.String[] getPrivileges(DataContext dataContext,
                                               oracle.jbo.server.DBTransaction dbTxn)
Provides the list of privilege names granted to the user for the specified dataContext (Object/PK) in the current session context.

Parameters:
dataContext - data context (object and primary key) to use for identifying the granted privileges.
dbTxn - DBTransaction instance to use to get hold of a connection
Returns:
list of privilege names.

getAggregatePrivileges

public java.lang.String[] getAggregatePrivileges(DataContext dataContext)
Provides the list of aggregate privilege names granted to the user for the specified dataContext (Object/PK) in the current session context.

Parameters:
dataContext - data context (object and primary key) to use for identifying the granted aggregate privileges.
Returns:
list of aggregate privilege names.

getAggregatePrivileges

public static java.lang.String[] getAggregatePrivileges(DataContext dataContext,
                                                        oracle.jbo.server.DBTransaction dbTxn)
Provides the list of aggregate privilege names granted to the user for the specified dataContext (Object/PK) in the current session context.

Parameters:
dataContext - data context (object and primary key) to use for identifying the granted aggregate privileges.
dbTxn - DBTransaction instance to use to get hold of a connection
Returns:
list of aggregate privilege names.

checkForUserSpecificGrants

public static boolean checkForUserSpecificGrants(Privilege privilege,
                                                 DataContext dataContext,
                                                 oracle.jbo.server.DBTransaction dbTxn,
                                                 oracle.adf.share.ADFContext ctx)

grantAggregatePrivilege

public void grantAggregatePrivilege()
Grats Aggregate Privilege.


getSysGuid

public oracle.jbo.domain.Raw getSysGuid()
Gets the value of SYS_GUID(). Internal use only.

Returns:
Raw a SYS_GUID

getMenuId

public long getMenuId(java.lang.String[] functionNames,
                      java.lang.String objectName,
                      oracle.jbo.server.DBTransaction dbTxn)
Important: For Internal Use Only. Returns the menu Id of the menu that contains the appropriate grouping of the function array that is passed in. It returns the menuId of the menu that contains the exact match of menu entries, if one exists, else creates a new menu/menu entries with the appropriate functions and returns the menuId. The lifecycle of the created menu/menu entries is controlled by the DBTransaction object that is passed in. The caller will have to call commit to ensure that the menu/menu entry is posted to the database.

Parameters:
functionNames - - Array of functions/privileges for which a menu needs to be created/looked up.
objectName - - object corresponding to which the functions are passed in.
dbTxn - - DBTransaction instance.
Returns:
- menu ID of the menu that is looked up or created that contains the exact match of functions as provided by functionNames array.

sampleDataSecurityAMImplExportable

public void sampleDataSecurityAMImplExportable()
Sample exportable method.


sampleDataSecurityAMImplExportable2

public void sampleDataSecurityAMImplExportable2(java.lang.String testParam1)
Sample exportable method.

Parameters:
testParam1 - as String

getFndMenus

public OAViewObjectImpl getFndMenus()
Container's getter for FndMenus.

Returns:
FndMenus as OAViewObjectImpl

getFndGrants

public OAViewObjectImpl getFndGrants()
Container's getter for FndGrants.

Returns:
FndGrants as OAViewObjectImpl

getFndObjects

public OAViewObjectImpl getFndObjects()
Container's getter for FndObjects.

Returns:
FndObjects as OAViewObjectImpl

getFndFormFunctions

public OAViewObjectImpl getFndFormFunctions()
Container's getter for FndFormFunctions.

Returns:
FndFormFunction as OAViewObjectImpl

getFndRawGenerator

public FndRawGeneratorVOImpl getFndRawGenerator()
Container's getter for FndRawGenerator.

Returns:
FndRawGeneratorVOImpl as raw generator VO

getFndMenus1

public FndMenusVOImpl getFndMenus1()
Container's getter for FndMenus1.

Returns:
FndMenus1 as FndMenusVOImpl

getFndObjects1

public FndObjectsVOImpl getFndObjects1()
Container's getter for FndObjects1.

Returns:
FndObjects1 as FndObjectsVOImpl

getFndObjectInstanceSets

public FndObjectInstanceSetsVOImpl getFndObjectInstanceSets()
Container's getter for FndObjectInstanceSets1.

Returns:
FndObjectInstanceSets1 as FndObjectInstanceSetsVOImpl

getFndGrantsVOToFndMenus1

public oracle.jbo.server.ViewLinkImpl getFndGrantsVOToFndMenus1()
Container's getter for FndGrantsVOToFndMenus1.

Returns:
FndGrantsVOToFndMenus1 as ViewLinkImpl

getFndGrantsVOToFndObjects1

public oracle.jbo.server.ViewLinkImpl getFndGrantsVOToFndObjects1()
Container's getter for FndGrantsVOToFndObjects1.

Returns:
FndGrantsVOToFndObjects1 as ViewLinkImpl

getFndObjectsVOToFndObjectInstanceSets1

public oracle.jbo.server.ViewLinkImpl getFndObjectsVOToFndObjectInstanceSets1()
Container's getter for FndObjectsVOToFndObjectInstanceSets1.

Returns:
FndObjectsVOToFndObjectInstanceSets1 as ViewLinkImpl

getFndObjects2

public FndObjectsVOImpl getFndObjects2()
Container's getter for FndObjects2.

Returns:
FndObjects2 as FndObjectsVOImpl

getFndFormFunctionsVOToFndObjects1

public oracle.jbo.server.ViewLinkImpl getFndFormFunctionsVOToFndObjects1()
Container's getter for FndFormFunctionsVOToFndObjects1.

Returns:
FndFormFunctionsVOToFndObjects1 as ViewLinkImpl

getFndObjectInstanceSets1

public FndObjectInstanceSetsVOImpl getFndObjectInstanceSets1()
Container's getter for FndObjectInstanceSets1.

Returns:
FndObjectInstanceSets1 as FndObjectInstanceSetsVOImpl

getFndGrantsVOToFndObjectInstanceSets1

public oracle.jbo.server.ViewLinkImpl getFndGrantsVOToFndObjectInstanceSets1()
Container's getter for FndGrantsVOToFndObjectInstanceSets1.

Returns:
FndGrantsVOToFndObjectInstanceSets1 as ViewLinkImpl

getFndMenuEntries

public FndMenuEntriesVOImpl getFndMenuEntries()
Container's getter for FndMenuEntries1.

Returns:
FndMenuEntries1 as FndMenuEntriesVOImpl

getFndMenusToFndMenuEntries1

public oracle.jbo.server.ViewLinkImpl getFndMenusToFndMenuEntries1()
Container's getter for FndMenusToFndMenuEntries1.

Returns:
FndMenusToFndMenuEntries1 as ViewLinkImpl

getFndFormFunctions1

public FndFormFunctionsVOImpl getFndFormFunctions1()
Container's getter for FndFormFunctions1.

Returns:
FndFormFunctions1 as FndFormFunctionsVOImpl

getFndMenuEntriesVOToFndFormFunctions1

public oracle.jbo.server.ViewLinkImpl getFndMenuEntriesVOToFndFormFunctions1()
Container's getter for FndMenuEntriesVOToFndFormFunctions1.

Returns:
FndMenuEntriesVOToFndFormFunctions1 as ViewLinkImpl

getFndObjects3

public FndObjectsVOImpl getFndObjects3()
Container's getter for FndObjects3.

Returns:
FndObjects3 FndObjectsVOImpl

getFndFormFunctionsVOToFndObjects2

public oracle.jbo.server.ViewLinkImpl getFndFormFunctionsVOToFndObjects2()
Container's getter for FndFormFunctionsVOToFndObjects2.

Returns:
FndFormFunctionsVOToFndObjects2 as ViewLinkImpl

getFndObjectsUnSecured

public FndObjectsUnSecuredVOImpl getFndObjectsUnSecured()
Container's getter for FndObjectsUnSecured.

Returns:
FndObjectsUnSecured

getFndObjectInstanceSets2

public FndObjectInstanceSetsVOImpl getFndObjectInstanceSets2()
Container's getter for FndObjectInstanceSets2.

Returns:
FndObjectInstanceSets2

getFndObjectsUnSecuredVOToFndObjectInstanceSets1

public oracle.jbo.server.ViewLinkImpl getFndObjectsUnSecuredVOToFndObjectInstanceSets1()
Container's getter for FndObjectsUnSecuredVOToFndObjectInstanceSets1.

Returns:
FndObjectsUnSecuredVOToFndObjectInstanceSets1

flushUserSessionCaches

public static void flushUserSessionCaches()
Internal API for ApplCore. No other use supported. Will be removed at any time.


flushCaches

public static void flushCaches()
Internal API for ApplCore. No other use supported. Will be removed at any time.


flushJVMCaches

public static void flushJVMCaches()
Internal API for ApplCore. No other use supported. Will be removed at any time.


flushJVMCachesForAllEnterprises

public static void flushJVMCachesForAllEnterprises()
Internal API for ApplCore. No other use supported. Will be removed at any time.


getFndGrantsUnSecured

public FndGrantsUnSecuredVOImpl getFndGrantsUnSecured()
Container's getter for FndGrantsUnSecured.

Returns:
FndGrantsUnSecured

getFndObjectsUnSecured1

public FndObjectsUnSecuredVOImpl getFndObjectsUnSecured1()
Container's getter for FndObjectsUnSecured1.

Returns:
FndObjectsUnSecured1

getFndGrantsUnSecuredVOToFndObjectsUnSecured1

public oracle.jbo.server.ViewLinkImpl getFndGrantsUnSecuredVOToFndObjectsUnSecured1()
Container's getter for FndGrantsUnSecuredVOToFndObjectsUnSecured1.

Returns:
FndGrantsUnSecuredVOToFndObjectsUnSecured1

getFndMenus2

public FndMenusVOImpl getFndMenus2()
Container's getter for FndMenus2.

Returns:
FndMenus2

getFndGrantsUnSecuredVOToFndMenus1

public oracle.jbo.server.ViewLinkImpl getFndGrantsUnSecuredVOToFndMenus1()
Container's getter for FndGrantsUnSecuredVOToFndMenus1.

Returns:
FndGrantsUnSecuredVOToFndMenus1

getKFFHierFilter1

public KFFHierFilterVOImpl getKFFHierFilter1()
Container's getter for KFFHierFilter1.

Returns:
KFFHierFilter1

checkFunctionSecurityGrant

public boolean checkFunctionSecurityGrant(java.lang.String functionName,
                                          java.lang.String objectName,
                                          oracle.jbo.server.DBTransaction dbTxn)
Checks whether function security grant exists for the specified function on the specified object. If the object is not function security enabled, then no privileges are enforced and this returns true.


getFndObjectsSBChanges

public FndObjectsSBChangesVOImpl getFndObjectsSBChanges()
Container's getter for FndObjectsSBChanges1.

Returns:
FndObjectsSBChanges1

getSBCreationTimeStamp

public java.sql.Timestamp getSBCreationTimeStamp()

getFndObjectInstanceSets3

public FndObjectInstanceSetsVOImpl getFndObjectInstanceSets3()
Container's getter for FndObjectInstanceSets3.

Returns:
FndObjectInstanceSets3

getFndObjectISSBChanges

public FndObjectISSBChangesVOImpl getFndObjectISSBChanges()
Container's getter for FndObjectISSBChanges2.

Returns:
FndObjectISSBChanges2

getFndObjectsSBChangesVOToFndObjectISSBChanges1

public oracle.jbo.server.ViewLinkImpl getFndObjectsSBChangesVOToFndObjectISSBChanges1()
Container's getter for FndObjectsSBChangesVOToFndObjectISSBChanges1.

Returns:
FndObjectsSBChangesVOToFndObjectISSBChanges1

getFndGrantsSBChanges

public FndGrantsSBChangesVOImpl getFndGrantsSBChanges()
Container's getter for FndGrantsSBChanges1.

Returns:
FndGrantsSBChanges1

getFndObjectsSBChangesVOToFndGrantsSBChanges1

public oracle.jbo.server.ViewLinkImpl getFndObjectsSBChangesVOToFndGrantsSBChanges1()
Container's getter for FndObjectsSBChangesVOToFndGrantsSBChanges1.

Returns:
FndObjectsSBChangesVOToFndGrantsSBChanges1

getFndObjectsSBChanges1

public FndObjectsSBChangesVOImpl getFndObjectsSBChanges1()
Container's getter for FndObjectsSBChanges1.

Returns:
FndObjectsSBChanges1

filterByObjectId

public void filterByObjectId(java.lang.Long objId)
Specified by:
filterByObjectId in interface DataSecurityAM

filterByRoleName

public void filterByRoleName(java.lang.String rolename)
Specified by:
filterByRoleName in interface DataSecurityAM

getRolesFilterList

public java.util.ArrayList<java.lang.String> getRolesFilterList()
Specified by:
getRolesFilterList in interface DataSecurityAM

getObjectsFilterList

public java.util.ArrayList<java.util.HashMap> getObjectsFilterList()
Specified by:
getObjectsFilterList in interface DataSecurityAM

refreshTableIterator

public void refreshTableIterator()
Specified by:
refreshTableIterator in interface DataSecurityAM

getFndGrantsSBRolesFilter1

public OAViewObjectImpl getFndGrantsSBRolesFilter1()
Container's getter for FndGrantsSBRolesFilter1.

Returns:
FndGrantsSBRolesFilter1

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

E22562-07

Copyright © 2013 Oracle. All Rights Reserved.