Class SyncopeJexlFunctions
java.lang.Object
org.apache.syncope.core.provisioning.api.jexl.SyncopeJexlFunctions
- All Implemented Interfaces:
JexlFunctions
Utility functions for usage with JEXL engine.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]base64Decode(String value) Decodes the given string as byte array using Base64 encoding.base64Encode(byte[] value) Encodes the given byte array as Base64-encoded string.connObjAttrValues(ConnectorObject connObj, String name) Extracts the values of the attribute with given name from the given connector object, or empty list if not found.fullPath2Dn(String fullPath, String attr) Converts realm's full path into the equivalent DN.fullPath2Dn(String fullPath, String attr, String prefix) Converts realm's full path into the equivalent DN.
-
Constructor Details
-
SyncopeJexlFunctions
public SyncopeJexlFunctions()
-
-
Method Details
-
getNamespace
- Specified by:
getNamespacein interfaceJexlFunctions
-
fullPath2Dn
Converts realm's full path into the equivalent DN. Example:/a/b/cbecomesou=c,ou=b,ou=a.- Parameters:
fullPath- realm's full pathattr- attribute name for DN- Returns:
- DN equivalent of the provided full path
-
fullPath2Dn
Converts realm's full path into the equivalent DN. Example:/a/b/cbecomes,ou=c,ou=b,ou=a, whenprefixis","- Parameters:
fullPath- realm's full pathattr- attribute name for DNprefix- result's prefix- Returns:
- DN equivalent of the provided full path
-
connObjAttrValues
Extracts the values of the attribute with given name from the given connector object, or empty list if not found.- Parameters:
connObj- connector objectname- attribute name- Returns:
- the values of the attribute with given name from the given connector object, or empty list if not found
-
base64Encode
Encodes the given byte array as Base64-encoded string.- Parameters:
value- byte array value- Returns:
-
base64Decode
Decodes the given string as byte array using Base64 encoding.- Parameters:
value- base64 string- Returns:
-