Class IncomingMailListener

    • Field Detail

      • NO_CHECK

        public static final java.lang.Integer NO_CHECK
      • CHECK_IS_MEMBER

        public static final java.lang.Integer CHECK_IS_MEMBER
      • CHECK_IS_MEMBER_SINGLE

        public static final java.lang.Integer CHECK_IS_MEMBER_SINGLE
      • CHECK_IS_AUTHKEY

        public static final java.lang.Integer CHECK_IS_AUTHKEY
      • CHECK_IS_THREAD

        public static final java.lang.Integer CHECK_IS_THREAD
    • Constructor Detail

      • IncomingMailListener

        public IncomingMailListener()
    • Method Detail

      • removeMailPattern

        public void removeMailPattern​(java.lang.String pattern)
        Remove pattern previously added
        Parameters:
        pattern - String Regexp (eg .+@jcms.company.com)
      • listAllPatterns

        public java.util.Map<java.lang.String,​java.lang.String> listAllPatterns()
        Returns a Map of String pattern/check that can be used to display IncomingMailListener status
        Returns:
        Map of pattern description
      • propertiesChange

        public void propertiesChange​(JProperties properties)
        Description copied from interface: JPropertiesListener
        Invoked after properties have been modified in JCMS and save on disk.

        You cannot alter the value received in parameters.

        Note that properties parameter may be null, a limited set of site properties, or all site properties.

        To check that a property has been modified, reload the "current" property instead using channel.getProperties or channel.getProperty.

        Specified by:
        propertiesChange in interface JPropertiesListener
        Parameters:
        properties - the properties which have been submitted to change
      • validateContext

        protected boolean validateContext()
        Returns:
        true if context (channel,...) is in a valid state for fetching Message.
        Since:
        jcms-9.0.0