@Deprecated public class BizappUtils extends Object
| Constructor and Description |
|---|
BizappUtils()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
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 operationspublic 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 operationspublic static void fixupRoleOperationMap(Map map)
map - the Map of role operationspublic 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 outCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.