Class OperationExecutionWriter
java.lang.Object
com.evolveum.midpoint.repo.common.util.OperationExecutionWriter
- All Implemented Interfaces:
SystemConfigurationChangeListener
@Experimental
@Component
public class OperationExecutionWriter
extends Object
implements SystemConfigurationChangeListener
Writes provided OperationExecutionType records into objects.
Responsibilities:
1. writes provided operation execution record to the specified object
2. deletes superfluous operation execution records from that object
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
OperationExecutionWriter.Request<O extends ObjectType>
A request to write an operation execution record. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
void
init()
boolean
void
update
(@Nullable SystemConfigurationType value) Updates the listener's internal state with the configuration provided.<O extends ObjectType>
voidwrite
(OperationExecutionWriter.Request<O> request, OperationResult parentResult) Writes operation execution record and deletes the one(s) that have to be deleted, according to the current cleanup policy.
-
Constructor Details
-
OperationExecutionWriter
public OperationExecutionWriter()
-
-
Method Details
-
write
public <O extends ObjectType> void write(OperationExecutionWriter.Request<O> request, OperationResult parentResult) throws SchemaException, ObjectAlreadyExistsException, ObjectNotFoundException Writes operation execution record and deletes the one(s) that have to be deleted, according to the current cleanup policy. -
init
@PostConstruct public void init() -
destroy
@PreDestroy public void destroy() -
update
Description copied from interface:SystemConfigurationChangeListener
Updates the listener's internal state with the configuration provided.- Specified by:
update
in interfaceSystemConfigurationChangeListener
- Parameters:
value
- Current value of the system configuration object. It is 'null' if the object does not exist. Usually listeners keep their current state in such cases, but if needed, it will have the information about missing sysconfig object, so it could act accordingly.
-
shouldSkipOperationExecutionRecording
-