com.evolveum.midpoint.common.expression.functions
Class BasicExpressionFunctionsXPath

java.lang.Object
  extended by com.evolveum.midpoint.common.expression.functions.BasicExpressionFunctionsXPath

public class BasicExpressionFunctionsXPath
extends Object

Library of standard midPoint functions. These functions are made available to all midPoint expressions.

Author:
Radovan Semancik

Field Summary
static Trace LOGGER
           
 
Constructor Summary
BasicExpressionFunctionsXPath(BasicExpressionFunctions functions)
           
 
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, Element valueElement)
           
 String determineLdapSingleAttributeValue(Element dnElement, String attributeName, Collection<String> values)
           
 String determineLdapSingleAttributeValue(Element dn, String attributeName, Element valueElement)
           
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
 

Field Detail

LOGGER

public static final Trace LOGGER
Constructor Detail

BasicExpressionFunctionsXPath

public BasicExpressionFunctionsXPath(BasicExpressionFunctions functions)
Method Detail

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

determineLdapSingleAttributeValue

public String determineLdapSingleAttributeValue(Element dn,
                                                String attributeName,
                                                Element valueElement)
                                         throws NamingException
Throws:
NamingException

determineLdapSingleAttributeValue

public String determineLdapSingleAttributeValue(Collection<String> dns,
                                                String attributeName,
                                                Element valueElement)
                                         throws NamingException
Throws:
NamingException

determineLdapSingleAttributeValue

public String determineLdapSingleAttributeValue(Element dnElement,
                                                String attributeName,
                                                Collection<String> values)
                                         throws NamingException
Throws:
NamingException

determineLdapSingleAttributeValue

public String determineLdapSingleAttributeValue(Collection<String> dns,
                                                String attributeName,
                                                Collection<String> values)
                                         throws NamingException
Throws:
NamingException


Copyright © 2013 evolveum. All Rights Reserved.