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 booleancreateForNamedObject(@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.
-
-
-
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, ObjectNotFoundExceptionDescription copied from interface:OptimizingTriggerCreatorCreates a trigger for the user with the given name.- Specified by:
createForNamedUserin 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:
SchemaExceptionObjectAlreadyExistsExceptionObjectNotFoundException
-
createForNamedObject
public boolean createForNamedObject(@NotNull @NotNull Class<? extends ObjectType> type, @NotNull @NotNull String name) throws ObjectAlreadyExistsException, ObjectNotFoundException, SchemaExceptionDescription copied from interface:OptimizingTriggerCreatorCreates a trigger for the object with the given name.- Specified by:
createForNamedObjectin 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:
ObjectAlreadyExistsExceptionObjectNotFoundExceptionSchemaException
-
createForObject
public boolean createForObject(@NotNull @NotNull Class<? extends ObjectType> type, @NotNull @NotNull String oid) throws ObjectAlreadyExistsException, ObjectNotFoundException, SchemaExceptionDescription copied from interface:OptimizingTriggerCreatorCreates a trigger to the user with the given OID.- Specified by:
createForObjectin interfaceOptimizingTriggerCreator- Returns:
- true if the trigger was really added; false if it already existed or could not be added
- Throws:
ObjectAlreadyExistsExceptionObjectNotFoundExceptionSchemaException
-
-