|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.security.entitlements.admin.util.Utils
The utils class for the entitlements admin console. This is the place holder for static re-usable methods. Getting the appropriate resource bundle based on locale for example
Constructor Summary | |
Utils()
|
Method Summary | |
static java.lang.String |
getFacesParamValue(java.lang.String name)
Get parameters passed in from a jsf page. |
static java.lang.String |
getMessageResourceString(java.lang.String bundleName,
java.lang.String key,
java.lang.Object[] params,
java.util.Locale locale)
Get the appropriate message from the appropriate localized resource string This method can be used to pull text from the appropriate localized message file programatically if needed. |
static java.lang.Object |
getSessionBean(java.lang.String neededBean)
Programatically access a session bean from another session bean. |
static SessionState |
getSessionState()
Since we are re-using the session state in so many other places this will simplify getting access to it |
static java.lang.String |
getTreeNodeNameFromMetaObjectImpl(com.bea.ales.rbac.MetaObject pset,
java.lang.String type)
Return tree node name for a given rbac meta object |
static java.lang.String |
getTreeNodeNameFromRBACPermissionSet(com.bea.ales.rbac.RBAC_PermissionSet pset)
Return tree node name for a given rbac permission set |
static java.lang.String |
getTreeNodeNameFromRBACRole(com.bea.ales.rbac.RBAC_Role role)
Return tree node name for a given rbac Role |
static boolean |
isAttributeInList(AttributeElement attr,
java.util.List attrList)
Check to see if a given Attribute Element is defined in a list |
static boolean |
matchFilter(java.lang.String strToMatch,
java.lang.String filterStr)
Match filters |
static java.util.regex.Pattern |
toRegularPattern(java.lang.String filter)
Covery a given filter to a regular expression pattern |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Utils()
Method Detail |
public static java.lang.String getFacesParamValue(java.lang.String name)
public static java.lang.String getMessageResourceString(java.lang.String bundleName, java.lang.String key, java.lang.Object[] params, java.util.Locale locale)
bundleName
- the name of the resource bundle to load without the localkey
- the name of the message to load return from the bundle.params
- message formatting parameterslocale
- the locale that the message should be returned in.
public static java.lang.Object getSessionBean(java.lang.String neededBean)
public static SessionState getSessionState()
public static java.lang.String getTreeNodeNameFromMetaObjectImpl(com.bea.ales.rbac.MetaObject pset, java.lang.String type)
pset
- meta object name to use
public static java.lang.String getTreeNodeNameFromRBACPermissionSet(com.bea.ales.rbac.RBAC_PermissionSet pset)
pset
- permission sets name to use
public static java.lang.String getTreeNodeNameFromRBACRole(com.bea.ales.rbac.RBAC_Role role)
public static boolean isAttributeInList(AttributeElement attr, java.util.List attrList)
attr
- attribute to checkattrList
- list to check within
public static boolean matchFilter(java.lang.String strToMatch, java.lang.String filterStr)
strToMatch
- string to matchfilterStr
- filter to match
public static java.util.regex.Pattern toRegularPattern(java.lang.String filter)
filter
- string to convert
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |