Class ModificationOpHandler
java.lang.Object
com.evolveum.midpoint.repo.cache.handlers.BaseOpHandler
com.evolveum.midpoint.repo.cache.handlers.ModificationOpHandler
Handles modification operations: add, modify, delete, and a couple of others.
What they have in common is that they invalidate cache entries.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T extends ObjectType>
voidaddDiagnosticInformation
(Class<T> type, String oid, DiagnosticInformationType information, OperationResult parentResult) <T extends ObjectType>
StringaddObject
(PrismObject<T> object, RepoAddOptions options, OperationResult parentResult) long
advanceSequence
(String oid, OperationResult parentResult) <T extends ObjectType>
@NotNull DeleteObjectResultdeleteObject
(Class<T> type, String oid, OperationResult parentResult) <T extends ObjectType>
@NotNull ModifyObjectResult<T>modifyObject
(@NotNull Class<T> type, @NotNull String oid, @NotNull Collection<? extends ItemDelta<?, ?>> modifications, ModificationPrecondition<T> precondition, RepoModifyOptions options, OperationResult parentResult) void
returnUnusedValuesToSequence
(String oid, Collection<Long> unusedValues, OperationResult parentResult) void
setModifyRandomDelayRange
(Integer modifyRandomDelayRange)
-
Constructor Details
-
ModificationOpHandler
public ModificationOpHandler()
-
-
Method Details
-
addObject
public <T extends ObjectType> String addObject(PrismObject<T> object, RepoAddOptions options, OperationResult parentResult) throws ObjectAlreadyExistsException, SchemaException -
modifyObject
@NotNull public <T extends ObjectType> @NotNull ModifyObjectResult<T> modifyObject(@NotNull @NotNull Class<T> type, @NotNull @NotNull String oid, @NotNull @NotNull Collection<? extends ItemDelta<?, ?>> modifications, ModificationPrecondition<T> precondition, RepoModifyOptions options, OperationResult parentResult) throws ObjectNotFoundException, SchemaException, ObjectAlreadyExistsException, PreconditionViolationException -
deleteObject
@NotNull public <T extends ObjectType> @NotNull DeleteObjectResult deleteObject(Class<T> type, String oid, OperationResult parentResult) throws ObjectNotFoundException - Throws:
ObjectNotFoundException
-
advanceSequence
public long advanceSequence(String oid, OperationResult parentResult) throws ObjectNotFoundException, SchemaException -
returnUnusedValuesToSequence
public void returnUnusedValuesToSequence(String oid, Collection<Long> unusedValues, OperationResult parentResult) throws ObjectNotFoundException, SchemaException -
addDiagnosticInformation
public <T extends ObjectType> void addDiagnosticInformation(Class<T> type, String oid, DiagnosticInformationType information, OperationResult parentResult) throws ObjectNotFoundException, SchemaException, ObjectAlreadyExistsException -
setModifyRandomDelayRange
-