Class ScriptExpressionFactory
- java.lang.Object
-
- com.evolveum.midpoint.model.common.expression.script.ScriptExpressionFactory
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_LANGUAGE
-
Constructor Summary
Constructors Constructor Description ScriptExpressionFactory(PrismContext prismContext, Protector protector, 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, Task task, OperationResult result)
CacheRegistry
geCacheRegistry()
Map<String,ScriptEvaluator>
getEvaluators()
Collection<FunctionLibrary>
getFunctions()
ObjectResolver
getObjectResolver()
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()
-
-
-
Field Detail
-
DEFAULT_LANGUAGE
public static String DEFAULT_LANGUAGE
-
-
Constructor Detail
-
ScriptExpressionFactory
public ScriptExpressionFactory(PrismContext prismContext, Protector protector, 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()
-
geCacheRegistry
public CacheRegistry geCacheRegistry()
-
setCacheRegistry
public void setCacheRegistry(CacheRegistry registry)
-
createScriptExpression
public ScriptExpression createScriptExpression(ScriptExpressionEvaluatorType expressionType, ItemDefinition outputDefinition, ExpressionProfile expressionProfile, ExpressionFactory expressionFactory, String shortDesc, Task task, 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 interfaceCacheable
-
getStateInformation
@NotNull public Collection<SingleCacheStateInformationType> getStateInformation()
- Specified by:
getStateInformation
in interfaceCacheable
-
-