Class SyncopeJexlFunctions
- java.lang.Object
-
- org.apache.syncope.core.provisioning.api.jexl.SyncopeJexlFunctions
-
public class SyncopeJexlFunctions extends Object
Utility functions for usage with JEXL engine.
-
-
Constructor Summary
Constructors Constructor Description SyncopeJexlFunctions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Object>
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.String
fullPath2Dn(String fullPath, String attr)
Converts realm's full path into the equivalent DN.String
fullPath2Dn(String fullPath, String attr, String prefix)
Converts realm's full path into the equivalent DN.
-
-
-
Method Detail
-
fullPath2Dn
public String fullPath2Dn(String fullPath, String attr)
Converts realm's full path into the equivalent DN. Example:/a/b/c
becomesou=c,ou=b,ou=a
.- Parameters:
fullPath
- realm's full pathattr
- attribute name for DN- Returns:
- DN equivalent of the provided full path
-
fullPath2Dn
public String fullPath2Dn(String fullPath, String attr, String prefix)
Converts realm's full path into the equivalent DN. Example:/a/b/c
becomes,ou=c,ou=b,ou=a
, whenprefix
is","
- Parameters:
fullPath
- realm's full pathattr
- attribute name for DNprefix
- result's prefix- Returns:
- DN equivalent of the provided full path
-
connObjAttrValues
public List<Object> 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.- 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
-
-