-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Utility i NareVersion. Fjerne en del deprecated (#207)
* Utility i NareVersion. Fjerne en del deprecated * Metodekall isf aksess
- Loading branch information
Showing
4 changed files
with
10 additions
and
57 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,16 @@ | ||
package no.nav.fpsak.nare.doc; | ||
|
||
import java.util.UUID; | ||
|
||
import no.nav.fpsak.nare.evaluation.Operator; | ||
|
||
@SuppressWarnings("unused") | ||
public class RuleNode { | ||
final String id; | ||
|
||
private final String ruleId; | ||
private final String ruleDescription; | ||
private final Operator operator; | ||
private RuleDescription rule; | ||
|
||
@Deprecated(forRemoval = true, since = "2.6.0") | ||
public RuleNode(String ruleId, String ruleDescription, Operator operator) { | ||
this.id = UUID.randomUUID().toString(); | ||
this.ruleId = ruleId; | ||
this.ruleDescription = ruleDescription; | ||
this.operator = operator; | ||
} | ||
|
||
@Deprecated(forRemoval = true, since = "2.6.0") | ||
public RuleNode(RuleDescription node) { | ||
this.id = UUID.randomUUID().toString(); | ||
this.ruleId = node.getRuleIdentification(); | ||
this.ruleDescription = node.getRuleDescription(); | ||
this.operator = node.getOperator(); | ||
this.rule = node; | ||
} | ||
public record RuleNode(String id, String ruleId, String ruleDescription, Operator operator, RuleDescription rule) { | ||
|
||
public RuleNode(String id, String ruleId, String ruleDescription, Operator operator) { | ||
this.id = id; | ||
this.ruleId = ruleId; | ||
this.ruleDescription = ruleDescription; | ||
this.operator = operator; | ||
this(id, ruleId, ruleDescription, operator, null); | ||
} | ||
|
||
public RuleNode(String id, RuleDescription node) { | ||
this.id = id; | ||
this.ruleId = node.getRuleIdentification(); | ||
this.ruleDescription = node.getRuleDescription(); | ||
this.operator = node.getOperator(); | ||
this.rule = node; | ||
this(id, node.getRuleIdentification(), node.getRuleDescription(), node.getOperator(), node); | ||
} | ||
|
||
} |
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