Class SubmissionDeliveryControllerService

    • Field Detail

      • PARAM_EMAIL_ESCALATION_AGE

        public static final String PARAM_EMAIL_ESCALATION_AGE
        String property to store email escalation time in hours
        See Also:
        Constant Field Values
      • PARAM_SECURE_EMAIL_REMINDER_AGE

        public static final String PARAM_SECURE_EMAIL_REMINDER_AGE
        String property to store secure email reminder time in hours
        See Also:
        Constant Field Values
    • Constructor Detail

      • SubmissionDeliveryControllerService

        public SubmissionDeliveryControllerService()
    • Method Detail

      • getEmailDeliveryMaxRetryAttempts

        public Integer getEmailDeliveryMaxRetryAttempts()
        Return the maximum number of delivery attempts for email delivery (including email secure).
        Returns:
        the maximum number of delivery attempts (1 = only one delivery attempt is made, no retries happen if this fails)
        Since:
        4.0.1
      • setEmailDeliveryMaxRetryAttempts

        public void setEmailDeliveryMaxRetryAttempts​(Integer emailDeliveryMaxRetryAttempts)
        Set the maximum number of delivery attempts for email delivery (including email secure).
        Parameters:
        emailDeliveryMaxRetryAttempts - the maximum number of delivery attempts (1 = only one delivery attempt is made, no retries happen if this fails)
        Since:
        4.0.1
      • getEmailDeliveryRetryInterval

        public Integer getEmailDeliveryRetryInterval()
        Return the interval in minutes between retries for failed email delivery (including email secure).
        Returns:
        the interval in minutes between email delivery attempts
        Since:
        4.0.1
      • setEmailDeliveryRetryInterval

        public void setEmailDeliveryRetryInterval​(Integer emailDeliveryRetryInterval)
        Set the interval in minutes between retries for failed email delivery (including email secure).
        Parameters:
        emailDeliveryRetryInterval - the interval in minutes between email delivery attempts
        Since:
        4.0.1
      • getDeliveryEmailEscalationSubject

        public String getDeliveryEmailEscalationSubject()
        Return the email subject for late secure submission delivery escalation emails.
        Returns:
        the email subject for late secure submission delivery escalation emails.
      • setDeliveryEmailEscalationSubject

        public void setDeliveryEmailEscalationSubject​(String newSubject)
        Set the email subject for late secure submission delivery escalation emails.
        Parameters:
        newSubject - the email subject for late secure submission delivery escalation emails.
      • getDeliveryEmailEscalationMessage

        public String getDeliveryEmailEscalationMessage()
        Return The email message for late secure submission delivery escalation emails.
        Returns:
        the email message for late secure submission delivery escalation emails.
      • setDeliveryEmailEscalationMessage

        public void setDeliveryEmailEscalationMessage​(String newMessage)
        Set The email message for late secure submission delivery escalation emails.
        Parameters:
        newMessage - the email message for late secure submission delivery escalation emails.
      • setDeliveryEmailEscalationAgeHours

        public void setDeliveryEmailEscalationAgeHours​(String newAge)
        Set The maximum age in hours before late secure submission delivery escalation emails.
        Parameters:
        newAge - the maximum age in hours before late secure submission delivery escalation emails.
      • getStandardEmailDeliveryMessage

        public String getStandardEmailDeliveryMessage()
        Return The email message for standard submission delivery emails.
        Returns:
        the email message for standard submission delivery emails.
      • setStandardEmailDeliveryMessage

        public void setStandardEmailDeliveryMessage​(String newMessage)
        Set The email message for standard submission delivery emails.
        Parameters:
        newMessage - the email message for standard submission delivery emails.
      • getStandardEmailDeliverySubject

        public String getStandardEmailDeliverySubject()
        Return The email subject for standard submission delivery emails.
        Returns:
        the email subject for standard submission delivery emails.
      • setStandardEmailDeliverySubject

        public void setStandardEmailDeliverySubject​(String newSubject)
        Set The email subject for standard submission delivery emails.
        Parameters:
        newSubject - the email subject for standard submission delivery emails.
      • getSecureEmailDeliverySubject

        public String getSecureEmailDeliverySubject()
        Return The email subject for secure submission delivery emails.
        Returns:
        the email subject for secure submission delivery emails.
      • setSecureEmailDeliverySubject

        public void setSecureEmailDeliverySubject​(String newSubject)
        Set The email subject for secure submission delivery emails.
        Parameters:
        newSubject - the email subject for secure submission delivery emails.
      • getSecureEmailDeliveryMessage

        public String getSecureEmailDeliveryMessage()
        Return The email message for secure submission delivery emails.
        Returns:
        the email message for secure submission delivery emails.
      • setSecureEmailDeliveryMessage

        public void setSecureEmailDeliveryMessage​(String newMessage)
        Set The email message for secure submission delivery emails.
        Parameters:
        newMessage - the email message for secure submission delivery emails.
      • getSecureEmailReminderSubject

        public String getSecureEmailReminderSubject()
        Return The email subject for secure submission delivery reminder emails.
        Returns:
        the email subject for secure submission delivery reminder emails.
      • setSecureEmailReminderSubject

        public void setSecureEmailReminderSubject​(String newSubject)
        Set The email subject for secure submission delivery reminder emails.
        Parameters:
        newSubject - the email subject for secure submission delivery reminder emails.
      • getSecureEmailReminderMessage

        public String getSecureEmailReminderMessage()
        Return The email message for secure submission delivery reminder emails.
        Returns:
        the email message for secure submission delivery reminder emails.
      • setSecureEmailReminderMessage

        public void setSecureEmailReminderMessage​(String newMessage)
        Set The email message for secure submission delivery reminder emails.
        Parameters:
        newMessage - the email message for secure submission delivery reminder emails.
      • setSecureEmailReminderAgeHours

        public void setSecureEmailReminderAgeHours​(String newAge)
        Set The maximum age in hours before secure submission delivery reminder emails are sent out.
        Parameters:
        newAge - the maximum age in hours before secure submission delivery reminder emails are sent out.
      • deliverViaEmail

        protected String deliverViaEmail​(Submission submission,
                                         DeliveryDetails deliveryDetails)
        Deliver the given submission via email using the delivery details provided.
      • deliverViaEmailSecure

        protected String deliverViaEmailSecure​(Submission submission,
                                               DeliveryDetails deliveryDetails)
        Deliver the given submission via email using the delivery details provided.
      • deliverViaDeliveryProcess

        protected String deliverViaDeliveryProcess​(Submission submission,
                                                   DeliveryDetails deliveryDetails,
                                                   IDeliveryProcessService deliveryProcess,
                                                   String deliveryServiceName)
                                            throws Exception
        Deliver the given submission via Delivery Process using the delivery details provided. Note that for abandoned submissions, the delivery details will be null.
        Throws:
        Exception