RED-6485: Fixed transactions for manual redactions with add to dictionary
This commit is contained in:
parent
c6cca6a2d3
commit
e160f5e556
@ -13,8 +13,6 @@ import java.util.function.Predicate;
|
|||||||
import java.util.regex.Matcher;
|
import java.util.regex.Matcher;
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
import javax.transaction.Transactional;
|
|
||||||
|
|
||||||
import org.apache.commons.collections4.CollectionUtils;
|
import org.apache.commons.collections4.CollectionUtils;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
@ -53,7 +51,6 @@ public class DictionaryManagementService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Transactional
|
|
||||||
public Type addType(Type typeRequest) {
|
public Type addType(Type typeRequest) {
|
||||||
|
|
||||||
if (typeRequest.getDossierTemplateId() == null) {
|
if (typeRequest.getDossierTemplateId() == null) {
|
||||||
|
|||||||
@ -96,7 +96,6 @@ public class ManualRedactionService {
|
|||||||
private final HashFunction hashFunction = Hashing.murmur3_128();
|
private final HashFunction hashFunction = Hashing.murmur3_128();
|
||||||
|
|
||||||
|
|
||||||
@Transactional
|
|
||||||
public List<ManualAddResponse> addAddRedaction(String dossierId, String fileId, List<AddRedactionRequest> addRedactionRequests) {
|
public List<ManualAddResponse> addAddRedaction(String dossierId, String fileId, List<AddRedactionRequest> addRedactionRequests) {
|
||||||
|
|
||||||
var response = new ArrayList<ManualAddResponse>();
|
var response = new ArrayList<ManualAddResponse>();
|
||||||
@ -285,7 +284,6 @@ public class ManualRedactionService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Transactional
|
|
||||||
public List<ManualAddResponse> addRemoveRedaction(String dossierId, String fileId, List<RemoveRedactionRequest> removeRedactionRequests) {
|
public List<ManualAddResponse> addRemoveRedaction(String dossierId, String fileId, List<RemoveRedactionRequest> removeRedactionRequests) {
|
||||||
|
|
||||||
RedactionLog redactionLog = null;
|
RedactionLog redactionLog = null;
|
||||||
|
|||||||
@ -36,6 +36,7 @@ public class DictionaryPersistenceService {
|
|||||||
private final EntryRepository entryRepository;
|
private final EntryRepository entryRepository;
|
||||||
|
|
||||||
|
|
||||||
|
@Transactional
|
||||||
public TypeEntity addType(String type,
|
public TypeEntity addType(String type,
|
||||||
String dossierTemplateId,
|
String dossierTemplateId,
|
||||||
String hexColor,
|
String hexColor,
|
||||||
|
|||||||
@ -29,6 +29,7 @@ public class RemoveRedactionPersistenceService {
|
|||||||
private final RemoveRedactionRepository removeRedactionRepository;
|
private final RemoveRedactionRepository removeRedactionRepository;
|
||||||
|
|
||||||
|
|
||||||
|
@Transactional
|
||||||
public IdRemovalEntity insert(String fileId, RemoveRedactionRequest removeRedactionRequest) {
|
public IdRemovalEntity insert(String fileId, RemoveRedactionRequest removeRedactionRequest) {
|
||||||
|
|
||||||
IdRemovalEntity idRemoval = new IdRemovalEntity();
|
IdRemovalEntity idRemoval = new IdRemovalEntity();
|
||||||
|
|||||||
@ -8,4 +8,5 @@ databaseChangeLog:
|
|||||||
- column:
|
- column:
|
||||||
name: dossier_dictionary_only
|
name: dossier_dictionary_only
|
||||||
type: BOOLEAN
|
type: BOOLEAN
|
||||||
|
defaultValueBoolean: false
|
||||||
tableName: entity
|
tableName: entity
|
||||||
Loading…
x
Reference in New Issue
Block a user