com.evolveum.midpoint.notifications
Class NotificationChangeHook
java.lang.Object
com.evolveum.midpoint.notifications.NotificationChangeHook
- All Implemented Interfaces:
- ChangeHook
@Component
public class NotificationChangeHook
- extends Object
- implements ChangeHook
One of interfaces of the notifier to midPoint.
CURRENTLY A BIT OBSOLETE (and not used at this moment). Account changes are listened to using AccountOperationListener (at the level of provisioning).
- Author:
- mederly
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HOOK_URI
public static final String HOOK_URI
- See Also:
- Constant Field Values
NotificationChangeHook
public NotificationChangeHook()
init
@PostConstruct
public void init()
invoke
public HookOperationMode invoke(ModelContext context,
Task task,
OperationResult result)
- Description copied from interface:
ChangeHook
- Generic method to be implemented by the hook. It is invoked by the Model Clockwork at these occasions:
- after PRIMARY state has been entered,
- after SECONDARY state has been entered, and
- after each of secondary-state waves has been executed (i.e. with the state of SECONDARY for all except
the last one, will have state set to FINAL).
TODO: what about EXECUTION and POSTEXECUTION states?
- Specified by:
invoke
in interface ChangeHook
- Returns:
- - FOREGROUND, if the processing of model operation should continue on the foreground
- BACKGROUND, if the hook switched further processing into background (and, therefore,
current execution of model operation should end immediately, in the hope it will eventually
be resumed later)
- ERROR, if the hook encountered an error which prevents model operation from continuing
(this case is currently not defined very well)
Copyright © 2013 evolveum. All Rights Reserved.