Class InstanceReportManager
java.lang.Object
com.jalios.jcms.admin.instancereport.InstanceReportManager
- All Implemented Interfaces:
JPropertiesListener
-
Method Summary
Modifier and TypeMethodDescriptionstatic InstanceReportManagerbooleanisSensitiveProperty(String propertyName) voidpropertiesChange(JProperties properties) Invoked after properties have been modified in JCMS and save on disk.voidbooleanSends the instance report e-mail immediately, bypassing the schedule check (shouldSendToday) and theInstanceReportConstants.INSTANCE_REPORT_PROPflag.
-
Method Details
-
getInstance
-
propertiesChange
Description copied from interface:JPropertiesListenerInvoked 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.getPropertiesorchannel.getProperty.- Specified by:
propertiesChangein interfaceJPropertiesListener- Parameters:
properties- the properties which have been submitted to change
-
isSensitiveProperty
-
sendEmail
public void sendEmail() -
sendEmailNow
public boolean sendEmailNow()Sends the instance report e-mail immediately, bypassing the schedule check (shouldSendToday) and theInstanceReportConstants.INSTANCE_REPORT_PROPflag. 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)
-