|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.uif.util.ExpressionFunctions
public class ExpressionFunctions
Defines functions that can be used in el expressions within the UIF dictionary files
Constructor Summary | |
---|---|
ExpressionFunctions()
|
Method Summary | |
---|---|
static boolean |
empty(Object value)
Checks whether the given value is null or blank string |
static String |
getName(Class<?> clazz)
Returns the name for the given class |
static String |
getParm(String namespaceCode,
String componentCode,
String parameterName)
Retrieves the value of the parameter identified with the given namespace, component, and name |
static Boolean |
getParmInd(String namespaceCode,
String componentCode,
String parameterName)
Retrieves the value of the parameter identified with the given namespace, component, and name and converts to a Boolean |
static boolean |
hasPerm(String namespaceCode,
String permissionName)
Indicates whether the current user has the permission identified by the given namespace and permission name |
static boolean |
hasPermDtls(String namespaceCode,
String permissionName,
Map<String,String> permissionDetails,
Map<String,String> roleQualifiers)
Indicates whether the current user has the permission identified by the given namespace and permission name and with the given details and role qualification |
static boolean |
hasPermTmpl(String namespaceCode,
String templateName,
Map<String,String> permissionDetails,
Map<String,String> roleQualifiers)
Indicates whether the current user has the permission identified by the given namespace and template name and with the given details and role qualification |
static boolean |
isAssignableFrom(Class<?> assignableClass,
Class<?> objectClass)
Checks whether the given class parameter is assignable from the given object class parameter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExpressionFunctions()
Method Detail |
---|
public static boolean isAssignableFrom(Class<?> assignableClass, Class<?> objectClass)
assignableClass
- - class to use for assignable toobjectClass
- - class to use for assignable from
public static boolean empty(Object value)
value
- - property value to check
public static String getName(Class<?> clazz)
clazz
- - class object to return name for
public static String getParm(String namespaceCode, String componentCode, String parameterName)
namespaceCode
- - namespace code for the parameter to retrievecomponentCode
- - component code for the parameter to retrieveparameterName
- - name of the parameter to retrieve
public static Boolean getParmInd(String namespaceCode, String componentCode, String parameterName)
namespaceCode
- - namespace code for the parameter to retrievecomponentCode
- - component code for the parameter to retrieveparameterName
- - name of the parameter to retrieve
public static boolean hasPerm(String namespaceCode, String permissionName)
namespaceCode
- - namespace code for the permission to checkpermissionName
- - name of the permission to check
public static boolean hasPermDtls(String namespaceCode, String permissionName, Map<String,String> permissionDetails, Map<String,String> roleQualifiers)
namespaceCode
- - namespace code for the permission to checkpermissionName
- - name of the permission to checkpermissionDetails
- - details for the permission checkroleQualifiers
- - qualification for assigned roles
public static boolean hasPermTmpl(String namespaceCode, String templateName, Map<String,String> permissionDetails, Map<String,String> roleQualifiers)
namespaceCode
- - namespace code for the permission to checktemplateName
- - name of the permission template to find permissions forpermissionDetails
- - details for the permission checkroleQualifiers
- - qualification for assigned roles
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |