Package com.evolveum.midpoint.web.util
Class ExpressionUtil
- java.lang.Object
-
- com.evolveum.midpoint.web.util.ExpressionUtil
-
public class ExpressionUtil extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExpressionUtil.ExpressionEvaluatorType
static class
ExpressionUtil.Language
-
Field Summary
Fields Modifier and Type Field Description static String
ELEMENT_AS_IS
static String
ELEMENT_AS_IS_WITH_NS
static String
ELEMENT_GENERATE
static String
ELEMENT_GENERATE_WITH_NS
static String
ELEMENT_PATH
static String
ELEMENT_SCRIPT
static String
ELEMENT_VALUE
static String
EXPRESSION_AS_IS
static String
EXPRESSION_GENERATE
static String
EXPRESSION_LITERAL
static String
EXPRESSION_PATH
static String
EXPRESSION_SCRIPT
static QName
SHADOW_REF_KEY
-
Constructor Summary
Constructors Constructor Description ExpressionUtil()
-
Method Summary
-
-
-
Field Detail
-
SHADOW_REF_KEY
public static final QName SHADOW_REF_KEY
-
EXPRESSION_SCRIPT
public static final String EXPRESSION_SCRIPT
- See Also:
- Constant Field Values
-
EXPRESSION_LITERAL
public static final String EXPRESSION_LITERAL
- See Also:
- Constant Field Values
-
EXPRESSION_AS_IS
public static final String EXPRESSION_AS_IS
- See Also:
- Constant Field Values
-
EXPRESSION_PATH
public static final String EXPRESSION_PATH
- See Also:
- Constant Field Values
-
EXPRESSION_GENERATE
public static final String EXPRESSION_GENERATE
- See Also:
- Constant Field Values
-
ELEMENT_SCRIPT
public static final String ELEMENT_SCRIPT
- See Also:
- Constant Field Values
-
ELEMENT_GENERATE
public static final String ELEMENT_GENERATE
- See Also:
- Constant Field Values
-
ELEMENT_GENERATE_WITH_NS
public static final String ELEMENT_GENERATE_WITH_NS
- See Also:
- Constant Field Values
-
ELEMENT_PATH
public static final String ELEMENT_PATH
- See Also:
- Constant Field Values
-
ELEMENT_VALUE
public static final String ELEMENT_VALUE
- See Also:
- Constant Field Values
-
ELEMENT_AS_IS
public static final String ELEMENT_AS_IS
- See Also:
- Constant Field Values
-
ELEMENT_AS_IS_WITH_NS
public static final String ELEMENT_AS_IS_WITH_NS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getExpressionString
public static String getExpressionString(ExpressionUtil.ExpressionEvaluatorType type, ObjectReferenceType policy)
-
getExpressionString
public static String getExpressionString(ExpressionUtil.ExpressionEvaluatorType type, ExpressionUtil.Language lang)
-
getExpressionString
public static String getExpressionString(ExpressionUtil.ExpressionEvaluatorType type)
-
getExpressionType
public static ExpressionUtil.ExpressionEvaluatorType getExpressionType(String expression)
-
getExpressionLanguage
public static ExpressionUtil.Language getExpressionLanguage(String expression)
-
loadExpression
public static String loadExpression(ExpressionType expression, PrismContext prismContext, Trace LOGGER)
-
serialize
public static String serialize(javax.xml.bind.JAXBElement<?> element, PrismContext prismContext) throws SchemaException
- Throws:
SchemaException
-
isEmpty
public static boolean isEmpty(ExpressionType expression)
-
isLiteralExpressionValueNotEmpty
public static boolean isLiteralExpressionValueNotEmpty(ExpressionType expression) throws SchemaException
- Throws:
SchemaException
-
parseExpressionEvaluators
public static void parseExpressionEvaluators(String xml, ExpressionType expressionObject, PrismContext context) throws SchemaException
- Throws:
SchemaException
-
parseSearchFilter
public static RootXNode parseSearchFilter(String data, PrismContext context) throws SchemaException
- Throws:
SchemaException
-
findFirstEvaluatorByName
public static javax.xml.bind.JAXBElement<?> findFirstEvaluatorByName(ExpressionType expression, QName elementName)
-
findAllEvaluatorsByName
@NotNull public static @NotNull List<javax.xml.bind.JAXBElement<?>> findAllEvaluatorsByName(ExpressionType expression, QName elementName)
-
removeEvaluatorByName
public static void removeEvaluatorByName(ExpressionType expression, QName elementName)
-
removeShadowRefEvaluatorValue
public static void removeShadowRefEvaluatorValue(ExpressionType expression, String shadowRefOid, PrismContext prismContext)
-
createAssociationTargetSearchElement
public static javax.xml.bind.JAXBElement<?> createAssociationTargetSearchElement(PrismContext prismContext)
-
getOrCreateAssociationTargetSearchValues
public static MapXNode getOrCreateAssociationTargetSearchValues(ExpressionType expression, PrismContext prismContext)
-
updateAssociationTargetSearchValue
public static void updateAssociationTargetSearchValue(ExpressionType expression, String newPath, String newValue, PrismContext prismContext) throws SchemaException
- Throws:
SchemaException
-
getShadowRefValue
@NotNull public static @NotNull List<ObjectReferenceType> getShadowRefValue(ExpressionType expressionType, PrismContext prismContext)
-
isShadowRefNodeExists
public static boolean isShadowRefNodeExists(ExpressionType expression)
-
addShadowRefEvaluatorValue
public static void addShadowRefEvaluatorValue(ExpressionType expression, String oid, PrismContext prismContext)
-
getLiteralExpressionValues
@NotNull public static @NotNull List<String> getLiteralExpressionValues(ExpressionType expression) throws SchemaException
- Throws:
SchemaException
-
updateLiteralExpressionValue
public static void updateLiteralExpressionValue(ExpressionType expression, List<String> values, PrismContext prismContext)
-
getAssociationTargetSearchFilterValuesMap
public static MapXNode getAssociationTargetSearchFilterValuesMap(ExpressionType expression)
-
getTargetSearchExpPathValue
public static String getTargetSearchExpPathValue(ExpressionType expression)
-
getTargetSearchExpValue
public static String getTargetSearchExpValue(ExpressionType expression)
-
-