Skip to content

Commit

Permalink
mapper no longer used
Browse files Browse the repository at this point in the history
  • Loading branch information
OlliL committed Mar 10, 2024
1 parent 46a282b commit c99a2bd
Show file tree
Hide file tree
Showing 12 changed files with 4 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
import org.laladev.moneyjinn.server.controller.mapper.EtfEffectiveFlowTransportMapper;
import org.laladev.moneyjinn.server.controller.mapper.EtfFlowTransportMapper;
import org.laladev.moneyjinn.server.controller.mapper.EtfTransportMapper;
import org.laladev.moneyjinn.server.controller.mapper.ValidationItemTransportMapper;
import org.laladev.moneyjinn.server.model.CalcEtfSaleRequest;
import org.laladev.moneyjinn.server.model.CalcEtfSaleResponse;
import org.laladev.moneyjinn.server.model.CreateEtfFlowRequest;
Expand Down Expand Up @@ -89,7 +88,6 @@ public class EtfController extends AbstractController implements EtfControllerAp
private final EtfTransportMapper etfTransportMapper;
private final EtfFlowTransportMapper etfFlowTransportMapper;
private final EtfEffectiveFlowTransportMapper etfEffectiveFlowTransportMapper;
private final ValidationItemTransportMapper validationItemTransportMapper;

