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

E22562-02

oracle.apps.fnd.applcore.dataSecurity.ui.util
Class DataSecurityUIUtils

java.lang.Object
  extended by oracle.apps.fnd.applcore.dataSecurity.ui.util.DataSecurityUIUtils

public final class DataSecurityUIUtils
extends java.lang.Object

Utility class for Data Security UI's.

Author:
Abhay K Kumar <abhay.k.kumar&064;oracle.com>

Method Summary
static void addUserIdentity(oracle.security.idm.Identity userIdentity)
           
static void addUserIdentityList(java.util.List<oracle.security.idm.Identity> userIdentityList)
           
static void displayDataSecurityConfirmationMessage(java.lang.String confirmHeader, java.lang.String confirmText)
          Display the confirmation message for given message header and text string.
static void displayDataSecurityErrorMessage(java.lang.String errMsg)
          Display the error message for given message string.
static void displayDataSecurityWarningMessage(java.lang.String warnMsg)
          Display the warning message for given message string.
static java.lang.Object evaluateExpr(java.lang.String pExpr, java.lang.Class pClass)
          Evalutates the given expression
static javax.faces.component.UIComponent findAscendantComp(javax.faces.component.UIComponent comp, java.lang.String id, java.lang.Class compClass)
          find Ascendant Component.
static javax.faces.component.UIComponent findDescendantComp(javax.faces.component.UIComponent comp, java.lang.String id, java.lang.Class compClass)
          Find Descendant Component.
static java.lang.String getMessage(java.lang.String pRbKey)
          Returns a translated String based on the given key from the run tree bundle
static java.lang.String getMessage(java.lang.String pRbKey, java.lang.Object... pTokens)
          Returns a translated String based on the given key from the run tree bundle
static java.lang.String getTranslatedLabel(java.lang.String pRbName, java.lang.String pRbKey, java.lang.Object... pTokens)
          Returns the translated String from the given resource bundle with the given key and token values.
static void hidePopup(oracle.adf.view.rich.component.rich.RichPopup popupDialog)
          Prepares the script to render a pop up dynamically.
static java.lang.Object invokeMethod(java.lang.String expr, java.lang.Class[] paramTypes, java.lang.Object[] params)
          Evaluates the EL expression, invokes the method that was found using the supplied parameters, and returns the result of the method invocation.
static java.lang.Object invokeMethod(java.lang.String expr, java.lang.Class paramType, java.lang.Object param)
          Evaluates the EL expression, invokes the method that was found using the supplied parameters, and returns the result of the method invocation.
static boolean isAppsUIShellFlow()
          Checks whetehr the page is launched from Applcore flow (Non-IDM Shell flow).
static void saveInstanceGrants(oracle.adf.view.rich.event.DialogEvent dialogEvent)
           
static void setActionExpression(javax.faces.event.ActionEvent actionEvent, java.lang.String actionMethod)
          Sets the ActionExpression for the given Action Source programmatically.
static void setLocale()
          Set session's language basing on APM's locale setting
static void showPopup(oracle.adf.view.rich.component.rich.RichPopup popupDialog)
          Prepares the script to render a pop up dynamically.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

displayDataSecurityErrorMessage

public static void displayDataSecurityErrorMessage(java.lang.String errMsg)
Display the error message for given message string.

Parameters:
errMsg - Error message to be displayed

displayDataSecurityWarningMessage

public static void displayDataSecurityWarningMessage(java.lang.String warnMsg)
Display the warning message for given message string.

Parameters:
warnMsg - Warning message to be displayed

displayDataSecurityConfirmationMessage

public static void displayDataSecurityConfirmationMessage(java.lang.String confirmHeader,
                                                          java.lang.String confirmText)
Display the confirmation message for given message header and text string.

Parameters:
confirmHeader - Confirmation Header message to be displayed
confirmText - Confirmation Text Message to be displayed

getMessage

public static java.lang.String getMessage(java.lang.String pRbKey)
Returns a translated String based on the given key from the run tree bundle

Parameters:
pRbKey - key for the resource in the bundle
Returns:
the translated String value from the resource bundle with the given key and token values.

getMessage

