JReport Designer allows you to allocate security permissions to different principals (users, groups and roles), and thus you can make the cube elements in a business/report cube available only for some special principals.
To configure security for a business/report cube, follow the procedure below:
Before you can configure security for a business/report cube, you first need to define the principals. To do this, in the Business/Report Cube Editor window, click Tools > Security Configuration to display the Security Configuration dialog. You can either add principals manually or import them from JReport Server. See the dialog.
To set permissions to the cube elements of a business/report cube, follow the steps below:
The Visible permission controls whether a principal can view the business/report cube element in the resource tree of JReport Viewer and whether he or she can perform actions based on the element. These actions include inserting, removing, grouping by, drilling down, drilling to, and drilling to by value. Filtering and sorting are not under security control.
When you save the catalog, the permission settings are also saved and they are saved in an authorization file in the same folder as the catalog file. The catalog and authorization files have the same file name but different extensions, for example, if the catalog file is test.cat, the authorization file will be named test.auth. The authorization file is loaded by the cube authorization manager of its catalog during runtime.
Tip: You can also configure security for categories and cube elements when creating them, that is, in the Category Property or Add Cube Element dialog, switch to the Security tab, and then set the permissions as above. If there is no principal specified to the business/report cube, the Security Configuration dialog will be displayed automatically for you to add or import principals.