-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add draft of built-in manual correlation
Filter and Expression correlators can now create "manual" correlation cases as well. Work in progress. No GUI, no case resolution, messy code.
- Loading branch information
Showing
32 changed files
with
1,072 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletions
69
...pi/src/main/java/com/evolveum/midpoint/model/api/correlator/ManualCorrelationContext.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
/* | ||
* Copyright (C) 2010-2022 Evolveum and contributors | ||
* | ||
* This work is dual-licensed under the Apache License 2.0 | ||
* and European Union Public License. See LICENSE file for details. | ||
*/ | ||
|
||
package com.evolveum.midpoint.model.api.correlator; | ||
|
||
import com.evolveum.midpoint.util.DebugDumpable; | ||
import com.evolveum.midpoint.util.DebugUtil; | ||
|
||
import com.evolveum.midpoint.xml.ns._public.common.common_3.BuiltInCorrelationPotentialMatchType; | ||
|
||
import com.evolveum.midpoint.xml.ns._public.common.common_3.ManualCorrelationConfigurationType; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* Here can the user script in the correlator request the manual resolution. (Plus provide additional information.) | ||
*/ | ||
public class ManualCorrelationContext implements DebugDumpable { | ||
|
||
/** | ||
* The configuration from the correlator configuration bean. (Or constructed artificially.) | ||
*/ | ||
private ManualCorrelationConfigurationType configuration; | ||
|
||
/** | ||
* Was the manual correlation requested by the user code? | ||
*/ | ||
private boolean requested; | ||
|
||
/** | ||
* Explicit list of potential matches provided by the user code. | ||
*/ | ||
private List<BuiltInCorrelationPotentialMatchType> potentialMatches; | ||
|
||
public ManualCorrelationConfigurationType getConfiguration() { | ||
return configuration; | ||
} | ||
|
||
public void setConfiguration(ManualCorrelationConfigurationType configuration) { | ||
this.configuration = configuration; | ||
} | ||
|
||
public boolean isRequested() { | ||
return requested; | ||
} | ||
|
||
public void setRequested(boolean requested) { | ||
this.requested = requested; | ||
} | ||
|
||
public List<BuiltInCorrelationPotentialMatchType> getPotentialMatches() { | ||
return potentialMatches; | ||
} | ||
|
||
public void setPotentialMatches(List<BuiltInCorrelationPotentialMatchType> potentialMatches) { | ||
this.potentialMatches = potentialMatches; | ||
} | ||
|
||
@Override | ||
public String debugDump(int indent) { | ||
StringBuilder sb = DebugUtil.createTitleStringBuilderLn(getClass(), indent); | ||
DebugUtil.debugDumpWithLabel(sb, "requested", requested, indent + 1); | ||
return sb.toString(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.