public static java.lang.String getMessage(java.lang.String pRbKey,
                                          java.lang.Object... pTokens)
Returns a translated String based on the given key from the run tree bundle

Parameters:
pRbKey - key for the resource in the bundle
pTokens - any tokens for the resource that need to be substituted.
Returns:
the translated String value from the resource bundle with the given key and token values.

getTranslatedLabel

public static java.lang.String getTranslatedLabel(java.lang.String pRbName,
                                                  java.lang.String pRbKey,
                                                  java.lang.Object... pTokens)
Returns the translated String from the given resource bundle with the given key and token values.

Parameters:
pRbName - fully qualified name of the resource bundle. This could be a XLIFF resource bundle or a Java resource bundle.
pRbKey - key for the resource in the bundle
pTokens - any tokens for the resource that need to be substituted.
Returns:
the translated String value from the resource bundle with the given key and token values.

evaluateExpr

public static java.lang.Object evaluateExpr(java.lang.String pExpr,
                                            java.lang.Class pClass)
Evalutates the given expression

Parameters:
pExpr - as Expression string
pClass - as Class
Returns:
Evaluated expression

showPopup

public static void showPopup(oracle.adf.view.rich.component.rich.RichPopup popupDialog)
Prepares the script to render a pop up dynamically.

Parameters:
popupDialog - the Popup Dailog component

hidePopup

public static void hidePopup(oracle.adf.view.rich.component.rich.RichPopup popupDialog)
Prepares the script to render a pop up dynamically.

Parameters:
popupDialog - the Popup Dailog component

isAppsUIShellFlow

public static boolean isAppsUIShellFlow()
Checks whetehr the page is launched from Applcore flow (Non-IDM Shell flow).

Returns:
true if non-IDM shell flow

setActionExpression

public static void setActionExpression(javax.faces.event.ActionEvent actionEvent,
                                       java.lang.String actionMethod)
Sets the ActionExpression for the given Action Source programmatically.

Parameters:
actionEvent - Action Event assoicated with the Source
actionMethod - Method Expression which sneed to be set as action

invokeMethod

public static java.lang.Object invokeMethod(java.lang.String expr,
                                            java.lang.Class[] paramTypes,
                                            java.lang.Object[] params)
Evaluates the EL expression, invokes the method that was found using the supplied parameters, and returns the result of the method invocation.

Parameters:
paramTypes - List of parameter classes
params - List of parameters
Returns:
the result of the method invocation (null if the method has a void return type).

invokeMethod

public static java.lang.Object invokeMethod(java.lang.String expr,
                                            java.lang.Class paramType,
                                            java.lang.Object param)
Evaluates the EL expression, invokes the method that was found using the supplied parameters, and returns the result of the method invocation.

Parameters:
paramType - parameter classes
param - parameter value
Returns:
the result of the method invocation (null if the method has a void return type).

findAscendantComp

public static javax.faces.component.UIComponent findAscendantComp(javax.faces.component.UIComponent comp,
                                                                  java.lang.String id,
                                                                  java.lang.Class compClass)
find Ascendant Component.

Parameters:
comp - as UIComponent
id - as Id
compClass - as Class
Returns:
UIComponent

findDescendantComp

public static javax.faces.component.UIComponent findDescendantComp(javax.faces.component.UIComponent comp,
                                                                   java.lang.String id,
                                                                   java.lang.Class compClass)
Find Descendant Component.

Parameters:
comp - as UIComponent
id - as Id
compClass - as Class
Returns:
UIComponent

saveInstanceGrants

public static void saveInstanceGrants(oracle.adf.view.rich.event.DialogEvent dialogEvent)

addUserIdentity

public static void addUserIdentity(oracle.security.idm.Identity userIdentity)
                            throws oracle.security.idm.IMException
Throws:
oracle.security.idm.IMException

addUserIdentityList

public static void addUserIdentityList(java.util.List<oracle.security.idm.Identity> userIdentityList)
                                throws oracle.security.idm.IMException
Throws:
oracle.security.idm.IMException

setLocale

public static void setLocale()
Set session's language basing on APM's locale setting


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

E22562-02

Copyright © 2011 Oracle. All Rights Reserved.