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
Nested Classes Modifier and Type Class Description static class
OperationExecutionWriter.Request<O extends ObjectType>
A request to write an operation execution record.
-
Constructor Summary
Constructors Constructor Description OperationExecutionWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
void
init()
boolean
shouldSkipOperationExecutionRecording(OperationExecutionRecordTypeType recordType)
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.
-
-
-
Method Detail
-
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
public void update(@Nullable @Nullable SystemConfigurationType value)
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
public boolean shouldSkipOperationExecutionRecording(OperationExecutionRecordTypeType recordType)
-
-