jadeReportWriterCheck

jadeReportWriterCheck(userObject: Object): Boolean;

The jadeReportWriterCheck method of the Object class returns true by default.

To implement instance-based security for JADE Report Writer reports, reimplement this method in the appropriate user classes to check property values of an object against the current user access, to determine if the user has visibility to that object during the query phase of the JADE Report Writer process.

If a report references an object from the selected object, this method is called for the referenced object but the result is ignored.

Use the userObject parameter to specify details of the current user for checking in your reimplementation of this method. This enables you to use this object instance instead of checking for a transient instance of the app system variable or an equivalent, which may not be the correct instance when the report query is run in a separate process or on a server node.

This method returns true if the user has visibility or it returns false if the user does not have access to the object.

For more details about implementing security in JADE Report Writer reports, see "JadeReportWriterManager Class", "JadeReportWriterSecurity Class", and the setSecurityObject method of the JadeReportWriterManager class, earlier in this chapter.