Commit f1edacc1 authored by Siiri Tann's avatar Siiri Tann
Browse files

Merge branch 'develop' into 'master'

Release: merge 'develop' into 'master' created by Siiri Tann

See merge request teis/auth-service!86
parents b9107708 1dd1a2ca
# Changelog
## [2.1.1] - 2022-08-29
* fixed XroadArServiceClient
## [2.1.0] - 2022-08-12
* tech.debt: replaced RepresentativesServiceClient, XroadArServiceClient and XroadTorServiceClient with commons' serviceClients
* tech.debt: replaced RepresentativesServiceClient, XroadArServiceClient and XroadTorServiceClient with commons'
serviceClients
## [2.0.0] - 2022-06-20
......
theGroup=ee.sm.ti.teis
theVersion=2.1.0
commonsVersion=2.6.0
theVersion=2.1.1
commonsVersion=2.7.0
commonApiGatewayVersion=2.5.0
schedulerVersion=2.0.0
pluginVersion=2.3.0
......@@ -2,10 +2,6 @@ package ee.sm.ti.teis.authorization.representative;
import ee.sm.ti.teis.authorization.classifier.ClassifierMapper;
import ee.sm.ti.teis.authorization.person.SelectedRepresentationService;
import ee.sm.ti.teis.authorization.rabbit.QueueConfig;
import ee.sm.ti.teis.authorization.rabbit.QueueConfig.RepresentativeCreatedMessage;
import ee.sm.ti.teis.authorization.rabbit.QueueConfig.RepresentativeDeletedMessage;
import ee.sm.ti.teis.authorization.rabbit.QueueConfig.RepresentativeUpdatedMessage;
import ee.sm.ti.teis.cache.classifier.ClassifierService;
import ee.sm.ti.teis.commongateway.auth.UserCompanyDto;
import ee.sm.ti.teis.commongateway.classifier.ClassifierItemLightDto;
......@@ -17,6 +13,8 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;
import static ee.sm.ti.teis.authorization.rabbit.QueueConfig.*;
@Component
@Slf4j
@RequiredArgsConstructor
......@@ -26,17 +24,17 @@ public class RepresentativeMsListener {
private final ClassifierService classifierService;
private final ClassifierMapper classifierMapper;
@RabbitListener(queues = {QueueConfig.MS_REPRESENTATIVE_DELETED_QUEUE})
@RabbitListener(queues = {MS_REPRESENTATIVE_DELETED_QUEUE})
public void delete(RepresentativeDeletedMessage request) {
updateCachedRepresentative(request.getPayload(), request.getRequestMetaDTO());
}
@RabbitListener(queues = {QueueConfig.MS_REPRESENTATIVE_CREATED_QUEUE})
@RabbitListener(queues = {MS_REPRESENTATIVE_CREATED_QUEUE})
public void create(RepresentativeCreatedMessage request) {
updateCachedRepresentative(request.getPayload(), request.getRequestMetaDTO());
}
@RabbitListener(queues = {QueueConfig.MS_REPRESENTATIVE_UPDATED_QUEUE})
@RabbitListener(queues = {MS_REPRESENTATIVE_UPDATED_QUEUE})
public void update(RepresentativeUpdatedMessage request) {
updateCachedRepresentative(request.getPayload(), request.getRequestMetaDTO());
}
......
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