JReport Designer allows you to allocate security permissions to different principles (users, groups and roles), and thus you can make the cube elements in a business/report cube available only for some special principles.
To configure security for a business/report cube, follow the procedures below:
Before you can configure security for a business/report cube, you first need to define the principles. To do this, in the Business/Report Cube Editor window, click Tools > Security Configuration to display the Security Configuration dialog. You can either add principles manually or import them from JReport Enterprise 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 principle can view the business/report cube element in the resource tree of JReport Web 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.
Note: You can 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 principle specified to the business/report cube, the Security Configuration dialog will be displayed automatically for you to add or import principles.