Setting Security for Your Jade Reports

You can dynamically define runtime access to the Jade Report Writer applications by implementing the required security rules in a subclass of the JadeReportWriterSecurity class in the schema from which the Jade Report Writer is run.

Using the methods provided by the JadeReportWriterSecurity class, you can set access security to the applications individually and also set access security to various parts of the applications; for example, specific folders, specific reports, and the maintenance of system formats.

By utilizing the folders feature of the Jade Report Writer, you have a ready means of maintaining a security system that ensures that users can access only the reports to which they have been assigned access permission. The canAccessFolder method enables you to assign users to or restrict users from accessing specific folders. Example code is provided later in this chapter.

The folderDeleted, folderPathChanged, reportDeleted, reportNameChanged, and viewDeleted methods inform the host system that a folder, report, or view has changed. You can reimplement these methods to automatically create a security access entry for the values specified in the method parameters so that the user can then access and maintain the folder, report, or view.

For full details about the JadeReportWriterSecurity class, see Chapter 1 of the Encyclopaedia of Classes, Volume 1.