canDeleteReport

canDeleteReport(userName:   String;
                reportName: String): Integer;

The canDeleteReport method of the JadeReportWriterSecurity class returns the type of access that the user specified in the userName parameter has to the report specified in the reportName parameter when the user attempts to delete the report. This method is automatically called from the JADE Report Writer Designer application for the Delete Report form before displaying reports that are available for deletion.

If the method does not return the JadeReportWriterSecurity class FULL_ACCESS constant value, the report is not displayed and therefore cannot be deleted. As all users can delete all reports by default, the default implementation of this method returns FULL_ACCESS. Reimplement this method in your JadeReportWriterSecurity subclass to return NO_ACCESS (0) for reports that specified users cannot delete.