Commits

Lene Andersen authored ffcd98e02df Merge
SDS-7260: håndtering af merge konflikt
No tags

cleanup-deprecated/src/main/java/dk/nsp/xdscleanup/deprecated/factory/CleanupOperationsFactory.java

Modified
1 1 package dk.nsp.xdscleanup.deprecated.factory;
2 2
3 3 import dk.nsp.backgroundjob.util.DateTimeProvider;
4 4 import dk.nsp.xdscleanup.common.model.DocumentEntry;
5 5 import dk.nsp.xdscleanup.common.model.SubmissionSet;
6 6 import dk.nsp.xdscleanup.deprecated.model.DocumentTypeDeprecatedCleanup;
7 +import dk.nsp.xdscleanup.deprecated.stack.registry.submissionsets.DanglingSubmissionSetsCleanupEntryuuidPrefixSupplier;
7 8 import dk.nsp.xdscleanup.nxrg.service.RegistryDeletionService;
8 9 import dk.nsp.xdscleanup.deprecated.stack.registry.deprecated.DeprecatedDocumentPatientIdPrefixCleanupSupplier;
9 10 import dk.nsp.xdscleanup.deprecated.stack.registry.deprecated.RegistryBatchCleanupOperation;
10 11 import dk.nsp.xdscleanup.deprecated.stack.registry.submissionsets.RegistrySubmissionSetsBatchCleanupOperation;
11 12
12 13 import java.util.List;
13 14
14 15 public class CleanupOperationsFactory {
15 16 private final RegistryDeletionService registryDeletionService;
16 17 private final DateTimeProvider dateTimeProvider;
35 36 }
36 37
37 38 public DeprecatedDocumentPatientIdPrefixCleanupSupplier createDeprecatedDocumentBatchCleanupOperation(String patientIdPrefix, DocumentTypeDeprecatedCleanup documentTypeDeprecatedCleanup) {
38 39 return new DeprecatedDocumentPatientIdPrefixCleanupSupplier(registryDeletionService, this, registryBatchSize, patientIdPrefix, documentTypeDeprecatedCleanup, daysBeforeDelete, deprecatedLimit);
39 40 }
40 41
41 42 public RegistryBatchCleanupOperation createRegistryBatchCleanupOperation(List<DocumentEntry> documentEntriesForDeletion) {
42 43 return new RegistryBatchCleanupOperation(registryDeletionService, documentEntriesForDeletion, dateTimeProvider);
43 44 }
44 45
46 + public DanglingSubmissionSetsCleanupEntryuuidPrefixSupplier createDanglingSubmissionSetsBatchCleanupOperation (String entryuuidPrefix) {
47 + return new DanglingSubmissionSetsCleanupEntryuuidPrefixSupplier(registryDeletionService, this, registryBatchSize, entryuuidPrefix, submissionSetLimit);
48 + }
49 +
45 50 public RegistrySubmissionSetsBatchCleanupOperation createRegistrySubmissionSetsBatchCleanupOperation(List<SubmissionSet> submissionSetsForDeletion) {
46 51 return new RegistrySubmissionSetsBatchCleanupOperation(registryDeletionService, submissionSetsForDeletion, dateTimeProvider);
47 52 }
48 53 }

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut