psdi.common.emailstner

Interface LSNRPreprocessor

  • All Known Implementing Classes:
    Preprocessor


    public interface LSNRPreprocessor
    preprocessor class for email listener. This class checks the subject of the email and finds out if a mail is new or not.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      java.lang.String getObjectKey(java.lang.String del, java.lang.String subject)
      Returns the object key.
      boolean isNewEmail(java.lang.String del, java.lang.String subject)
      Checks if the mail is a new mail or not If the subject doesn't contain the delimiter then its a new mail else it is a reply to the outbound mail
    • Method Detail

      • isNewEmail

        boolean isNewEmail(java.lang.String del,
                           java.lang.String subject)
                    throws java.lang.Exception
        Checks if the mail is a new mail or not If the subject doesn't contain the delimiter then its a new mail else it is a reply to the outbound mail
        Parameters:
        del -
        subject -
        Returns:
        true if new email else false
        Throws:
        java.lang.Exception
      • getObjectKey

        java.lang.String getObjectKey(java.lang.String del,
                                      java.lang.String subject)
                               throws java.lang.Exception
        Returns the object key. Parse the subject of the email and get the key value If the subject contains ##KEY## then return the key. In this case ## is the object key delimiter
        Parameters:
        del -
        subject -
        Returns:
        Key value
        Throws:
        java.lang.Exception