Class SignOffNotificationService
- java.lang.Object
-
- com.activeviam.risk.ref.signoff.service.impl.SignOffNotificationService
-
- All Implemented Interfaces:
com.activeviam.signoff.core.service.INotificationService
public class SignOffNotificationService extends Object implements com.activeviam.signoff.core.service.INotificationService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
SignOffNotificationService.MessageDTO
-
Field Summary
Fields Modifier and Type Field Description static String
ACTIVEMONITOR_REST_URL
ActiveMonitor REST URL propertyString
activeMonitorRestUrl
protected org.springframework.core.env.Environment
env
protected static Logger
LOGGER
static String
SEND_MESSAGE_PATH
-
Constructor Summary
Constructors Constructor Description SignOffNotificationService(org.springframework.core.env.Environment env)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getActivemonitorRestUrl()
Retrieves the ActiveMonitor REST URLvoid
notifyApproval(com.activeviam.signoff.core.mandate.IMandate mandate, com.activeviam.signoff.core.mandate.IMandateStatus before, com.activeviam.signoff.core.mandate.IMandateStatus after)
void
notifyCancel(com.activeviam.signoff.core.mandate.IMandate mandate, com.activeviam.signoff.core.mandate.IMandateStatus before, com.activeviam.signoff.core.mandate.IMandateStatus after)
void
notifyPending(com.activeviam.signoff.core.mandate.IMandate mandate, com.activeviam.signoff.core.mandate.IMandateStatus before, com.activeviam.signoff.core.mandate.IMandateStatus after)
void
notifyRejection(com.activeviam.signoff.core.mandate.IMandate mandate, com.activeviam.signoff.core.mandate.IMandateStatus before, com.activeviam.signoff.core.mandate.IMandateStatus after)
void
notifyRollback(com.activeviam.signoff.core.mandate.IMandate mandate, com.activeviam.signoff.core.mandate.IMandateStatus before, com.activeviam.signoff.core.mandate.IMandateStatus after)
-
-
-
Field Detail
-
env
protected org.springframework.core.env.Environment env
-
LOGGER
protected static final Logger LOGGER
-
ACTIVEMONITOR_REST_URL
public static final String ACTIVEMONITOR_REST_URL
ActiveMonitor REST URL property- See Also:
- Constant Field Values
-
SEND_MESSAGE_PATH
public static final String SEND_MESSAGE_PATH
- See Also:
- Constant Field Values
-
activeMonitorRestUrl
public final String activeMonitorRestUrl
-
-
Method Detail
-
notifyPending
public void notifyPending(com.activeviam.signoff.core.mandate.IMandate mandate, com.activeviam.signoff.core.mandate.IMandateStatus before, com.activeviam.signoff.core.mandate.IMandateStatus after)
- Specified by:
notifyPending
in interfacecom.activeviam.signoff.core.service.INotificationService
-
notifyCancel
public void notifyCancel(com.activeviam.signoff.core.mandate.IMandate mandate, com.activeviam.signoff.core.mandate.IMandateStatus before, com.activeviam.signoff.core.mandate.IMandateStatus after)
- Specified by:
notifyCancel
in interfacecom.activeviam.signoff.core.service.INotificationService
-
notifyApproval
public void notifyApproval(com.activeviam.signoff.core.mandate.IMandate mandate, com.activeviam.signoff.core.mandate.IMandateStatus before, com.activeviam.signoff.core.mandate.IMandateStatus after)
- Specified by:
notifyApproval
in interfacecom.activeviam.signoff.core.service.INotificationService
-
notifyRejection
public void notifyRejection(com.activeviam.signoff.core.mandate.IMandate mandate, com.activeviam.signoff.core.mandate.IMandateStatus before, com.activeviam.signoff.core.mandate.IMandateStatus after)
- Specified by:
notifyRejection
in interfacecom.activeviam.signoff.core.service.INotificationService
-
notifyRollback
public void notifyRollback(com.activeviam.signoff.core.mandate.IMandate mandate, com.activeviam.signoff.core.mandate.IMandateStatus before, com.activeviam.signoff.core.mandate.IMandateStatus after)
- Specified by:
notifyRollback
in interfacecom.activeviam.signoff.core.service.INotificationService
-
getActivemonitorRestUrl
protected String getActivemonitorRestUrl()
Retrieves the ActiveMonitor REST URL- Returns:
- the ActiveMonitor REST URL
-
-