Commit 657799f2 authored by Enriko Käsper's avatar Enriko Käsper
Browse files

Merge branch 'develop' into 'master'

Release: merge 'develop' into 'master' created by Enriko Käsper

See merge request teis/payments-service!38
parents e149b5f5 8f05f948
theGroup=ee.sm.ti.teis
theVersion=1.3.1
theVersion=1.4.0
pluginVersion=1.0.1
commonsVersion=1.5.1
officeApiGatewayVersion=1.5.1
commonsVersion=1.6.0
officeApiGatewayVersion=1.6.0
mapstructVersion=1.3.0.Final
querydslVersion=4.1.3
......@@ -8,6 +8,7 @@ import ee.sm.ti.teis.commongateway.payments.claim.dto.DataObjectReferenceDto;
import ee.sm.ti.teis.commongateway.payments.claim.request.CreateClaimRequest;
import ee.sm.ti.teis.commongateway.payments.claim.response.CreateClaimResponse;
import ee.sm.ti.teis.commongateway.person.PersonDto;
import ee.sm.ti.teis.domain.admin.UrlPath;
import ee.sm.ti.teis.domain.task.Task;
import ee.sm.ti.teis.payments.serviceclient.TaskServiceClient.CreateTaskMsResponse;
import ee.sm.ti.teis.servicerequest.RequestMetaDTO;
......@@ -20,6 +21,7 @@ import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.UUID;
import static ee.sm.ti.teis.payments.serviceclient.PathServiceClient.GetPathResponseMessage;
import static ee.sm.ti.teis.servicerequest.UserType.OFFICIAL_USER;
import static ee.sm.ti.teis.types.enums.ClaimStatusType.CANCELED;
import static ee.sm.ti.teis.types.enums.ClaimStatusType.VALID;
......@@ -63,6 +65,12 @@ public class CreateClaimGwListenerTest extends PaymentsAppTestBase {
doReturn(mockResponse)
.when(msRabbitTemplate)
.convertSendAndReceiveAsType(eq("domain.Task.create"), any(Object.class), any());
GetPathResponseMessage pathResponseMessage = new GetPathResponseMessage();
pathResponseMessage.setPayload(UrlPath.builder().path("/url").build(), requestMetaDTO);
doReturn(pathResponseMessage)
.when(msRabbitTemplate)
.convertSendAndReceiveAsType(eq("domain.GetUrlPath.request"), any(Object.class), any());
}
@Test
......@@ -96,6 +104,7 @@ public class CreateClaimGwListenerTest extends PaymentsAppTestBase {
.isEqualTo(payload.getDataObjectReferences().get(0).getNotForBulkChange());
assertThat(dto.getObjectStatus()).isEqualTo(CURRENT);
assertThat(dto.getPaymentDescription()).isEqualTo("test description 1312");
assertThat(dto.getPath()).isEqualTo("/url");
ClaimDefinitionDto definition = dto.getClaimDefinition();
assertThat(definition.getId()).isEqualTo(UUID.fromString("20bffead-a063-467e-a4b1-d55bf53944b5"));
......
......@@ -2,6 +2,7 @@ package ee.sm.ti.teis.payments.claim.listener;
import ee.sm.ti.teis.PaymentsAppTestBase;
import ee.sm.ti.teis.domain.ClassifierItemLight;
import ee.sm.ti.teis.domain.admin.UrlPath;
import ee.sm.ti.teis.domain.payments.claim.Claim;
import ee.sm.ti.teis.domain.payments.claim.ClaimDefinition;
import ee.sm.ti.teis.domain.payments.claim.DataObjectReference;
......@@ -21,6 +22,7 @@ import java.time.LocalDate;
import java.util.UUID;
import static ee.sm.ti.teis.payments.claim.config.ClaimQueueConfig.CreateClaimMsResponse;
import static ee.sm.ti.teis.payments.serviceclient.PathServiceClient.GetPathResponseMessage;
import static ee.sm.ti.teis.servicerequest.UserType.OFFICIAL_USER;
import static ee.sm.ti.teis.types.enums.ClaimStatusType.CANCELED;
import static ee.sm.ti.teis.types.enums.ClaimStatusType.VALID;
......@@ -67,6 +69,12 @@ public class CreateClaimMsListenerTest extends PaymentsAppTestBase implements Li
doReturn(mockResponse)
.when(msRabbitTemplate)
.convertSendAndReceiveAsType(eq("domain.Task.create"), any(Object.class), any());
GetPathResponseMessage pathResponseMessage = new GetPathResponseMessage();
pathResponseMessage.setPayload(UrlPath.builder().path("/url").build(), requestMetaDTO);
doReturn(pathResponseMessage)
.when(msRabbitTemplate)
.convertSendAndReceiveAsType(eq("domain.GetUrlPath.request"), any(Object.class), any());
}
@Override
......@@ -86,6 +94,7 @@ public class CreateClaimMsListenerTest extends PaymentsAppTestBase implements Li
assertThat(domain.getStatus()).isEqualTo(VALID);
assertThat(domain.getBalance()).isEqualTo(payload.getAmount());
assertThat(domain.getPaymentReference()).isEqualTo(CREATE_PAYMENT_REFERENCE);
assertThat(domain.getPath()).isNull();
}
@Override
......@@ -115,9 +124,15 @@ public class CreateClaimMsListenerTest extends PaymentsAppTestBase implements Li
assertThat(domain.getBalance()).isEqualTo(payload.getAmount());
assertThat(domain.getPaymentReference()).isEqualTo(CREATE_PAYMENT_REFERENCE);
assertThat(domain.getReference()).isEqualTo(payload.getReference());
assertThat(domain.getDataObjectReferences().get(0).getNotForBulkChange())
.isEqualTo(payload.getDataObjectReferences().get(0).getNotForBulkChange());
assertThat(domain.getObjectStatus()).isEqualTo(CURRENT);
assertThat(domain.getPath()).isEqualTo("/url");
DataObjectReference dataObjectReference = domain.getDataObjectReferences().get(0);
assertThat(dataObjectReference.getNotForBulkChange())
.isEqualTo(payload.getDataObjectReferences().get(0).getNotForBulkChange());
assertThat(dataObjectReference.getDataObjectId()).isEqualTo(payload.getDataObjectReferences().get(0).getDataObjectId());
assertThat(dataObjectReference.getDataObjectType().getCode()).isEqualTo(CLAIM_PAYMENT.getCode());
assertThat(dataObjectReference.getDataObjectType().getId()).isEqualTo(CLAIM_PAYMENT.getId());
ClaimDefinition definition = domain.getClaimDefinition();
assertThat(definition.getId()).isEqualTo(UUID.fromString("20bffead-a063-467e-a4b1-d55bf53944b5"));
......
......@@ -77,7 +77,6 @@ public class UpdateEnforcementGwListenerTest extends PaymentsAppTestBase impleme
}
@Override
@Test
public void update_minimumData_success() {
// not applicable
}
......
......@@ -31,8 +31,6 @@ public class CreatePaymentGwListenerTest extends PaymentsAppTestBase implements
public static final String PAYER_NAME = "Payer 1";
public static final String INPUT_VALIDATION_ERROR = "Input validation error";
public static final String NOT_NULL = "NotNull";
public static final String MUST_NOT_BE_NULL = "must not be null";
@Autowired
PaymentGwListener listener;
......@@ -55,8 +53,8 @@ public class CreatePaymentGwListenerTest extends PaymentsAppTestBase implements
@Test
public void missingPrivilege_forbidden() {
requestMetaDTO.setPrivileges(null);
request.setRequestMetaDTO(requestMetaDTO);
assertResponseForbidden(listener.create(request).getError());
}
......@@ -66,7 +64,6 @@ public class CreatePaymentGwListenerTest extends PaymentsAppTestBase implements
requestMetaDTO.setUserType(PERSON);
request.setRequestMetaDTO(requestMetaDTO);
request.setRequestMetaDTO(requestMetaDTO);
assertResponseForbidden(listener.create(request).getError());
}
......@@ -120,8 +117,6 @@ public class CreatePaymentGwListenerTest extends PaymentsAppTestBase implements
assertThat(errorDto.getMessage()).isEqualTo(INPUT_VALIDATION_ERROR);
assertThat(errorDto.getViolations().size()).isEqualTo(1);
ConstraintViolationDto violationDto = errorDto.getViolations().get(0);
assertThat(violationDto.getCode()).isEqualTo(NOT_NULL);
assertThat(violationDto.getMessage()).isEqualTo(MUST_NOT_BE_NULL);
assertThat(violationDto.getFieldName()).isEqualTo("create.dto.payerName");
}
......@@ -137,8 +132,6 @@ public class CreatePaymentGwListenerTest extends PaymentsAppTestBase implements
assertThat(errorDto.getMessage()).isEqualTo(INPUT_VALIDATION_ERROR);
assertThat(errorDto.getViolations().size()).isEqualTo(1);
ConstraintViolationDto violationDto = errorDto.getViolations().get(0);
assertThat(violationDto.getCode()).isEqualTo(NOT_NULL);
assertThat(violationDto.getMessage()).isEqualTo(MUST_NOT_BE_NULL);
assertThat(violationDto.getFieldName()).isEqualTo("create.dto.receiptDate");
}
......@@ -154,8 +147,6 @@ public class CreatePaymentGwListenerTest extends PaymentsAppTestBase implements
assertThat(errorDto.getMessage()).isEqualTo(INPUT_VALIDATION_ERROR);
assertThat(errorDto.getViolations().size()).isEqualTo(1);
ConstraintViolationDto violationDto = errorDto.getViolations().get(0);
assertThat(violationDto.getCode()).isEqualTo(NOT_NULL);
assertThat(violationDto.getMessage()).isEqualTo(MUST_NOT_BE_NULL);
assertThat(violationDto.getFieldName()).isEqualTo("create.dto.amount");
}
......
......@@ -56,8 +56,8 @@ public class DeletePaymentGwListenerTest extends PaymentsAppTestBase implements
@Test
public void missingPrivilege_forbidden() {
requestMetaDTO.setPrivileges(null);
request.setRequestMetaDTO(requestMetaDTO);
assertResponseForbidden(listener.delete(request).getError());
}
......@@ -67,7 +67,6 @@ public class DeletePaymentGwListenerTest extends PaymentsAppTestBase implements
requestMetaDTO.setUserType(PERSON);
request.setRequestMetaDTO(requestMetaDTO);
request.setRequestMetaDTO(requestMetaDTO);
assertResponseForbidden(listener.delete(request).getError());
}
......
......@@ -63,8 +63,8 @@ public class PatchPaymentGwListenerTest extends PaymentsAppTestBase implements L
@Test
public void missingPrivilege_forbidden() {
requestMetaDTO.setPrivileges(null);
request.setRequestMetaDTO(requestMetaDTO);
assertResponseForbidden(listener.patch(request).getError());
}
......@@ -74,7 +74,6 @@ public class PatchPaymentGwListenerTest extends PaymentsAppTestBase implements L
requestMetaDTO.setUserType(PERSON);
request.setRequestMetaDTO(requestMetaDTO);
request.setRequestMetaDTO(requestMetaDTO);
assertResponseForbidden(listener.patch(request).getError());
}
......
......@@ -53,8 +53,8 @@ public class PaymentGwListenerTest extends PaymentsAppTestBase implements Listen
@Test
public void missingPrivilege_forbidden() {
requestMetaDTO.setPrivileges(null);
request.setRequestMetaDTO(requestMetaDTO);
assertResponseForbidden(listener.getPayment(request).getError());
}
......@@ -62,8 +62,8 @@ public class PaymentGwListenerTest extends PaymentsAppTestBase implements Listen
@Test
public void wrongUserType_forbidden() {
requestMetaDTO.setUserType(PERSON);
request.setRequestMetaDTO(requestMetaDTO);
assertResponseForbidden(listener.getPayment(request).getError());
}
......
......@@ -48,8 +48,8 @@ public class PaymentsGwListenerTest extends PaymentsAppTestBase implements Liste
@Test
public void missingPrivilege_forbidden() {
requestMetaDTO.setPrivileges(null);
request.setRequestMetaDTO(requestMetaDTO);
assertResponseForbidden(listener.getPayments(request).getError());
}
......@@ -57,8 +57,8 @@ public class PaymentsGwListenerTest extends PaymentsAppTestBase implements Liste
@Test
public void wrongUserType_forbidden() {
requestMetaDTO.setUserType(PERSON);
request.setRequestMetaDTO(requestMetaDTO);
assertResponseForbidden(listener.getPayments(request).getError());
}
......
......@@ -5,6 +5,7 @@ import ee.sm.ti.teis.commongateway.payments.claim.dto.ClaimDefinitionDto;
import ee.sm.ti.teis.commongateway.payments.claim.dto.ClaimDto;
import ee.sm.ti.teis.commongateway.payments.claim.request.CreateClaimRequest;
import ee.sm.ti.teis.commongateway.person.PersonDto;
import ee.sm.ti.teis.domain.admin.UrlPath;
import ee.sm.ti.teis.officegateway.payments.payment.dto.CreatePaymentDto;
import ee.sm.ti.teis.officegateway.payments.payment.dto.PaymentDto;
import ee.sm.ti.teis.officegateway.payments.payment.dto.ReconciliationDto;
......@@ -21,6 +22,7 @@ import ee.sm.ti.teis.servicecommon.test.ListenerDeleteRequestTestBase;
import ee.sm.ti.teis.servicerequest.RequestMetaDTO;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.mock.mockito.MockBean;
......@@ -29,6 +31,7 @@ import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.UUID;
import static ee.sm.ti.teis.payments.serviceclient.PathServiceClient.GetPathResponseMessage;
import static ee.sm.ti.teis.servicerequest.UserType.OFFICIAL_USER;
import static ee.sm.ti.teis.servicerequest.UserType.PERSON;
import static ee.sm.ti.teis.types.enums.ObjectStatus.DELETED;
......@@ -41,8 +44,8 @@ import static java.util.Collections.singletonList;
import static java.util.UUID.randomUUID;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import static org.mockito.ArgumentMatchers.eq;
import static org.mockito.Mockito.*;
public class DeleteReconciliationGwListenerTest extends PaymentsAppTestBase implements ListenerDeleteRequestTestBase {
......@@ -59,6 +62,9 @@ public class DeleteReconciliationGwListenerTest extends PaymentsAppTestBase impl
@Autowired
ReconciliationDataService dataService;
@Autowired
RabbitTemplate msRabbitTemplate;
@MockBean
TaskServiceClient taskServiceClient;
......@@ -71,6 +77,12 @@ public class DeleteReconciliationGwListenerTest extends PaymentsAppTestBase impl
requestMetaDTO.setPrivileges(singletonList(TI_MANAGE_PAYMENTS.name()));
request = new DeleteReconciliationRequest();
GetPathResponseMessage pathResponseMessage = new GetPathResponseMessage();
pathResponseMessage.setPayload(UrlPath.builder().path("/url").build(), requestMetaDTO);
doReturn(pathResponseMessage)
.when(msRabbitTemplate)
.convertSendAndReceiveAsType(eq("domain.GetUrlPath.request"), any(Object.class), any());
}
@Override
......
......@@ -47,7 +47,7 @@ public class ClaimDataService {
private static final QClaimEntity claim = QClaimEntity.claimEntity;
private static final QPersonView personView = QPersonView.personView;
private static final QDataObjectReferenceEntity dataObjectReference = QDataObjectReferenceEntity.dataObjectReferenceEntity;
private static final OrderSpecifier defaultSort = new OrderSpecifier(Order.DESC, claim.issuedDate);
private static final OrderSpecifier<?> defaultSort = new OrderSpecifier<>(Order.DESC, claim.issuedDate);
public ClaimEntity save(ClaimEntity entity) {
return repository.save(entity);
......@@ -81,9 +81,9 @@ public class ClaimDataService {
}
public List<ClaimEntity> queryClaimsByIdAndDataObjectId(UUID claimId, UUID dataObjectId) {
JPAQuery<ClaimEntity> jpaQuery = new JPAQuery(entityManager);
JPAQuery<ClaimEntity> jpaQuery = new JPAQuery<>(entityManager);
QueryBase baseQuery = jpaQuery.from(claim)
QueryBase<JPAQuery<ClaimEntity>> baseQuery = jpaQuery.from(claim)
.leftJoin(dataObjectReference).on(dataObjectReference.claim.id.eq(claim.id))
.where(claim.objectStatus.eq(CURRENT)
.and(claim.status.eq(VALID)));
......@@ -103,9 +103,9 @@ public class ClaimDataService {
public List<ClaimEntity> queryClaimsDataObjectId(UUID dataObjectId) {
JPAQuery jpaQuery = new JPAQuery(entityManager);
JPAQuery<ClaimEntity> jpaQuery = new JPAQuery<>(entityManager);
QueryBase baseQuery = jpaQuery.from(claim)
QueryBase<JPAQuery<ClaimEntity>> baseQuery = jpaQuery.from(claim)
.leftJoin(dataObjectReference).on(dataObjectReference.claim.id.eq(claim.id))
.where(claim.objectStatus.eq(CURRENT)
.and(claim.status.eq(VALID)));
......@@ -121,9 +121,9 @@ public class ClaimDataService {
public List<ClaimEntity> queryAllClaimsDataObjectId(UUID dataObjectId) {
JPAQuery jpaQuery = new JPAQuery(entityManager);
JPAQuery<ClaimEntity> jpaQuery = new JPAQuery<>(entityManager);
QueryBase baseQuery = jpaQuery.from(claim)
QueryBase<JPAQuery<ClaimEntity>> baseQuery = jpaQuery.from(claim)
.leftJoin(dataObjectReference).on(dataObjectReference.claim.id.eq(claim.id));
if (dataObjectId != null) {
......@@ -166,12 +166,12 @@ public class ClaimDataService {
}
}
private PageRequest claimsQuerySorting(JPAQuery<ClaimEntity> baseQuery, PageRequest pageRequest) {
private void claimsQuerySorting(JPAQuery<ClaimEntity> baseQuery, PageRequest pageRequest) {
for (Sort.Order order : pageRequest.getSort()) {
if (order.getProperty().equals("person")) {
baseQuery.orderBy(new OrderSpecifier(Order.valueOf(order.getDirection().name()), personView.fullName));
baseQuery.orderBy(new OrderSpecifier<>(Order.valueOf(order.getDirection().name()), personView.fullName));
} else if (order.getProperty().equals("status")) {
baseQuery.orderBy(new OrderSpecifier(Order.valueOf(order.getDirection().name()), claim.balanceOrder));
baseQuery.orderBy(new OrderSpecifier<>(Order.valueOf(order.getDirection().name()), claim.balanceOrder));
} else {
Path<Object> path = Expressions.path(Object.class, claim, order.getProperty());
baseQuery.orderBy(new OrderSpecifier(Order.valueOf(order.getDirection().name()), path));
......@@ -180,6 +180,5 @@ public class ClaimDataService {
if (pageRequest.getSort().stream().noneMatch(o -> defaultSort.getTarget().toString().contains("." + o.getProperty()))) {
baseQuery.orderBy(defaultSort);
}
return pageRequest;
}
}
......@@ -37,8 +37,8 @@ public class ClaimNotifyService {
AuditLogItem auditLogItem = AuditLogItem.builder()
.activityType(activityType)
.dataObjectType(CLAIMS.name())
.parentDataObjectId(claimId)
.dataObjectId(claimId)
.parentDataObjectId(claimId.toString())
.dataObjectId(claimId.toString())
.build();
auditLogItem.setActivityDescription(messageSource.getAuditlogMessage(auditLogItem, reference));
......
......@@ -8,6 +8,7 @@ import ee.sm.ti.teis.domain.payments.claim.DataObjectReference;
import ee.sm.ti.teis.payments.claim.entity.ClaimDefinitionEntity;
import ee.sm.ti.teis.payments.claim.entity.ClaimEntity;
import ee.sm.ti.teis.payments.claim.entity.DataObjectReferenceEntity;
import ee.sm.ti.teis.payments.serviceclient.PathServiceClient;
import ee.sm.ti.teis.payments.serviceclient.TaskServiceClient;
import ee.sm.ti.teis.servicerequest.RequestMetaDTO;
import lombok.RequiredArgsConstructor;
......@@ -34,6 +35,7 @@ public class CreateClaimService {
private final TaskServiceClient taskServiceClient;
private final ClaimComposeService composeService;
private final ClaimValidationService validationService;
private final PathServiceClient pathServiceClient;
public Claim create(Claim domain, RequestMetaDTO requestMetaDTO) {
validationService.validateCreate(domain);
......@@ -49,6 +51,11 @@ public class CreateClaimService {
ClaimEntity savedEntity = dataService.save(entity);
dataObjectReferenceDataService.saveAll(dataObjectReferences);
if (savedEntity.getDataObjectReferences() != null && !savedEntity.getDataObjectReferences().isEmpty()) {
String path = pathServiceClient.getPath(savedEntity.getDataObjectReferences(), requestMetaDTO);
entity.setPath(path);
}
taskServiceClient.createTask(savedEntity, requestMetaDTO);
return composeService.composeDomain(savedEntity, requestMetaDTO);
......
......@@ -69,8 +69,8 @@ public class PaymentNotifyService {
return AuditLogItem.builder()
.activityType(activityType)
.dataObjectType(PAYMENTS.name())
.parentDataObjectId(payment.getId())
.dataObjectId(payment.getId())
.parentDataObjectId(payment.getId().toString())
.dataObjectId(payment.getId().toString())
.build();
}
......
......@@ -27,8 +27,8 @@ public class ReconciliationNotifyService {
AuditLogItem auditLogItem = AuditLogItem.builder()
.activityType(DELETE)
.dataObjectType(RECONCILIATIONS.name())
.parentDataObjectId(entity.getClaim().getId())
.dataObjectId(entity.getId())
.parentDataObjectId(entity.getClaim().getId().toString())
.dataObjectId(entity.getId().toString())
.build();
auditLogItem.setActivityDescription(messageSource.getAuditlogMessage(auditLogItem, entity.getClaim().getReference()));
......
package ee.sm.ti.teis.payments.serviceclient;
import ee.sm.ti.teis.ErrorDTO;
import ee.sm.ti.teis.domain.admin.GetUrlPath;
import ee.sm.ti.teis.domain.admin.PathDataObjectReference;
import ee.sm.ti.teis.domain.admin.UrlPath;
import ee.sm.ti.teis.domainrequest.DomainRequestDTO;
import ee.sm.ti.teis.domainrequest.DomainResponseDTO;
import ee.sm.ti.teis.errors.CommonErrorCode;
import ee.sm.ti.teis.exceptions.TeisBusinessException;
import ee.sm.ti.teis.payments.claim.entity.DataObjectReferenceEntity;
import ee.sm.ti.teis.servicerequest.RequestMetaDTO;
import ee.sm.ti.teis.types.enums.classifier.ObjectType;
import lombok.RequiredArgsConstructor;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.core.ParameterizedTypeReference;
import org.springframework.stereotype.Service;
import java.util.List;
import static ee.sm.ti.teis.types.enums.classifier.ObjectType.getObjectTypeCode;
import static java.util.stream.Collectors.toList;
@Service
@RequiredArgsConstructor
public class PathServiceClient {
private final RabbitTemplate msRabbitTemplate;
public String getPath(List<DataObjectReferenceEntity> references, RequestMetaDTO requestMetaDTO) {
GetPathRequestMessage request = new GetPathRequestMessage();
List<PathDataObjectReference> pathDataObjectReferences = references.stream()
.map(reference -> PathDataObjectReference.builder()
.id(reference.getDataObjectId())
.objectType(ObjectType.valueOf(getObjectTypeCode(reference.getDataObjectType()))).build())
.collect(toList());
GetUrlPath payload = GetUrlPath.builder()
.references(pathDataObjectReferences)
.build();
request.setPayload(payload, requestMetaDTO);
ParameterizedTypeReference<GetPathResponseMessage> responseType = ParameterizedTypeReference.forType(GetPathResponseMessage.class);
GetPathResponseMessage response = msRabbitTemplate.convertSendAndReceiveAsType(request.routingKey(), request, responseType);
if (response != null) {
return response.processResponse().getPath();
}
throw new TeisBusinessException(CommonErrorCode.SYSTEM_ERROR, "No response from path service.");
}
public static class GetPathRequestMessage extends DomainRequestDTO<GetUrlPath, ErrorDTO> {
}
public static class GetPathResponseMessage extends DomainResponseDTO<UrlPath, ErrorDTO> {
}
}
......@@ -36,7 +36,7 @@ import static ee.sm.ti.teis.types.enums.TaskStatusType.TODO;
import static ee.sm.ti.teis.types.enums.classifier.ObjectType.CLAIM_PAYMENT;
@Service
public class TaskServiceClient extends TeisRabbitClient {
public class TaskServiceClient extends TeisRabbitClient<Task> {
private final SimpleMessageSource messageSource;
private final ClassifierService classifierService;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment