canAccessViewClass
canAccessViewClass(userName: String; viewName: String; className: String): Integer;
The canAccessViewClass method of the JadeReportWriterSecurity class controls the visibility of view classes in the JADE Report Writer Designer application. This method returns the type of access that the user specified in the userName parameter has to the view specified in the viewName parameter for the class specified in the className parameter when the user attempts to access a report over that view class.
Reports can be based only on root collections over classes to which the specified user has access, and references to classes at the time the report is designed are displayed only if access to the referenced class is allowed by this method.
By default, users have full access to views over all classes in the JADE Report Writer Designer application. When the return value of this method is checked at the time class references are displayed for selection, classes to which the user does not have the appropriate type of access are not listed as available for selection. If the user has read-only access, displayed classes can be accessed only in read-only mode, and the user cannot change values. For details about the integer values that can be returned by this method, see "JadeReportWriterSecurity Class Constants", earlier in this chapter.