@Component public class NotificationChangeHook extends Object implements ChangeHook
Constructor and Description |
---|
NotificationChangeHook() |
Modifier and Type | Method and Description |
---|---|
void |
init() |
HookOperationMode |
invoke(ModelContext context,
Task task,
OperationResult result)
Generic method to be implemented by the hook.
|
void |
invokeOnException(ModelContext context,
Throwable throwable,
Task task,
OperationResult result)
This method is invoked by the clockwork when an exception occurs.
|
public static final String HOOK_URI
@PostConstruct public void init()
public HookOperationMode invoke(ModelContext context, Task task, OperationResult result)
ChangeHook
invoke
in interface ChangeHook
public void invokeOnException(ModelContext context, Throwable throwable, Task task, OperationResult result)
ChangeHook
invokeOnException
in interface ChangeHook
context
- actual model context at the point of processing the exceptionthrowable
- the exception itselftask
- actual task, in context of which the operation was carried outresult
- actual operation result - the handler should create a subresult here for its operation
This method has no return value, as it is not expected that the processing would continue in
the background. (This could change in the future.)Copyright © 2016 evolveum. All rights reserved.