Package com.evolveum.midpoint.web.util
Class ExpressionUtil
- java.lang.Object
- 
- com.evolveum.midpoint.web.util.ExpressionUtil
 
- 
 public class ExpressionUtil extends Object 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classExpressionUtil.ExpressionEvaluatorTypestatic classExpressionUtil.Language
 - 
Field SummaryFields Modifier and Type Field Description static StringELEMENT_AS_ISstatic StringELEMENT_AS_IS_WITH_NSstatic StringELEMENT_GENERATEstatic StringELEMENT_GENERATE_WITH_NSstatic StringELEMENT_PATHstatic StringELEMENT_SCRIPTstatic StringELEMENT_VALUEstatic StringEXPRESSION_AS_ISstatic StringEXPRESSION_GENERATEstatic StringEXPRESSION_LITERALstatic StringEXPRESSION_PATHstatic StringEXPRESSION_SCRIPTstatic QNameSHADOW_REF_KEY
 - 
Constructor SummaryConstructors Constructor Description ExpressionUtil()
 - 
Method Summary
 
- 
- 
- 
Field Detail- 
SHADOW_REF_KEYpublic static final QName SHADOW_REF_KEY 
 - 
EXPRESSION_SCRIPTpublic static final String EXPRESSION_SCRIPT - See Also:
- Constant Field Values
 
 - 
EXPRESSION_LITERALpublic static final String EXPRESSION_LITERAL - See Also:
- Constant Field Values
 
 - 
EXPRESSION_AS_ISpublic static final String EXPRESSION_AS_IS - See Also:
- Constant Field Values
 
 - 
EXPRESSION_PATHpublic static final String EXPRESSION_PATH - See Also:
- Constant Field Values
 
 - 
EXPRESSION_GENERATEpublic static final String EXPRESSION_GENERATE - See Also:
- Constant Field Values
 
 - 
ELEMENT_SCRIPTpublic static final String ELEMENT_SCRIPT - See Also:
- Constant Field Values
 
 - 
ELEMENT_GENERATEpublic static final String ELEMENT_GENERATE - See Also:
- Constant Field Values
 
 - 
ELEMENT_GENERATE_WITH_NSpublic static final String ELEMENT_GENERATE_WITH_NS - See Also:
- Constant Field Values
 
 - 
ELEMENT_PATHpublic static final String ELEMENT_PATH - See Also:
- Constant Field Values
 
 - 
ELEMENT_VALUEpublic static final String ELEMENT_VALUE - See Also:
- Constant Field Values
 
 - 
ELEMENT_AS_ISpublic static final String ELEMENT_AS_IS - See Also:
- Constant Field Values
 
 - 
ELEMENT_AS_IS_WITH_NSpublic static final String ELEMENT_AS_IS_WITH_NS - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getExpressionStringpublic static String getExpressionString(ExpressionUtil.ExpressionEvaluatorType type, ObjectReferenceType policy) 
 - 
getExpressionStringpublic static String getExpressionString(ExpressionUtil.ExpressionEvaluatorType type, ExpressionUtil.Language lang) 
 - 
getExpressionStringpublic static String getExpressionString(ExpressionUtil.ExpressionEvaluatorType type) 
 - 
getExpressionTypepublic static ExpressionUtil.ExpressionEvaluatorType getExpressionType(String expression) 
 - 
getExpressionLanguagepublic static ExpressionUtil.Language getExpressionLanguage(String expression) 
 - 
loadExpressionpublic static String loadExpression(ExpressionType expression, PrismContext prismContext, Trace LOGGER) 
 - 
serializepublic static String serialize(javax.xml.bind.JAXBElement<?> element, PrismContext prismContext) throws SchemaException - Throws:
- SchemaException
 
 - 
isEmptypublic static boolean isEmpty(ExpressionType expression) 
 - 
isLiteralExpressionValueNotEmptypublic static boolean isLiteralExpressionValueNotEmpty(ExpressionType expression) throws SchemaException - Throws:
- SchemaException
 
 - 
isScriptExpressionValueNotEmptypublic static boolean isScriptExpressionValueNotEmpty(ExpressionType expression) throws SchemaException - Throws:
- SchemaException
 
 - 
parseExpressionEvaluatorspublic static void parseExpressionEvaluators(String xml, ExpressionType expressionObject, PrismContext context) throws SchemaException - Throws:
- SchemaException
 
 - 
parseSearchFilterpublic static RootXNode parseSearchFilter(String data, PrismContext context) throws SchemaException - Throws:
- SchemaException
 
 - 
findFirstEvaluatorByNamepublic 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) 
 - 
removeEvaluatorByNamepublic static void removeEvaluatorByName(ExpressionType expression, QName elementName) 
 - 
removeShadowRefEvaluatorValuepublic static void removeShadowRefEvaluatorValue(ExpressionType expression, String shadowRefOid, PrismContext prismContext) 
 - 
createAssociationTargetSearchElementpublic static javax.xml.bind.JAXBElement<?> createAssociationTargetSearchElement(PrismContext prismContext) 
 - 
getOrCreateAssociationTargetSearchValuespublic static MapXNode getOrCreateAssociationTargetSearchValues(ExpressionType expression, PrismContext prismContext) 
 - 
updateAssociationTargetSearchValuepublic 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) 
 - 
isShadowRefNodeExistspublic static boolean isShadowRefNodeExists(ExpressionType expression) 
 - 
addShadowRefEvaluatorValuepublic static void addShadowRefEvaluatorValue(ExpressionType expression, String oid, PrismContext prismContext) 
 - 
updateShadowRefEvaluatorValuepublic static void updateShadowRefEvaluatorValue(ExpressionType expression, List<ObjectReferenceType> values) 
 - 
getLiteralExpressionValues@NotNull public static @NotNull List<String> getLiteralExpressionValues(ExpressionType expression) throws SchemaException - Throws:
- SchemaException
 
 - 
getScriptExpressionValues@NotNull public static @NotNull List<ScriptExpressionEvaluatorType> getScriptExpressionValues(ExpressionType expression) throws SchemaException - Throws:
- SchemaException
 
 - 
updateLiteralExpressionValuepublic static void updateLiteralExpressionValue(ExpressionType expression, List<String> values, PrismContext prismContext) 
 - 
updateScriptExpressionValuepublic static void updateScriptExpressionValue(ExpressionType expression, List<String> values) throws SchemaException - Throws:
- SchemaException
 
 - 
getAssociationTargetSearchFilterValuesMappublic static MapXNode getAssociationTargetSearchFilterValuesMap(ExpressionType expression) 
 - 
getTargetSearchExpPathValuepublic static String getTargetSearchExpPathValue(ExpressionType expression) 
 - 
getTargetSearchExpValuepublic static String getTargetSearchExpValue(ExpressionType expression) 
 
- 
 
-