Class OptimizingTriggerCreatorImpl
- java.lang.Object
-
- com.evolveum.midpoint.model.impl.expr.triggerSetter.OptimizingTriggerCreatorImpl
-
- All Implemented Interfaces:
OptimizingTriggerCreator
public class OptimizingTriggerCreatorImpl extends Object implements OptimizingTriggerCreator
This is a preliminary implementation.
-
-
Constructor Summary
Constructors Constructor Description OptimizingTriggerCreatorImpl(TriggerCreatorGlobalState globalState, MidpointFunctionsImpl midpointFunctions, long fireAfter, long safetyMargin)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
createForNamedObject(@NotNull Class<? extends ObjectType> type, @NotNull String name)
Creates a trigger for the object with the given name.boolean
createForNamedUser(@NotNull String name)
Creates a trigger for the user with the given name.boolean
createForObject(@NotNull Class<? extends ObjectType> type, @NotNull String oid)
Creates a trigger to the user with the given OID.
-
-
-
Constructor Detail
-
OptimizingTriggerCreatorImpl
public OptimizingTriggerCreatorImpl(TriggerCreatorGlobalState globalState, MidpointFunctionsImpl midpointFunctions, long fireAfter, long safetyMargin)
-
-
Method Detail
-
createForNamedUser
public boolean createForNamedUser(@NotNull @NotNull String name) throws SchemaException, ObjectAlreadyExistsException, ObjectNotFoundException
Description copied from interface:OptimizingTriggerCreator
Creates a trigger for the user with the given name.- Specified by:
createForNamedUser
in interfaceOptimizingTriggerCreator
- 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
-
createForNamedObject
public boolean createForNamedObject(@NotNull @NotNull Class<? extends ObjectType> type, @NotNull @NotNull String name) throws ObjectAlreadyExistsException, ObjectNotFoundException, SchemaException
Description copied from interface:OptimizingTriggerCreator
Creates a trigger for the object with the given name.- Specified by:
createForNamedObject
in interfaceOptimizingTriggerCreator
- 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
-
createForObject
public boolean createForObject(@NotNull @NotNull Class<? extends ObjectType> type, @NotNull @NotNull String oid) throws ObjectAlreadyExistsException, ObjectNotFoundException, SchemaException
Description copied from interface:OptimizingTriggerCreator
Creates a trigger to the user with the given OID.- Specified by:
createForObject
in interfaceOptimizingTriggerCreator
- Returns:
- true if the trigger was really added; false if it already existed or could not be added
- Throws:
ObjectAlreadyExistsException
ObjectNotFoundException
SchemaException
-
-