Class OnTLSCertApplyCreatedEvent.Handler
java.lang.Object
com.sankcrm.erp.event.AbstractEventHandler<TLSCertApplyCreatedEvent>
com.sankcrm.erp.apisix.event.tlscert.apply.OnTLSCertApplyCreatedEvent.Handler
- All Implemented Interfaces:
com.sankcrm.erp.event.EventHandler<TLSCertApplyCreatedEvent>
- Enclosing interface:
OnTLSCertApplyCreatedEvent
@Component("tlsCertApplyCreatedEventHandler")
public static class OnTLSCertApplyCreatedEvent.Handler
extends com.sankcrm.erp.event.AbstractEventHandler<TLSCertApplyCreatedEvent>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TLSCertApplyapply(TLSCertApplyCreatedEvent event) protected Optional<TLSCertApply> applyOpt(TLSCertApplyId applyId) protected Optional<TLSCertApply> applyOpt(TLSCertApplyCreatedEvent event) protected Optional<TLSCertificate> certificate(TLSCertificateId tlsCerId) protected voidhand(TLSCertApplyCreatedEvent event, com.sankcrm.erp.bus.exception.CommandInvalidException throwable) protected voidhand(TLSCertApplyCreatedEvent event, com.sankcrm.erp.domain.exception.EntityExistException throwable) protected voidhand(TLSCertApplyCreatedEvent event, com.sankcrm.erp.domain.exception.EntityNoneException throwable) protected voidhand(TLSCertApplyCreatedEvent event, Exception throwable) protected TLSCertApplyhandle(TLSCertApply oldApply, TLSCertApplyCreatedEvent event) voidhandle(TLSCertApplyCreatedEvent event) protected Stringstage()Methods inherited from class com.sankcrm.erp.event.AbstractEventHandler
handConcurrency, isConcurrency, logger, tryHandle
-
Constructor Details
-
Handler
public Handler()
-
-
Method Details
-
handle
protected TLSCertApply handle(TLSCertApply oldApply, TLSCertApplyCreatedEvent event) throws com.sankcrm.erp.common.exception.CoreException - Throws:
com.sankcrm.erp.common.exception.CoreException
-
applyOpt
-
stage
-
apply
-
applyOpt
-
certificate
-
handle
public void handle(TLSCertApplyCreatedEvent event) throws com.sankcrm.erp.common.exception.CoreException - Throws:
com.sankcrm.erp.common.exception.CoreException
-
hand
protected void hand(TLSCertApplyCreatedEvent event, Exception throwable) throws com.sankcrm.erp.common.exception.CoreException - Overrides:
handin classcom.sankcrm.erp.event.AbstractEventHandler<E extends com.sankcrm.erp.event.Event>- Throws:
com.sankcrm.erp.common.exception.CoreException
-
hand
protected void hand(TLSCertApplyCreatedEvent event, com.sankcrm.erp.domain.exception.EntityNoneException throwable) throws com.sankcrm.erp.common.exception.CoreException - Overrides:
handin classcom.sankcrm.erp.event.AbstractEventHandler<E extends com.sankcrm.erp.event.Event>- Throws:
com.sankcrm.erp.common.exception.CoreException
-
hand
protected void hand(TLSCertApplyCreatedEvent event, com.sankcrm.erp.domain.exception.EntityExistException throwable) throws com.sankcrm.erp.common.exception.CoreException - Overrides:
handin classcom.sankcrm.erp.event.AbstractEventHandler<E extends com.sankcrm.erp.event.Event>- Throws:
com.sankcrm.erp.common.exception.CoreException
-
hand
protected void hand(TLSCertApplyCreatedEvent event, com.sankcrm.erp.bus.exception.CommandInvalidException throwable) throws com.sankcrm.erp.common.exception.CoreException - Overrides:
handin classcom.sankcrm.erp.event.AbstractEventHandler<E extends com.sankcrm.erp.event.Event>- Throws:
com.sankcrm.erp.common.exception.CoreException
-