@Override
public ResponseEntity<ListEtfOverviewResponse> listEtfOverview(
Expand Down Expand Up @@ -278,6 +276,5 @@ protected void addBeanMapper() {
super.registerBeanMapper(this.etfFlowTransportMapper);
super.registerBeanMapper(this.etfEffectiveFlowTransportMapper);
super.registerBeanMapper(this.etfTransportMapper);
super.registerBeanMapper(this.validationItemTransportMapper);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
import org.laladev.moneyjinn.model.validation.ValidationResult;
import org.laladev.moneyjinn.server.controller.api.GroupControllerApi;
import org.laladev.moneyjinn.server.controller.mapper.GroupTransportMapper;
import org.laladev.moneyjinn.server.controller.mapper.ValidationItemTransportMapper;
import org.laladev.moneyjinn.server.model.CreateGroupRequest;
import org.laladev.moneyjinn.server.model.CreateGroupResponse;
import org.laladev.moneyjinn.server.model.GroupTransport;
Expand All @@ -57,13 +56,11 @@
public class GroupController extends AbstractController implements GroupControllerApi {
private final IGroupService groupService;
private final GroupTransportMapper groupTransportMapper;
private final ValidationItemTransportMapper validationItemTransportMapper;

@Override
@PostConstruct
protected void addBeanMapper() {
this.registerBeanMapper(this.groupTransportMapper);
this.registerBeanMapper(this.validationItemTransportMapper);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
import org.laladev.moneyjinn.server.controller.mapper.ImportedMoneyflowTransportMapper;
import org.laladev.moneyjinn.server.controller.mapper.MoneyflowSplitEntryTransportMapper;
import org.laladev.moneyjinn.server.controller.mapper.PostingAccountTransportMapper;
import org.laladev.moneyjinn.server.controller.mapper.ValidationItemTransportMapper;
import org.laladev.moneyjinn.server.model.CreateImportedMoneyflowRequest;
import org.laladev.moneyjinn.server.model.ImportImportedMoneyflowRequest;
import org.laladev.moneyjinn.server.model.ImportedMoneyflowTransport;
Expand Down Expand Up @@ -102,16 +101,14 @@ public class ImportedMoneyflowController extends AbstractController implements I
private final ImportedMoneyflowTransportMapper importedMoneyflowTransportMapper;
private final MoneyflowSplitEntryTransportMapper moneyflowSplitEntryTransportMapper;
private final PostingAccountTransportMapper postingAccountTransportMapper;
private final ValidationItemTransportMapper validationItemTransportMapper;

@Override
@PostConstruct
protected void addBeanMapper() {
this.registerBeanMapper(this.capitalsourceTransportMapper);
this.registerBeanMapper(this.contractpartnerTransportMapper);
this.registerBeanMapper(this.postingAccountTransportMapper);
this.registerBeanMapper(this.importedMoneyflowTransportMapper);
this.registerBeanMapper(this.validationItemTransportMapper);
super.registerBeanMapper(this.capitalsourceTransportMapper);
super.registerBeanMapper(this.contractpartnerTransportMapper);
super.registerBeanMapper(this.postingAccountTransportMapper);
super.registerBeanMapper(this.importedMoneyflowTransportMapper);
super.registerBeanMapper(this.moneyflowSplitEntryTransportMapper);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
import org.laladev.moneyjinn.model.validation.ValidationResult;
import org.laladev.moneyjinn.server.controller.api.ImportedMoneyflowReceiptControllerApi;
import org.laladev.moneyjinn.server.controller.mapper.ImportedMoneyflowReceiptTransportMapper;
import org.laladev.moneyjinn.server.controller.mapper.ValidationItemTransportMapper;
import org.laladev.moneyjinn.server.model.CreateImportedMoneyflowReceiptsRequest;
import org.laladev.moneyjinn.server.model.ImportedMoneyflowReceiptTransport;
import org.laladev.moneyjinn.server.model.ShowImportImportedMoneyflowReceiptsResponse;
Expand Down Expand Up @@ -72,7 +71,6 @@ public class ImportedMoneyflowReceiptController extends AbstractController
private final IAccessRelationService accessRelationService;
private final IUserService userService;
private final ImportedMoneyflowReceiptTransportMapper importedMoneyflowReceiptTransportMapper;
private final ValidationItemTransportMapper validationItemTransportMapper;

private static final String MEDIA_TYPE_IMAGE_JPEG = "image/jpeg";
private static final String MEDIA_TYPE_APPLICATION_PDF = "application/pdf";
Expand All @@ -81,7 +79,6 @@ public class ImportedMoneyflowReceiptController extends AbstractController
@PostConstruct
protected void addBeanMapper() {
this.registerBeanMapper(this.importedMoneyflowReceiptTransportMapper);
this.registerBeanMapper(this.validationItemTransportMapper);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
import org.laladev.moneyjinn.server.controller.mapper.MoneyflowSearchParamsTransportMapper;
import org.laladev.moneyjinn.server.controller.mapper.MoneyflowSplitEntryTransportMapper;
import org.laladev.moneyjinn.server.controller.mapper.MoneyflowTransportMapper;
import org.laladev.moneyjinn.server.controller.mapper.ValidationItemTransportMapper;
import org.laladev.moneyjinn.server.model.CreateMoneyflowRequest;
import org.laladev.moneyjinn.server.model.MoneyflowSplitEntryTransport;
import org.laladev.moneyjinn.server.model.MoneyflowTransport;
Expand Down Expand Up @@ -97,15 +96,13 @@ public class MoneyflowController extends AbstractController implements Moneyflow
private final MoneyflowSearchParamsTransportMapper moneyflowSearchParamsTransportMapper;
private final MoneyflowSplitEntryTransportMapper moneyflowSplitEntryTransportMapper;
private final MoneyflowTransportMapper moneyflowTransportMapper;
private final ValidationItemTransportMapper validationItemTransportMapper;

private static final DateTimeFormatter SEARCH_DATE_FORMATTER = DateTimeFormatter.ofPattern("yyyyMMdd");

@Override
@PostConstruct
protected void addBeanMapper() {
super.registerBeanMapper(this.moneyflowTransportMapper);
super.registerBeanMapper(this.validationItemTransportMapper);
super.registerBeanMapper(this.moneyflowSearchParamsTransportMapper);
super.registerBeanMapper(this.moneyflowSplitEntryTransportMapper);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
import org.laladev.moneyjinn.server.controller.api.MonthlySettlementControllerApi;
import org.laladev.moneyjinn.server.controller.mapper.ImportedMonthlySettlementTransportMapper;
import org.laladev.moneyjinn.server.controller.mapper.MonthlySettlementTransportMapper;
import org.laladev.moneyjinn.server.controller.mapper.ValidationItemTransportMapper;
import org.laladev.moneyjinn.server.model.GetAvailableMonthlySettlementMonthResponse;
import org.laladev.moneyjinn.server.model.MonthlySettlementTransport;
import org.laladev.moneyjinn.server.model.ShowMonthlySettlementCreateResponse;
Expand Down Expand Up @@ -79,14 +78,12 @@ public class MonthlySettlementController extends AbstractController implements M
private final IAccessRelationService accessRelationService;
private final ImportedMonthlySettlementTransportMapper importedMonthlySettlementTransportMapper;
private final MonthlySettlementTransportMapper monthlySettlementTransportMapper;
private final ValidationItemTransportMapper validationItemTransportMapper;

@Override
@PostConstruct
protected void addBeanMapper() {
this.registerBeanMapper(this.monthlySettlementTransportMapper);
this.registerBeanMapper(this.importedMonthlySettlementTransportMapper);
this.registerBeanMapper(this.validationItemTransportMapper);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
import org.laladev.moneyjinn.model.validation.ValidationResult;
import org.laladev.moneyjinn.server.controller.api.PostingAccountControllerApi;
import org.laladev.moneyjinn.server.controller.mapper.PostingAccountTransportMapper;
import org.laladev.moneyjinn.server.controller.mapper.ValidationItemTransportMapper;
import org.laladev.moneyjinn.server.model.CreatePostingAccountRequest;
import org.laladev.moneyjinn.server.model.CreatePostingAccountResponse;
import org.laladev.moneyjinn.server.model.PostingAccountTransport;
Expand All @@ -56,13 +55,11 @@
public class PostingAccountController extends AbstractController implements PostingAccountControllerApi {
private final IPostingAccountService postingAccountService;
private final PostingAccountTransportMapper postingAccountTransportMapper;
private final ValidationItemTransportMapper validationItemTransportMapper;

@Override
@PostConstruct
protected void addBeanMapper() {
this.registerBeanMapper(this.postingAccountTransportMapper);
this.registerBeanMapper(this.validationItemTransportMapper);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
import org.laladev.moneyjinn.model.validation.ValidationResult;
import org.laladev.moneyjinn.server.controller.api.PreDefMoneyflowControllerApi;
import org.laladev.moneyjinn.server.controller.mapper.PreDefMoneyflowTransportMapper;
import org.laladev.moneyjinn.server.controller.mapper.ValidationItemTransportMapper;
import org.laladev.moneyjinn.server.model.CreatePreDefMoneyflowRequest;
import org.laladev.moneyjinn.server.model.CreatePreDefMoneyflowResponse;
import org.laladev.moneyjinn.server.model.PreDefMoneyflowTransport;
Expand All @@ -57,13 +56,11 @@
public class PreDefMoneyflowController extends AbstractController implements PreDefMoneyflowControllerApi {
private final IPreDefMoneyflowService preDefMoneyflowService;
private final PreDefMoneyflowTransportMapper preDefMoneyflowTransportMapper;
private final ValidationItemTransportMapper validationItemTransportMapper;

@Override
@PostConstruct
protected void addBeanMapper() {
this.registerBeanMapper(this.preDefMoneyflowTransportMapper);
this.registerBeanMapper(this.validationItemTransportMapper);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
import org.laladev.moneyjinn.server.controller.mapper.AccessRelationTransportMapper;
import org.laladev.moneyjinn.server.controller.mapper.GroupTransportMapper;
import org.laladev.moneyjinn.server.controller.mapper.UserTransportMapper;
import org.laladev.moneyjinn.server.controller.mapper.ValidationItemTransportMapper;
import org.laladev.moneyjinn.server.model.AccessRelationTransport;
import org.laladev.moneyjinn.server.model.ChangePasswordRequest;
import org.laladev.moneyjinn.server.model.CreateUserRequest;
Expand Down Expand Up @@ -86,15 +85,13 @@ public class UserController extends AbstractController implements UserController
private final AccessRelationTransportMapper accessRelationTransportMapper;
private final GroupTransportMapper groupTransportMapper;
private final UserTransportMapper userTransportMapper;
private final ValidationItemTransportMapper validationItemTransportMapper;

@Override
@PostConstruct
protected void addBeanMapper() {
this.registerBeanMapper(this.userTransportMapper);
this.registerBeanMapper(this.groupTransportMapper);
this.registerBeanMapper(this.accessRelationTransportMapper);
this.registerBeanMapper(this.validationItemTransportMapper);
}

private UsernamePasswordAuthenticationToken getUsernamePasswordAuthenticationToken(final LoginRequest request) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
import org.laladev.moneyjinn.server.controller.api.CrudCapitalsourceControllerApi;
import org.laladev.moneyjinn.server.controller.impl.AbstractController;
import org.laladev.moneyjinn.server.controller.mapper.CapitalsourceTransportMapper;
import org.laladev.moneyjinn.server.controller.mapper.ValidationItemTransportMapper;
import org.laladev.moneyjinn.server.model.CapitalsourceTransport;
import org.laladev.moneyjinn.service.api.IAccessRelationService;
import org.laladev.moneyjinn.service.api.ICapitalsourceService;
Expand All @@ -60,13 +59,11 @@ public class CrudCapitalsourceController extends AbstractController implements C
private final ICapitalsourceService capitalsourceService;
private final IUserService userService;
private final CapitalsourceTransportMapper capitalsourceTransportMapper;
private final ValidationItemTransportMapper validationItemTransportMapper;

@Override
@PostConstruct
protected void addBeanMapper() {
this.registerBeanMapper(this.capitalsourceTransportMapper);
this.registerBeanMapper(this.validationItemTransportMapper);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
import org.laladev.moneyjinn.server.controller.api.CrudContractpartnerAccountControllerApi;
import org.laladev.moneyjinn.server.controller.impl.AbstractController;
import org.laladev.moneyjinn.server.controller.mapper.ContractpartnerAccountTransportMapper;
import org.laladev.moneyjinn.server.controller.mapper.ValidationItemTransportMapper;
import org.laladev.moneyjinn.server.model.ContractpartnerAccountTransport;
import org.laladev.moneyjinn.service.api.IContractpartnerAccountService;
import org.springframework.http.ResponseEntity;
Expand All @@ -56,13 +55,11 @@ public class CrudContractpartnerAccountController extends AbstractController
implements CrudContractpartnerAccountControllerApi {
private final IContractpartnerAccountService contractpartnerAccountService;
private final ContractpartnerAccountTransportMapper contractpartnerAccountTransportMapper;
private final ValidationItemTransportMapper validationItemTransportMapper;

@Override
@PostConstruct
protected void addBeanMapper() {
this.registerBeanMapper(this.contractpartnerAccountTransportMapper);
this.registerBeanMapper(this.validationItemTransportMapper);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
import org.laladev.moneyjinn.server.controller.api.CrudContractpartnerControllerApi;
import org.laladev.moneyjinn.server.controller.impl.AbstractController;
import org.laladev.moneyjinn.server.controller.mapper.ContractpartnerTransportMapper;
import org.laladev.moneyjinn.server.controller.mapper.ValidationItemTransportMapper;
import org.laladev.moneyjinn.server.model.ContractpartnerTransport;
import org.laladev.moneyjinn.service.api.IAccessRelationService;
import org.laladev.moneyjinn.service.api.IContractpartnerAccountService;
Expand All @@ -62,13 +61,11 @@ public class CrudContractpartnerController extends AbstractController implements
private final IContractpartnerService contractpartnerService;
private final IUserService userService;
private final ContractpartnerTransportMapper contractpartnerTransportMapper;
private final ValidationItemTransportMapper validationItemTransportMapper;

@Override
@PostConstruct
protected void addBeanMapper() {
this.registerBeanMapper(this.contractpartnerTransportMapper);
this.registerBeanMapper(this.validationItemTransportMapper);
}

@Override
Expand Down

0 comments on commit c99a2bd

Please sign in to comment.