Class ExpressionFactory
java.lang.Object
com.evolveum.midpoint.repo.common.expression.ExpressionFactory
- All Implemented Interfaces:
- Cache,- CacheInvalidationListener
Factory for expressions and registry for expression evaluator factories.
- Author:
- semancik
- 
Constructor SummaryConstructorsConstructorDescriptionExpressionFactory(LocalizationService localizationService) ExpressionFactory(SecurityContextManager securityContextManager, LocalizationService localizationService) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidgetEvaluatorFactory(QName elementName) @NotNull ObjectResolver@NotNull PrismContext@Nullable SecurityContextManager@NotNull Collection<SingleCacheStateInformationType>voidinvalidate(Class<?> type, String oid, CacheInvalidationContext context) <V extends PrismValue,D extends ItemDefinition<?>> 
 Expression<V,D> makeExpression(@Nullable ExpressionConfigItem expressionCI, D outputDefinition, ExpressionProfile expressionProfile, String shortDesc, @NotNull Task task, @NotNull OperationResult result) Note that the expression profile is provided here explicitly.<V extends PrismValue,D extends ItemDefinition<?>> 
 Expression<V,D> makeExpression(@Nullable ExpressionType expressionBean, D outputDefinition, ExpressionProfile expressionProfile, String shortDesc, @NotNull Task task, @NotNull OperationResult result) Deprecated.<T> Expression<PrismPropertyValue<T>,PrismPropertyDefinition<T>> makePropertyExpression(ExpressionType expressionType, QName outputPropertyName, ExpressionProfile expressionProfile, String shortDesc, Task task, OperationResult result) voidregister()voidvoidsetDefaultEvaluatorFactory(ExpressionEvaluatorFactory defaultEvaluatorFactory) voidsetObjectResolver(ObjectResolver objectResolver) voidMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.repo.api.CachegetEventSpecifications, invalidate
- 
Constructor Details- 
ExpressionFactorypublic ExpressionFactory(SecurityContextManager securityContextManager, LocalizationService localizationService) 
- 
ExpressionFactory
 
- 
- 
Method Details- 
register@PostConstruct public void register()
- 
unregister@PreDestroy public void unregister()
- 
setObjectResolver
- 
getLocalizationService
- 
getSecurityContextManager
- 
makeExpression@Deprecated public <V extends PrismValue,D extends ItemDefinition<?>> Expression<V,D> makeExpression(@Nullable @Nullable ExpressionType expressionBean, D outputDefinition, ExpressionProfile expressionProfile, String shortDesc, @NotNull @NotNull Task task, @NotNull @NotNull OperationResult result) throws SchemaException, ObjectNotFoundException, SecurityViolationException, ConfigurationException Deprecated.Temporary method, until migrated tomakeExpression(ExpressionConfigItem, ItemDefinition, ExpressionProfile, String, Task, OperationResult). We useConfigurationItemOrigin.undeterminedSafe(), as it is *not* used for expression profile determination.
- 
makeExpressionpublic <V extends PrismValue,D extends ItemDefinition<?>> Expression<V,D> makeExpression(@Nullable @Nullable ExpressionConfigItem expressionCI, D outputDefinition, ExpressionProfile expressionProfile, String shortDesc, @NotNull @NotNull Task task, @NotNull @NotNull OperationResult result) throws SchemaException, ObjectNotFoundException, SecurityViolationException, ConfigurationException Note that the expression profile is provided here explicitly. The origin of `expressionCI` is not used for that purpose. (Only for easy access to configuration properties and error reporting.)
- 
makePropertyExpressionpublic <T> Expression<PrismPropertyValue<T>,PrismPropertyDefinition<T>> makePropertyExpression(ExpressionType expressionType, QName outputPropertyName, ExpressionProfile expressionProfile, String shortDesc, Task task, OperationResult result) throws SchemaException, ObjectNotFoundException, SecurityViolationException, ConfigurationException 
- 
getEvaluatorFactory
- 
registerEvaluatorFactory
- 
setDefaultEvaluatorFactory
- 
getPrismContext
- 
getObjectResolver
- 
invalidate- Specified by:
- invalidatein interface- Cache
 
- 
getStateInformation- Specified by:
- getStateInformationin interface- Cache
 
- 
dumpContentpublic void dumpContent()- Specified by:
- dumpContentin interface- Cache
 
 
-