Package com.evolveum.midpoint.web.util
Class ExpressionUtil
java.lang.Object
com.evolveum.midpoint.web.util.ExpressionUtil
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final QName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddAsIsExpressionValue(ExpressionType expression) static voidaddShadowRefEvaluatorValue(ExpressionType expression) static voidaddShadowRefEvaluatorValue(ExpressionType expression, ItemName associationName, String oid) static booleancontainsAssociationFromLinkElement(ExpressionType expression) static @Nullable ExpressionUtil.LanguageconverLanguage(String languageValue) static jakarta.xml.bind.JAXBElement<?>createAssociationTargetSearchElement(PrismContext prismContext) static @NotNull List<jakarta.xml.bind.JAXBElement<?>>findAllEvaluatorsByName(ExpressionType expression, QName elementName) static jakarta.xml.bind.JAXBElement<?>findFirstEvaluatorByName(ExpressionType expression, QName elementName) getAssociationFromLinkExpressionValue(ExpressionType expression) static MapXNodestatic ExpressionUtil.LanguagegetExpressionLanguage(String expression) static Stringstatic Stringstatic StringgetExpressionType(String expression) getGenerateExpressionValue(ExpressionType expression) getLiteralExpressionValues(ExpressionType expression) static MapXNodegetOrCreateAssociationTargetSearchValues(ExpressionType expression, PrismContext prismContext) static ItemPathTypegetPathExpressionValue(ExpressionType expression) getScriptExpressionValue(ExpressionType expression) getShadowOwnerExpressionValue(ExpressionType expression) static @NotNull List<ObjectReferenceType>getShadowRefValue(ExpressionType expressionType) static StringgetTargetSearchExpPathValue(ExpressionType expression) static StringgetTargetSearchExpValue(ExpressionType expression) static booleanisEmpty(ExpressionType expression) static booleanisShadowRefNodeExists(ExpressionType expression) static StringloadExpression(ExpressionType expression, PrismContext prismContext, Trace LOGGER) static voidparseExpressionEvaluators(String xml, ExpressionType expressionObject, PrismContext context) static RootXNodeparseSearchFilter(String data, PrismContext context) static voidremoveEvaluatorByName(ExpressionType expression, QName elementName) static voidremoveShadowRefEvaluatorValue(ExpressionType expression, String shadowRefOid, PrismContext prismContext) static Stringserialize(jakarta.xml.bind.JAXBElement<?> element, PrismContext prismContext) static voidupdateAssociationConstructionExpressionValue(ExpressionType expression, AssociationConstructionExpressionEvaluatorType evaluator) static ExpressionTypeupdateAssociationFromLinkExpressionValue(ExpressionType expression, AssociationFromLinkExpressionEvaluatorType evaluator) static voidupdateAssociationSynchronizationExpressionValue(ExpressionType expression, AssociationSynchronizationExpressionEvaluatorType evaluator) static voidupdateAssociationTargetSearchValue(ExpressionType expression, String newPath, String newValue, PrismContext prismContext) static voidupdateGenerateExpressionValue(ExpressionType expression, GenerateExpressionEvaluatorType evaluator) static voidupdateLiteralExpressionValue(ExpressionType expression, List<String> values, PrismContext prismContext) static ExpressionTypeupdatePathEvaluator(ExpressionType expression, ItemPathType path) static ExpressionTypeupdateScriptExpressionValue(ExpressionType expression, ScriptExpressionEvaluatorType evaluator) static ExpressionTypeupdateShadowOwnerReferenceSearchExpressionValue(ExpressionType expression, ShadowOwnerReferenceSearchExpressionEvaluatorType evaluator)
-
Field Details
-
SHADOW_REF_KEY
-
EXPRESSION_SCRIPT
- See Also:
-
EXPRESSION_LITERAL
- See Also:
-
EXPRESSION_AS_IS
- See Also:
-
EXPRESSION_PATH
- See Also:
-
EXPRESSION_GENERATE
- See Also:
-
ELEMENT_SCRIPT
- See Also:
-
ELEMENT_GENERATE
- See Also:
-
ELEMENT_GENERATE_WITH_NS
- See Also:
-
ELEMENT_PATH
- See Also:
-
ELEMENT_VALUE
- See Also:
-
ELEMENT_AS_IS
- See Also:
-
ELEMENT_AS_IS_WITH_NS
- See Also:
-
ELEMENT_ASSOCIATION_FROM_LINK
- See Also:
-
ELEMENT_ASSOCIATION_FROM_LINK_WITH_NS
- See Also:
-
ELEMENT_SHADOW_OWNER_REFERENCE_SEARCH
- See Also:
-
ELEMENT_SHADOW_OWNER_REFERENCE_SEARCH_WITH_NS
- See Also:
-
-
Constructor Details
-
ExpressionUtil
public ExpressionUtil()
-
-
Method Details
-
getExpressionString
public static String getExpressionString(ExpressionUtil.ExpressionEvaluatorType type, ObjectReferenceType policy) -
getExpressionString
public static String getExpressionString(ExpressionUtil.ExpressionEvaluatorType type, ExpressionUtil.Language lang) -
getExpressionString
-
getExpressionType
-
getExpressionLanguage
-
converLanguage
-
loadExpression
public static String loadExpression(ExpressionType expression, PrismContext prismContext, Trace LOGGER) -
serialize
public static String serialize(jakarta.xml.bind.JAXBElement<?> element, PrismContext prismContext) throws SchemaException - Throws:
SchemaException
-
isEmpty
-
parseExpressionEvaluators
public static void parseExpressionEvaluators(String xml, ExpressionType expressionObject, PrismContext context) throws SchemaException - Throws:
SchemaException
-
parseSearchFilter
- Throws:
SchemaException
-
findFirstEvaluatorByName
public static jakarta.xml.bind.JAXBElement<?> findFirstEvaluatorByName(ExpressionType expression, QName elementName) -
findAllEvaluatorsByName
@NotNull public static @NotNull List<jakarta.xml.bind.JAXBElement<?>> findAllEvaluatorsByName(ExpressionType expression, QName elementName) -
removeEvaluatorByName
-
removeShadowRefEvaluatorValue
public static void removeShadowRefEvaluatorValue(ExpressionType expression, String shadowRefOid, PrismContext prismContext) -
containsAssociationFromLinkElement
-
createAssociationTargetSearchElement
public static jakarta.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) -
isShadowRefNodeExists
-
addShadowRefEvaluatorValue
-
addShadowRefEvaluatorValue
public static void addShadowRefEvaluatorValue(ExpressionType expression, ItemName associationName, String oid) -
getLiteralExpressionValues
@NotNull public static @NotNull List<String> getLiteralExpressionValues(ExpressionType expression) throws SchemaException - Throws:
SchemaException
-
getScriptExpressionValue
public static ScriptExpressionEvaluatorType getScriptExpressionValue(ExpressionType expression) throws SchemaException - Throws:
SchemaException
-
getPathExpressionValue
- Throws:
SchemaException
-
getAssociationFromLinkExpressionValue
public static AssociationFromLinkExpressionEvaluatorType getAssociationFromLinkExpressionValue(ExpressionType expression) throws SchemaException - Throws:
SchemaException
-
getShadowOwnerExpressionValue
public static ShadowOwnerReferenceSearchExpressionEvaluatorType getShadowOwnerExpressionValue(ExpressionType expression) throws SchemaException - Throws:
SchemaException
-
getGenerateExpressionValue
public static GenerateExpressionEvaluatorType getGenerateExpressionValue(ExpressionType expression) throws SchemaException - Throws:
SchemaException
-
getAssociationSynchronizationExpressionValue
public static AssociationSynchronizationExpressionEvaluatorType getAssociationSynchronizationExpressionValue(ExpressionType expression) throws SchemaException - Throws:
SchemaException
-
getAssociationConstructionExpressionValue
public static AssociationConstructionExpressionEvaluatorType getAssociationConstructionExpressionValue(ExpressionType expression) throws SchemaException - Throws:
SchemaException
-
updateLiteralExpressionValue
public static void updateLiteralExpressionValue(ExpressionType expression, List<String> values, PrismContext prismContext) -
updateScriptExpressionValue
public static ExpressionType updateScriptExpressionValue(ExpressionType expression, ScriptExpressionEvaluatorType evaluator) throws SchemaException - Throws:
SchemaException
-
updatePathEvaluator
public static ExpressionType updatePathEvaluator(ExpressionType expression, ItemPathType path) throws SchemaException - Throws:
SchemaException
-
updateAssociationFromLinkExpressionValue
public static ExpressionType updateAssociationFromLinkExpressionValue(ExpressionType expression, AssociationFromLinkExpressionEvaluatorType evaluator) throws SchemaException - Throws:
SchemaException
-
updateShadowOwnerReferenceSearchExpressionValue
public static ExpressionType updateShadowOwnerReferenceSearchExpressionValue(ExpressionType expression, ShadowOwnerReferenceSearchExpressionEvaluatorType evaluator) throws SchemaException - Throws:
SchemaException
-
updateGenerateExpressionValue
public static void updateGenerateExpressionValue(ExpressionType expression, GenerateExpressionEvaluatorType evaluator) throws SchemaException - Throws:
SchemaException
-
updateAssociationSynchronizationExpressionValue
public static void updateAssociationSynchronizationExpressionValue(ExpressionType expression, AssociationSynchronizationExpressionEvaluatorType evaluator) throws SchemaException - Throws:
SchemaException
-
updateAssociationConstructionExpressionValue
public static void updateAssociationConstructionExpressionValue(ExpressionType expression, AssociationConstructionExpressionEvaluatorType evaluator) throws SchemaException - Throws:
SchemaException
-
addAsIsExpressionValue
-
getAssociationTargetSearchFilterValuesMap
-
getTargetSearchExpPathValue
-
getTargetSearchExpValue
-