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 Summary
ConstructorDescriptionExpressionFactory
(LocalizationService localizationService) ExpressionFactory
(SecurityContextManager securityContextManager, LocalizationService localizationService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
getEvaluatorFactory
(QName elementName) @NotNull ObjectResolver
@NotNull PrismContext
@Nullable SecurityContextManager
@NotNull Collection<SingleCacheStateInformationType>
void
invalidate
(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) void
register()
void
void
setDefaultEvaluatorFactory
(ExpressionEvaluatorFactory defaultEvaluatorFactory) void
setObjectResolver
(ObjectResolver objectResolver) void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.evolveum.midpoint.repo.api.Cache
getEventSpecifications, invalidate
-
Constructor Details
-
ExpressionFactory
public 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. -
makeExpression
public <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.) -
makePropertyExpression
public <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:
invalidate
in interfaceCache
-
getStateInformation
- Specified by:
getStateInformation
in interfaceCache
-
dumpContent
public void dumpContent()- Specified by:
dumpContent
in interfaceCache
-