Class SignOffNotificationService

  • All Implemented Interfaces:
    com.activeviam.signoff.core.service.INotificationService

    public class SignOffNotificationService
    extends Object
    implements com.activeviam.signoff.core.service.INotificationService
    • 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 URL
      void 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
      • activeMonitorRestUrl

        public final String activeMonitorRestUrl
    • Constructor Detail

      • SignOffNotificationService

        public SignOffNotificationService​(org.springframework.core.env.Environment env)
    • 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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.activeviam.signoff.core.service.INotificationService
      • getActivemonitorRestUrl

        protected String getActivemonitorRestUrl()
        Retrieves the ActiveMonitor REST URL
        Returns:
        the ActiveMonitor REST URL