public class BasicExpressionFunctions extends Object
Modifier and Type | Field and Description |
---|---|
static Trace |
LOGGER |
static String |
NAME_SEPARATOR |
Constructor and Description |
---|
BasicExpressionFunctions(PrismContext prismContext,
Protector protector) |
Modifier and Type | Method and Description |
---|---|
static String |
composeDn(Object... components)
Creates a valid LDAP distinguished name from the wide range of components.
|
static String |
composeDnWithSuffix(Object... components)
Creates a valid LDAP distinguished name from the wide range of components assuming that
the last component is a suffix.
|
String |
concatName(Object... components)
Concatenates the arguments to create a name.
|
XMLGregorianCalendar |
currentDateTime() |
String |
decrypt(ProtectedStringType protectedString) |
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) |
ProtectedStringType |
encrypt(String string) |
String |
formatDateTime(String format,
Long millis) |
String |
formatDateTime(String format,
XMLGregorianCalendar xmlCal) |
Collection<String> |
getAttributeStringValues(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow,
groovy.xml.QName attributeQname) |
Collection<String> |
getAttributeStringValues(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow,
QName attributeQname) |
Collection<String> |
getAttributeStringValues(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow,
String attributeNamespace,
String attributeLocalPart) |
<T> T |
getAttributeValue(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow,
groovy.xml.QName attributeQname) |
<T> T |
getAttributeValue(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow,
QName attributeQname) |
<T> T |
getAttributeValue(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow,
String attributeLocalPart) |
<T> T |
getAttributeValue(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow,
String attributeNamespace,
String attributeLocalPart) |
<T> Collection<T> |
getAttributeValues(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow,
groovy.xml.QName attributeQname) |
<T> Collection<T> |
getAttributeValues(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow,
QName attributeQname) |
<T> Collection<T> |
getAttributeValues(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow,
String attributeLocalPart) |
<T> Collection<T> |
getAttributeValues(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow,
String attributeNamespace,
String attributeLocalPart) |
<T> T |
getExtensionPropertyValue(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType object,
groovy.xml.QName propertyQname) |
<T> T |
getExtensionPropertyValue(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType object,
QName propertyQname) |
<T> T |
getExtensionPropertyValue(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType object,
String namespace,
String localPart) |
<T> Collection<T> |
getExtensionPropertyValues(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType object,
groovy.xml.QName propertyQname) |
<T> Collection<T> |
getExtensionPropertyValues(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType object,
QName propertyQname) |
<T> Collection<T> |
getExtensionPropertyValues(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType object,
String namespace,
String localPart) |
Referencable |
getExtensionReferenceValue(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType object,
QName propertyQname) |
Referencable |
getExtensionReferenceValue(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType object,
String namespace,
String localPart) |
<T> T |
getIdentifierValue(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow) |
Collection<String> |
getOids(Collection<com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectReferenceType> refs) |
Collection<String> |
getOids(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectReferenceType refs) |
Collection<String> |
getOids(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType refs) |
<T> T |
getPropertyValue(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType object,
String path) |
<T> Collection<T> |
getPropertyValues(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType object,
String path) |
<T> T |
getResourceIcfConfigurationPropertyValue(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource,
QName propertyQname) |
<T> T |
getResourceIcfConfigurationPropertyValue(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource,
String propertyLocalPart) |
<T> T |
getSecondaryIdentifierValue(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow) |
boolean |
isEmpty(Object whatever) |
static String |
lc(String orig)
Convert string to lower case.
|
String |
norm(PolyString orig)
Normalize a PolyString value.
|
String |
norm(PolyStringType orig)
Normalize a PolyStringType value.
|
String |
norm(String orig)
Normalize a string value.
|
String |
parseAdditionalName(Object fullName) |
XMLGregorianCalendar |
parseDateTime(String format,
String stringDate) |
String |
parseFamilyName(Object fullName) |
String |
parseGivenName(Object fullName) |
String |
parseHonorificPrefix(Object fullName) |
String |
parseHonorificSuffix(Object fullName) |
String |
parseNickName(Object fullName) |
static String |
readFile(String filename) |
String |
stringify(Object whatever)
Converts whatever it gets to a string.
|
String |
toAscii(Object input) |
<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, Protector protector)
public static String trim(String orig)
public String concatName(Object... components)
public String norm(String orig)
orig
- original value to normalizepublic String norm(PolyString orig)
orig
- original value to normalizepublic String norm(PolyStringType orig)
orig
- original value to normalizepublic String stringify(Object whatever)
public Collection<String> getOids(Collection<com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectReferenceType> refs)
public Collection<String> getOids(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectReferenceType refs)
public Collection<String> getOids(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType refs)
public boolean isEmpty(Object whatever)
public <T> Collection<T> getExtensionPropertyValues(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType object, String namespace, String localPart)
public <T> Collection<T> getExtensionPropertyValues(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType object, groovy.xml.QName propertyQname)
public <T> Collection<T> getExtensionPropertyValues(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType object, QName propertyQname)
public <T> T getExtensionPropertyValue(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType object, String namespace, String localPart) throws SchemaException
SchemaException
public Referencable getExtensionReferenceValue(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType object, String namespace, String localPart) throws SchemaException
SchemaException
public <T> T getExtensionPropertyValue(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType object, groovy.xml.QName propertyQname) throws SchemaException
SchemaException
public <T> T getExtensionPropertyValue(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType object, QName propertyQname) throws SchemaException
SchemaException
public Referencable getExtensionReferenceValue(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType object, QName propertyQname) throws SchemaException
SchemaException
public <T> T getPropertyValue(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType object, String path) throws SchemaException
SchemaException
public <T> Collection<T> getPropertyValues(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType object, String path)
public <T> Collection<T> getAttributeValues(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow, String attributeNamespace, String attributeLocalPart)
public <T> Collection<T> getAttributeValues(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow, String attributeLocalPart)
public <T> Collection<T> getAttributeValues(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow, groovy.xml.QName attributeQname)
public <T> Collection<T> getAttributeValues(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow, QName attributeQname)
public <T> T getAttributeValue(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow, String attributeNamespace, String attributeLocalPart) throws SchemaException
SchemaException
public <T> T getAttributeValue(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow, String attributeLocalPart) throws SchemaException
SchemaException
public <T> T getAttributeValue(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow, groovy.xml.QName attributeQname) throws SchemaException
SchemaException
public <T> T getAttributeValue(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow, QName attributeQname) throws SchemaException
SchemaException
public Collection<String> getAttributeStringValues(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow, String attributeNamespace, String attributeLocalPart)
public Collection<String> getAttributeStringValues(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow, groovy.xml.QName attributeQname)
public Collection<String> getAttributeStringValues(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow, QName attributeQname)
public <T> T getIdentifierValue(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow) throws SchemaException
SchemaException
public <T> T getSecondaryIdentifierValue(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow) throws SchemaException
SchemaException
public String determineLdapSingleAttributeValue(Collection<String> dns, String attributeName, PrismProperty attribute) throws NamingException
NamingException
public <T> T getResourceIcfConfigurationPropertyValue(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource, QName propertyQname) throws SchemaException
SchemaException
public <T> T getResourceIcfConfigurationPropertyValue(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource, String propertyLocalPart) throws SchemaException
SchemaException
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
public XMLGregorianCalendar currentDateTime()
public String decrypt(ProtectedStringType protectedString)
public ProtectedStringType encrypt(String string)
public static String composeDn(Object... components) throws InvalidNameException
InvalidNameException
public static String composeDnWithSuffix(Object... components) throws InvalidNameException
InvalidNameException
Copyright © 2016 evolveum. All rights reserved.