|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.gui.legacy.util.BizappUtils
@Deprecated public class BizappUtils
Utilities class that provides convenience methods for operating on bizapp objects.
| Constructor Summary | |
|---|---|
BizappUtils()
Deprecated. |
|
| Method Summary | |
|---|---|
static List |
buildGroupTypes(javax.servlet.http.HttpServletRequest request)
Deprecated. build group types and its corresponding resource string respresentations from the ApplicationResources.properties file. |
static boolean |
canAdminCam(Map roleOps)
Deprecated. Check in the permissions map to see if the user can administer CAM. |
static List |
filterTypes(List all)
Deprecated. Return a List of ResourceTypeValue objects from a given list that does not include the
root resource type. |
static void |
fixupRoleOperationMap(Map map)
Deprecated. Update the given role operations map to reflect the gui's permission model. |
static String |
getGroupLabel(javax.servlet.http.HttpServletRequest request,
org.rhq.core.domain.resource.group.ResourceGroup group)
Deprecated. build group types and its corresponding resource string respresentations from the ApplicationResources.properties file. |
static List |
grepSubjects(List all,
List matches)
Deprecated. Return a List of Subject objects from a list that do not appear in a
list of matches. |
static boolean |
hasPermission(javax.servlet.http.HttpServletRequest request,
org.rhq.core.domain.authz.Permission perm)
Deprecated. Check in the permissions map to see if the user can administer RHQ with the given permission. |
static List |
loadPermissions(List operations)
Deprecated. |
static String |
makeSubjectFullName(String fname,
String lname)
Deprecated. Return the full name of the subject. |
static String |
makeSubjectFullName(org.rhq.core.domain.auth.Subject subject)
Deprecated. Return the full name of the subject. |
static Integer[] |
mapOperationIds(Map map)
Deprecated. Return an array of operation ids as String objects corresponding to the operations contained in the
input map of resource types to operations. |
static List |
mapOperations(List operations,
List ids)
Deprecated. Return a List of Operation objects corresponding to the input array of operation ids. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BizappUtils()
| Method Detail |
|---|
public static String makeSubjectFullName(String fname,
String lname)
fname - the subject's first namelname - the subject's last namepublic static String makeSubjectFullName(org.rhq.core.domain.auth.Subject subject)
subject - the subjectpublic static List buildGroupTypes(javax.servlet.http.HttpServletRequest request)
public static String getGroupLabel(javax.servlet.http.HttpServletRequest request,
org.rhq.core.domain.resource.group.ResourceGroup group)
public static Integer[] mapOperationIds(Map map)
String objects corresponding to the operations contained in the
input map of resource types to operations.
map - the Map of resource types to operations
public static List mapOperations(List operations,
List ids)
List of Operation objects corresponding to the input array of operation ids.
operations - the List of operationsids - the operation idspublic static boolean canAdminCam(Map roleOps)
A - Map of Lists that contains the different groups of permissions.
public static boolean hasPermission(javax.servlet.http.HttpServletRequest request,
org.rhq.core.domain.authz.Permission perm)
request - contains the attribute that has the user operations
public static void fixupRoleOperationMap(Map map)
map - the Map of role operationspublic static List loadPermissions(List operations)
public static List grepSubjects(List all,
List matches)
List of Subject objects from a list that do not appear in a
list of matches.
all - the list to operate onmatches - the list to grep outpublic static List filterTypes(List all)
List of ResourceTypeValue objects from a given list that does not include the
root resource type.
all - the list to operate onmatches - the list to grep out
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||