src/main/java/com/mt/access/application/endpoint/EndpointApplicationService.java
/**
     * refresh proxy when referred cors profile is updated
     *
     * @param deserialize
     */
refresh proxy when referred cors profile is updated
@param deserialize
refresh proxy when referred cors profile is updated @param deserialize
@SubscribeForEvent
    @Transactional
    public void handle(CORSProfileUpdated deserialize) {
        ApplicationServiceRegistry.getApplicationServiceIdempotentWrapper().idempotent(deserialize.getId().toString(), (ignored) -> {
            log.debug("handle cors profile updated");
            CORSProfileId corsProfileId = new CORSProfileId(deserialize.getDomainId().getDomainId());
            SumPagedRep<Endpoint> endpointSumPagedRep = DomainRegistry.getEndpointRepository().endpointsOfQuery(new EndpointQuery(corsProfileId));
            if (endpointSumPagedRep.findFirst().isPresent()) {
                DomainEventPublisher.instance().publish(new EndpointCollectionModified());
            }
            return null;
        }, ENDPOINT);
    }
@ SubscribeForEvent @ Transactional public void handle ( CORSProfileUpdated deserialize ) { ApplicationServiceRegistry . getApplicationServiceIdempotentWrapper ( ) . idempotent ( deserialize . getId ( ) . toString ( ) , ( ignored ) -> { log . debug ( "handle cors profile updated" ) ; CORSProfileId corsProfileId = new CORSProfileId ( deserialize . getDomainId ( ) . getDomainId ( ) ) ; SumPagedRep < Endpoint > endpointSumPagedRep = DomainRegistry . getEndpointRepository ( ) . endpointsOfQuery ( new EndpointQuery ( corsProfileId ) ) ; if ( endpointSumPagedRep . findFirst ( ) . isPresent ( ) ) { DomainEventPublisher . instance ( ) . publish ( new EndpointCollectionModified ( ) ) ; } return null ; } , ENDPOINT ) ; }
refresh proxy when referred cors profile is updated
 @param deserialize
refresh proxy when referred cors profile is updated @param deserialize