Class CorrelationCaseManager
java.lang.Object
com.evolveum.midpoint.model.impl.correlation.CorrelationCaseManager
Manages correlation cases.
TODO difference to
CaseManager / CaseEngine ?-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcloseCaseIfStillOpen(@NotNull ShadowType resourceObject, @NotNull OperationResult result) Closes a correlation case - if there's any - if it's no longer needed (e.g. because the uncertainty is gone).voidcreateOrUpdateCase(@NotNull ShadowType resourceObject, @NotNull ResourceType resource, @NotNull FocusType preFocus, @NotNull Task task, @NotNull OperationResult result) Creates or updates a correlation case for given correlation operation that finished in "uncertain" state.@Nullable CaseTypefindCorrelationCase(ShadowType resourceObject, boolean mustBeOpen, OperationResult result)
-
Constructor Details
-
CorrelationCaseManager
public CorrelationCaseManager()
-
-
Method Details
-
createOrUpdateCase
public void createOrUpdateCase(@NotNull @NotNull ShadowType resourceObject, @NotNull @NotNull ResourceType resource, @NotNull @NotNull FocusType preFocus, @NotNull @NotNull Task task, @NotNull @NotNull OperationResult result) throws SchemaException, ObjectNotFoundException, ObjectAlreadyExistsException Creates or updates a correlation case for given correlation operation that finished in "uncertain" state.- Parameters:
resourceObject- Shadowed resource object we are correlating. Must have an OID.preFocus- The result of pre-inbounds application on the resource object.- Throws:
SchemaExceptionObjectNotFoundExceptionObjectAlreadyExistsException
-
findCorrelationCase
@Nullable public @Nullable CaseType findCorrelationCase(ShadowType resourceObject, boolean mustBeOpen, OperationResult result) throws SchemaException - Throws:
SchemaException
-
closeCaseIfStillOpen
public void closeCaseIfStillOpen(@NotNull @NotNull ShadowType resourceObject, @NotNull @NotNull OperationResult result) throws SchemaException Closes a correlation case - if there's any - if it's no longer needed (e.g. because the uncertainty is gone).- Parameters:
resourceObject- Shadowed resource object we correlate. Must have an OID. TODO don't look for cases if not necessary (timestamps?)- Throws:
SchemaException
-