public class BasicExpressionFunctions extends Object
Modifier and Type | Field and Description |
---|---|
static Trace |
LOGGER |
static String |
NAME_SEPARATOR |
Constructor and Description |
---|
BasicExpressionFunctions(PrismContext prismContext) |
Modifier and Type | Method and Description |
---|---|
String |
concatName(Object... 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) |
String |
formatDateTime(String format,
Long millis) |
String |
formatDateTime(String format,
XMLGregorianCalendar xmlCal) |
Collection<String> |
getAttributeStringValues(ShadowType shadow,
groovy.xml.QName attributeQname) |
Collection<String> |
getAttributeStringValues(ShadowType shadow,
QName attributeQname) |
Collection<String> |
getAttributeStringValues(ShadowType shadow,
String attributeNamespace,
String attributeLocalPart) |
<T> T |
getAttributeValue(ShadowType shadow,
groovy.xml.QName attributeQname) |
<T> T |
getAttributeValue(ShadowType shadow,
QName attributeQname) |
<T> T |
getAttributeValue(ShadowType shadow,
String attributeLocalPart) |
<T> T |
getAttributeValue(ShadowType shadow,
String attributeNamespace,
String attributeLocalPart) |
<T> Collection<T> |
getAttributeValues(ShadowType shadow,
groovy.xml.QName attributeQname) |
<T> Collection<T> |
getAttributeValues(ShadowType shadow,
QName attributeQname) |
<T> Collection<T> |
getAttributeValues(ShadowType shadow,
String attributeLocalPart) |
<T> Collection<T> |
getAttributeValues(ShadowType shadow,
String attributeNamespace,
String attributeLocalPart) |
<T> T |
getExtensionPropertyValue(ObjectType object,
groovy.xml.QName propertyQname) |
<T> T |
getExtensionPropertyValue(ObjectType object,
QName propertyQname) |
<T> T |
getExtensionPropertyValue(ObjectType object,
String namespace,
String localPart) |
<T> Collection<T> |
getExtensionPropertyValues(ObjectType object,
groovy.xml.QName propertyQname) |
<T> Collection<T> |
getExtensionPropertyValues(ObjectType object,
QName propertyQname) |
<T> Collection<T> |
getExtensionPropertyValues(ObjectType object,
String namespace,
String localPart) |
<T> T |
getPropertyValue(ObjectType object,
String path) |
<T> Collection<T> |
getPropertyValues(ObjectType object,
String path) |
boolean |
isEmpty(Object whatever) |
static String |
lc(String orig)
Convert string to lower case.
|
String |
norm(String orig)
Normalize a string value.
|
XMLGregorianCalendar |
parseDateTime(String format,
String stringDate) |
static String |
readFile(String filename) |
String |
stringify(Object whatever)
Converts whatever it gets to a string.
|
<T> T |
toSingle(Collection<T> values) |
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.
|
public static final String NAME_SEPARATOR
public static final Trace LOGGER
public BasicExpressionFunctions(PrismContext prismContext)
public static String trim(String orig)
public String concatName(Object... components)
public String norm(String orig)
orig
- original value to normalizepublic String stringify(Object whatever)
public boolean isEmpty(Object whatever)
public <T> Collection<T> getExtensionPropertyValues(ObjectType object, String namespace, String localPart)
public <T> Collection<T> getExtensionPropertyValues(ObjectType object, groovy.xml.QName propertyQname)
public <T> Collection<T> getExtensionPropertyValues(ObjectType object, QName propertyQname)
public <T> T getExtensionPropertyValue(ObjectType object, String namespace, String localPart) throws SchemaException
SchemaException
public <T> T getExtensionPropertyValue(ObjectType object, groovy.xml.QName propertyQname) throws SchemaException
SchemaException
public <T> T getExtensionPropertyValue(ObjectType object, QName propertyQname) throws SchemaException
SchemaException
public <T> T getPropertyValue(ObjectType object, String path) throws SchemaException
SchemaException
public <T> Collection<T> getPropertyValues(ObjectType object, String path)
public <T> Collection<T> getAttributeValues(ShadowType shadow, String attributeNamespace, String attributeLocalPart)
public <T> Collection<T> getAttributeValues(ShadowType shadow, String attributeLocalPart)
public <T> Collection<T> getAttributeValues(ShadowType shadow, groovy.xml.QName attributeQname)
public <T> Collection<T> getAttributeValues(ShadowType shadow, QName attributeQname)
public <T> T getAttributeValue(ShadowType shadow, String attributeNamespace, String attributeLocalPart) throws SchemaException
SchemaException
public <T> T getAttributeValue(ShadowType shadow, String attributeLocalPart) throws SchemaException
SchemaException
public <T> T getAttributeValue(ShadowType shadow, groovy.xml.QName attributeQname) throws SchemaException
SchemaException
public <T> T getAttributeValue(ShadowType shadow, QName attributeQname) throws SchemaException
SchemaException
public Collection<String> getAttributeStringValues(ShadowType shadow, String attributeNamespace, String attributeLocalPart)
public Collection<String> getAttributeStringValues(ShadowType shadow, groovy.xml.QName attributeQname)
public Collection<String> getAttributeStringValues(ShadowType shadow, QName attributeQname)
public String determineLdapSingleAttributeValue(Collection<String> dns, String attributeName, PrismProperty attribute) throws NamingException
NamingException
public String determineLdapSingleAttributeValue(Collection<String> dns, String attributeName, Collection<String> values) throws NamingException
NamingException
public String determineLdapSingleAttributeValue(String dn, String attributeName, Collection<?> values) throws NamingException
NamingException
public <T> T toSingle(Collection<T> values) throws SchemaException
SchemaException
public static String readFile(String filename) throws IOException
IOException
public String formatDateTime(String format, XMLGregorianCalendar xmlCal)
public XMLGregorianCalendar parseDateTime(String format, String stringDate) throws ParseException
ParseException
Copyright © 2013 evolveum. All rights reserved.