Class InstanceReportManager

java.lang.Object
com.jalios.jcms.admin.instancereport.InstanceReportManager
All Implemented Interfaces:
JPropertiesListener

public class InstanceReportManager extends Object implements JPropertiesListener
  • Method Details

    • getInstance

      public static InstanceReportManager getInstance()
    • 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
    • isSensitiveProperty

      public boolean isSensitiveProperty(String propertyName)
    • sendEmail

      public void sendEmail()
    • sendEmailNow

      public boolean sendEmailNow()
      Sends the instance report e-mail immediately, bypassing the schedule check (shouldSendToday) and the InstanceReportConstants.INSTANCE_REPORT_PROP flag. The main recipients receive the encrypted report and, if the main e-mail was sent successfully, the client recipients receive the plain copy, as for the scheduled sending. The last-send-date tracking file is not updated, so that the schedule is not affected. Intended for integrators and support to test the feature (e.g. via the REST endpoint) without waiting for the alarm.
      Returns:
      true if the main (encrypted) e-mail was sent successfully, false otherwise (see logs for details)