|
||||||||||
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 boolean |
emptyList(List<?> list)
Checks to see if the list is empty. |
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 |
static boolean |
listContains(List<?> list,
Object[] values)
Check to see if the list contains the values passed in. |
static Long |
sequence(String sequenceName)
Gets the next available number from a sequence |
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 boolean emptyList(List<?> list)
value
- the list
public static boolean listContains(List<?> list, Object[] values)
In the SpringEL call values can be single item or array due to the way the EL converts values. The values can be string or numeric and should match the content type being stored in the list. If the list is String and the values passed in are not string, toString() conversion will be used. Returns true if the values are in the list and both lists are non-empty, false otherwise.
list
- the list to be evaluatedvalues
- the values to be to check for in the list
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
public static Long sequence(String sequenceName)
sequenceName
- name of the sequence to retrieve from
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |