com.evolveum.midpoint.common.expression.functions
Class BasicExpressionFunctions
java.lang.Object
com.evolveum.midpoint.common.expression.functions.BasicExpressionFunctions
public class BasicExpressionFunctions
- extends Object
Library of standard midPoint functions. These functions are made available to all
midPoint expressions.
- Author:
- Radovan Semancik
Method Summary |
String |
concatName(String... components)
Concatenates the arguments to create a name. |
String |
determineLdapSingleAttributeValue(Collection<String> dns,
String attributeName,
Collection<String> values)
|
String |
determineLdapSingleAttributeValue(Collection<String> dns,
String attributeName,
PrismProperty attribute)
|
String |
determineLdapSingleAttributeValue(String dn,
String attributeName,
Collection<?> values)
|
Collection<String> |
getAttributeStringValues(ResourceObjectShadowType shadow,
groovy.xml.QName attributeQname)
|
Collection<String> |
getAttributeStringValues(ResourceObjectShadowType shadow,
QName attributeQname)
|
Collection<String> |
getAttributeStringValues(ResourceObjectShadowType shadow,
String attributeNamespace,
String attributeLocalPart)
|
Collection<Object> |
getAttributeValues(ResourceObjectShadowType shadow,
groovy.xml.QName attributeQname)
|
Collection<Object> |
getAttributeValues(ResourceObjectShadowType shadow,
QName attributeQname)
|
Collection<Object> |
getAttributeValues(ResourceObjectShadowType shadow,
String attributeNamespace,
String attributeLocalPart)
|
static String |
lc(String orig)
Convert string to lower case. |
String |
norm(String orig)
Normalize a string value. |
static String |
trim(String orig)
Remove whitespaces at the beginning and at the end of the string. |
static String |
uc(String orig)
Convert string to upper case. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME_SEPARATOR
public static final String NAME_SEPARATOR
- See Also:
- Constant Field Values
LOGGER
public static final Trace LOGGER
BasicExpressionFunctions
public BasicExpressionFunctions(PrismContext prismContext)
lc
public static String lc(String orig)
- Convert string to lower case.
uc
public static String uc(String orig)
- Convert string to upper case.
trim
public static String trim(String orig)
- Remove whitespaces at the beginning and at the end of the string.
concatName
public String concatName(String... components)
- Concatenates the arguments to create a name.
Each argument is trimmed and the result is concatenated by spaces.
norm
public String norm(String orig)
- Normalize a string value. It follows the default normalization algorithm
used for PolyString values.
- Parameters:
orig
- original value to normalize
- Returns:
- normalized value
getAttributeValues
public Collection<Object> getAttributeValues(ResourceObjectShadowType shadow,
String attributeNamespace,
String attributeLocalPart)
getAttributeValues
public Collection<Object> getAttributeValues(ResourceObjectShadowType shadow,
groovy.xml.QName attributeQname)
getAttributeValues
public Collection<Object> getAttributeValues(ResourceObjectShadowType shadow,
QName attributeQname)
getAttributeStringValues
public Collection<String> getAttributeStringValues(ResourceObjectShadowType shadow,
String attributeNamespace,
String attributeLocalPart)
getAttributeStringValues
public Collection<String> getAttributeStringValues(ResourceObjectShadowType shadow,
groovy.xml.QName attributeQname)
getAttributeStringValues
public Collection<String> getAttributeStringValues(ResourceObjectShadowType shadow,
QName attributeQname)
determineLdapSingleAttributeValue
public String determineLdapSingleAttributeValue(Collection<String> dns,
String attributeName,
PrismProperty attribute)
throws NamingException
- Throws:
NamingException
determineLdapSingleAttributeValue
public String determineLdapSingleAttributeValue(Collection<String> dns,
String attributeName,
Collection<String> values)
throws NamingException
- Throws:
NamingException
determineLdapSingleAttributeValue
public String determineLdapSingleAttributeValue(String dn,
String attributeName,
Collection<?> values)
throws NamingException
- Throws:
NamingException
Copyright © 2013 evolveum. All Rights Reserved.