Class OptimizingTriggerCreatorImpl
java.lang.Object
com.evolveum.midpoint.model.impl.expr.triggerSetter.OptimizingTriggerCreatorImpl
- All Implemented Interfaces:
- OptimizingTriggerCreator
This is a preliminary implementation.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic booleanFor testing cluster-wide scenarios.
- 
Constructor SummaryConstructorsConstructorDescriptionOptimizingTriggerCreatorImpl(TriggerCreatorGlobalState globalState, MidpointFunctionsImpl midpointFunctions, long fireAfter, long safetyMargin) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleancreateForNamedObject(@NotNull Class<? extends ObjectType> type, @NotNull String name) Creates a trigger for the object with the given name.booleancreateForNamedUser(@NotNull String name) Creates a trigger for the user with the given name.booleancreateForObject(@NotNull Class<? extends ObjectType> type, @NotNull String oid) Creates a trigger to the user with the given OID.
- 
Field Details- 
useGlobalState@TestOnly public static boolean useGlobalStateFor testing cluster-wide scenarios.
 
- 
- 
Constructor Details- 
OptimizingTriggerCreatorImplpublic OptimizingTriggerCreatorImpl(TriggerCreatorGlobalState globalState, MidpointFunctionsImpl midpointFunctions, long fireAfter, long safetyMargin) 
 
- 
- 
Method Details- 
createForNamedUserpublic boolean createForNamedUser(@NotNull @NotNull String name) throws SchemaException, ObjectAlreadyExistsException, ObjectNotFoundException Description copied from interface:OptimizingTriggerCreatorCreates a trigger for the user with the given name.- Specified by:
- createForNamedUserin interface- OptimizingTriggerCreator
- Returns:
- true if the trigger was really added; false if it already existed or could not be added (Note that if the object cannot be found by the name, currently no exception is reported.)
- Throws:
- SchemaException
- ObjectAlreadyExistsException
- ObjectNotFoundException
 
- 
createForNamedObjectpublic boolean createForNamedObject(@NotNull @NotNull Class<? extends ObjectType> type, @NotNull @NotNull String name) throws ObjectAlreadyExistsException, ObjectNotFoundException, SchemaException Description copied from interface:OptimizingTriggerCreatorCreates a trigger for the object with the given name.- Specified by:
- createForNamedObjectin interface- OptimizingTriggerCreator
- Returns:
- true if the trigger was really added; false if it already existed or could not be added (Note that if the object cannot be found by the name, currently no exception is reported.)
- Throws:
- ObjectAlreadyExistsException
- ObjectNotFoundException
- SchemaException
 
- 
createForObjectpublic boolean createForObject(@NotNull @NotNull Class<? extends ObjectType> type, @NotNull @NotNull String oid) throws ObjectAlreadyExistsException, ObjectNotFoundException, SchemaException Description copied from interface:OptimizingTriggerCreatorCreates a trigger to the user with the given OID.- Specified by:
- createForObjectin interface- OptimizingTriggerCreator
- Returns:
- true if the trigger was really added; false if it already existed or could not be added
- Throws:
- ObjectAlreadyExistsException
- ObjectNotFoundException
- SchemaException
 
 
-