Revert "RED-8480: differenciate between recategorize and legal basis change"
This reverts commit dcb5c0e03e1f4fabbe270658a790f1c5d08b4cfd.
This commit is contained in:
parent
05ce3123fc
commit
0f6c7faceb
@ -357,6 +357,7 @@ public class EntityLogMergeService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Deprecated(forRemoval = true)
|
||||||
private void mergeLegalBasisChange(ManualLegalBasisChange manualLegalBasisChange,
|
private void mergeLegalBasisChange(ManualLegalBasisChange manualLegalBasisChange,
|
||||||
EntityLogEntry entityLogEntry,
|
EntityLogEntry entityLogEntry,
|
||||||
int analysisNumber) {
|
int analysisNumber) {
|
||||||
@ -378,6 +379,7 @@ public class EntityLogMergeService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Deprecated(forRemoval = true)
|
||||||
private Map<String, String> getPropertyChanges(ManualLegalBasisChange manualLegalBasisChange) {
|
private Map<String, String> getPropertyChanges(ManualLegalBasisChange manualLegalBasisChange) {
|
||||||
|
|
||||||
Map<String, String> propertyChanges = new HashMap<>();
|
Map<String, String> propertyChanges = new HashMap<>();
|
||||||
|
|||||||
@ -2100,14 +2100,14 @@ public class ManualRedactionTest extends AbstractPersistenceServerServiceTest {
|
|||||||
manualRedactionClient.recategorizeBulk(dossier.getId(), file.getId(), Set.of(recatModel), false);
|
manualRedactionClient.recategorizeBulk(dossier.getId(), file.getId(), Set.of(recatModel), false);
|
||||||
|
|
||||||
var allManualRedactions = manualRedactionClient.getManualRedactions(dossier.getId(), file.getId(), false, true);
|
var allManualRedactions = manualRedactionClient.getManualRedactions(dossier.getId(), file.getId(), false, true);
|
||||||
assertEquals(1, allManualRedactions.getLegalBasisChanges().size());
|
assertEquals(1, allManualRedactions.getRecategorizations().size());
|
||||||
assertTrue(allManualRedactions.getLegalBasisChanges()
|
assertTrue(allManualRedactions.getRecategorizations()
|
||||||
.stream()
|
.stream()
|
||||||
.anyMatch(entry -> entry.getAnnotationId().equals("annotationId")));
|
.anyMatch(entry -> entry.getAnnotationId().equals("annotationId")));
|
||||||
assertTrue(allManualRedactions.getLegalBasisChanges()
|
assertTrue(allManualRedactions.getRecategorizations()
|
||||||
.stream()
|
.stream()
|
||||||
.anyMatch(entry -> entry.getLegalBasis().equals("lb2")));
|
.anyMatch(entry -> entry.getLegalBasis().equals("lb2")));
|
||||||
assertTrue(allManualRedactions.getLegalBasisChanges()
|
assertTrue(allManualRedactions.getRecategorizations()
|
||||||
.stream()
|
.stream()
|
||||||
.anyMatch(entry -> entry.getSection().equals("section")));
|
.anyMatch(entry -> entry.getSection().equals("section")));
|
||||||
}
|
}
|
||||||
|
|||||||
@ -6,6 +6,7 @@ import lombok.EqualsAndHashCode;
|
|||||||
import lombok.NoArgsConstructor;
|
import lombok.NoArgsConstructor;
|
||||||
import lombok.experimental.SuperBuilder;
|
import lombok.experimental.SuperBuilder;
|
||||||
|
|
||||||
|
@Deprecated(forRemoval = true)
|
||||||
@Data
|
@Data
|
||||||
@SuperBuilder
|
@SuperBuilder
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user