Class CorrelationServiceImpl
- java.lang.Object
-
- com.evolveum.midpoint.model.impl.correlation.CorrelationServiceImpl
-
- All Implemented Interfaces:
CorrelationService
@Experimental @Component public class CorrelationServiceImpl extends Object implements CorrelationService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.evolveum.midpoint.model.api.correlator.CorrelationService
CorrelationService.CaseCloser
-
-
Constructor Summary
Constructors Constructor Description CorrelationServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearCorrelationState(@NotNull String shadowOid, @NotNull OperationResult result)
Clears the correlation state of a shadow.void
completeCorrelationCase(@NotNull CaseType currentCase, @NotNull CorrelationService.CaseCloser caseCloser, @NotNull Task task, @NotNull OperationResult result)
Completes given correlation case.CorrelationResult
correlate(@NotNull ShadowType shadowedResourceObject, @NotNull Task task, @NotNull OperationResult result)
Executes the correlation for a given shadow.@NotNull CorrelatorContext<?>
createRootCorrelatorContext(@NotNull CompositeCorrelatorType correlators, @Nullable CorrelationDefinitionType correlationDefinitionBean, @Nullable SystemConfigurationType systemConfiguration)
Creates the root correlator context for given configuration.Collection<CorrelationProperty>
getCorrelationProperties(@NotNull CaseType aCase, @NotNull Task task, @NotNull OperationResult result)
Returns properties relevant for the correlation, e.g.Correlator
instantiateCorrelator(@NotNull CaseType aCase, @NotNull Task task, @NotNull OperationResult result)
Instantiates the correlator for given correlation case.@NotNull Correlator
instantiateCorrelator(@NotNull ShadowType shadowedResourceObject, @NotNull Task task, @NotNull OperationResult result)
Instantiates the correlator for given shadow.
-
-
-
Method Detail
-
correlate
public CorrelationResult correlate(@NotNull @NotNull ShadowType shadowedResourceObject, @NotNull @NotNull Task task, @NotNull @NotNull OperationResult result) throws SchemaException, ExpressionEvaluationException, CommunicationException, SecurityViolationException, ConfigurationException, ObjectNotFoundException
Description copied from interface:CorrelationService
Executes the correlation for a given shadow.- Specified by:
correlate
in interfaceCorrelationService
- Throws:
SchemaException
ExpressionEvaluationException
CommunicationException
SecurityViolationException
ConfigurationException
ObjectNotFoundException
-
instantiateCorrelator
public Correlator instantiateCorrelator(@NotNull @NotNull CaseType aCase, @NotNull @NotNull Task task, @NotNull @NotNull OperationResult result) throws SchemaException, ConfigurationException, ExpressionEvaluationException, CommunicationException, SecurityViolationException, ObjectNotFoundException
Description copied from interface:CorrelationService
Instantiates the correlator for given correlation case.
-
instantiateCorrelator
@NotNull public @NotNull Correlator instantiateCorrelator(@NotNull @NotNull ShadowType shadowedResourceObject, @NotNull @NotNull Task task, @NotNull @NotNull OperationResult result) throws SchemaException, ExpressionEvaluationException, CommunicationException, SecurityViolationException, ConfigurationException, ObjectNotFoundException
Description copied from interface:CorrelationService
Instantiates the correlator for given shadow. TODO consider removal (seems to be unused)
-
completeCorrelationCase
public void completeCorrelationCase(@NotNull @NotNull CaseType currentCase, @NotNull @NotNull CorrelationService.CaseCloser caseCloser, @NotNull @NotNull Task task, @NotNull @NotNull OperationResult result) throws SchemaException, ExpressionEvaluationException, CommunicationException, SecurityViolationException, ConfigurationException, ObjectNotFoundException
Description copied from interface:CorrelationService
Completes given correlation case. Preconditions: - case is freshly fetched, - case is a correlation one
-
getCorrelationProperties
public Collection<CorrelationProperty> getCorrelationProperties(@NotNull @NotNull CaseType aCase, @NotNull @NotNull Task task, @NotNull @NotNull OperationResult result) throws SchemaException, ConfigurationException, ExpressionEvaluationException, CommunicationException, SecurityViolationException, ObjectNotFoundException
Description copied from interface:CorrelationService
Returns properties relevant for the correlation, e.g. to be shown in GUI.
-
createRootCorrelatorContext
@NotNull public @NotNull CorrelatorContext<?> createRootCorrelatorContext(@NotNull @NotNull CompositeCorrelatorType correlators, @Nullable @Nullable CorrelationDefinitionType correlationDefinitionBean, @Nullable @Nullable SystemConfigurationType systemConfiguration) throws ConfigurationException, SchemaException
Description copied from interface:CorrelationService
Creates the root correlator context for given configuration.- Specified by:
createRootCorrelatorContext
in interfaceCorrelationService
- Throws:
ConfigurationException
SchemaException
-
clearCorrelationState
public void clearCorrelationState(@NotNull @NotNull String shadowOid, @NotNull @NotNull OperationResult result) throws ObjectNotFoundException
Description copied from interface:CorrelationService
Clears the correlation state of a shadow. Does not do unlinking (if the shadow is linked)!- Specified by:
clearCorrelationState
in interfaceCorrelationService
- Throws:
ObjectNotFoundException
-
-