Class FunctionLibraryManager
java.lang.Object
com.evolveum.midpoint.model.common.expression.functions.FunctionLibraryManager
- All Implemented Interfaces:
Cache
,CacheInvalidationListener
Manages the function libraries, especially the ones that are created by parsing
FunctionLibraryType
objects.-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkCallAllowed
(@NotNull FunctionLibraryManager.FunctionInLibrary function, @Nullable ExpressionProfile expressionProfile) <V extends PrismValue,
D extends ItemDefinition<?>>
Expression<V,D> createFunctionExpression
(FunctionConfigItem function, D outputDefinition, @NotNull ExpressionProfile functionExpressionProfile, Task task, OperationResult result) @NotNull ExpressionProfile
determineFunctionExpressionProfile
(@NotNull FunctionLibrary library, @NotNull OperationResult result) TODO cachevoid
findFunction
(@NotNull FunctionExpressionEvaluatorConfigItem functionCall, @NotNull String contextDesc, @NotNull OperationResult result) Finds a function by name.@NotNull List<FunctionLibraryBinding>
@NotNull Collection<SingleCacheStateInformationType>
void
invalidate
(Class<?> type, String oid, CacheInvalidationContext context) void
register()
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
-
Field Details
-
repositoryService
-
-
Constructor Details
-
FunctionLibraryManager
public FunctionLibraryManager()
-
-
Method Details
-
register
@PostConstruct public void register() -
unregister
@PreDestroy public void unregister() -
getFunctionLibraryBindings
@NotNull public @NotNull List<FunctionLibraryBinding> getFunctionLibraryBindings(OperationResult result) throws ExpressionSyntaxException - Throws:
ExpressionSyntaxException
-
findFunction
@NotNull public @NotNull FunctionLibraryManager.FunctionInLibrary findFunction(@NotNull @NotNull FunctionExpressionEvaluatorConfigItem functionCall, @NotNull @NotNull String contextDesc, @NotNull @NotNull OperationResult result) throws SchemaException, ConfigurationException Finds a function by name. SeeFunctionLibrary.findFunction(String, Collection, String)
for details. -
createFunctionExpression
public <V extends PrismValue,D extends ItemDefinition<?>> Expression<V,D> createFunctionExpression(FunctionConfigItem function, D outputDefinition, @NotNull @NotNull ExpressionProfile functionExpressionProfile, Task task, OperationResult result) throws SecurityViolationException, SchemaException, ObjectNotFoundException, ConfigurationException -
invalidate
- Specified by:
invalidate
in interfaceCache
-
getStateInformation
- Specified by:
getStateInformation
in interfaceCache
-
dumpContent
public void dumpContent()- Specified by:
dumpContent
in interfaceCache
-
determineFunctionExpressionProfile
@NotNull public @NotNull ExpressionProfile determineFunctionExpressionProfile(@NotNull @NotNull FunctionLibrary library, @NotNull @NotNull OperationResult result) throws SchemaException, ConfigurationException TODO cache -
checkCallAllowed
public void checkCallAllowed(@NotNull @NotNull FunctionLibraryManager.FunctionInLibrary function, @Nullable @Nullable ExpressionProfile expressionProfile) throws ConfigurationException, SecurityViolationException
-