Class ScriptExpressionFactory
- java.lang.Object
-
- com.evolveum.midpoint.model.common.expression.script.ScriptExpressionFactory
-
-
Constructor Summary
Constructors Constructor Description ScriptExpressionFactory(PrismContext prismContext, RepositoryService repositoryService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScriptExpression
createScriptExpression(ScriptExpressionEvaluatorType expressionType, ItemDefinition<?> outputDefinition, ExpressionProfile expressionProfile, ExpressionFactory expressionFactory, String shortDesc, OperationResult result)
void
dumpContent()
Map<String,ScriptEvaluator>
getEvaluators()
Collection<FunctionLibrary>
getFunctions()
ObjectResolver
getObjectResolver()
@NotNull Collection<SingleCacheStateInformationType>
getStateInformation()
void
invalidate(Class<?> type, String oid, CacheInvalidationContext context)
void
register()
void
registerEvaluator(String language, ScriptEvaluator evaluator)
void
setCacheRegistry(CacheRegistry registry)
void
setEvaluators(Collection<ScriptEvaluator> evaluators)
void
setFunctions(Collection<FunctionLibrary> functions)
void
setObjectResolver(ObjectResolver objectResolver)
void
unregister()
-
-
-
Constructor Detail
-
ScriptExpressionFactory
public ScriptExpressionFactory(PrismContext prismContext, RepositoryService repositoryService)
-
-
Method Detail
-
register
@PostConstruct public void register()
-
unregister
@PreDestroy public void unregister()
-
getObjectResolver
public ObjectResolver getObjectResolver()
-
setObjectResolver
public void setObjectResolver(ObjectResolver objectResolver)
-
setEvaluators
public void setEvaluators(Collection<ScriptEvaluator> evaluators)
-
getFunctions
public Collection<FunctionLibrary> getFunctions()
-
setFunctions
public void setFunctions(Collection<FunctionLibrary> functions)
-
getEvaluators
public Map<String,ScriptEvaluator> getEvaluators()
-
setCacheRegistry
public void setCacheRegistry(CacheRegistry registry)
-
createScriptExpression
public ScriptExpression createScriptExpression(ScriptExpressionEvaluatorType expressionType, ItemDefinition<?> outputDefinition, ExpressionProfile expressionProfile, ExpressionFactory expressionFactory, String shortDesc, OperationResult result) throws ExpressionSyntaxException, SecurityViolationException
-
registerEvaluator
public void registerEvaluator(String language, ScriptEvaluator evaluator)
-
invalidate
public void invalidate(Class<?> type, String oid, CacheInvalidationContext context)
- Specified by:
invalidate
in interfaceCache
-
getStateInformation
@NotNull public @NotNull Collection<SingleCacheStateInformationType> getStateInformation()
- Specified by:
getStateInformation
in interfaceCache
-
dumpContent
public void dumpContent()
- Specified by:
dumpContent
in interfaceCache
-
-