The default appearance of the JasperReports Server user interface (UI) can easily be modified to suit your needs.
The UI's appearance is based on CSS (Cascading Style Sheets). A theme is a collection of CSS files and associated images that specify the appearance for all or part of the UI. A theme controls only the UI's looks--fonts, colors, lines, spacing, and images. It has no effect on content or functionality.
Themes are defined globally at the repository root and individually for each organization. Only administrators can set the theme. Administrators can add, upload, edit, copy, and delete the files that make up the theme, just like other resources in the repository. The repository allows special actions on theme folders for downloading and uploading themes as ZIP (compressed archive) files, and for activating the theme.
Themes are fully integrated with the multi-organization architecture in JasperReports Server. Some features of themes discussed in this chapter apply only to deployments that are licensed to use multiple organizations. However, single-organization deployments use the same architecture, for example there are overrides and inheritance between themes in the single default organization and the system root. |
Themes are hierarchical and very flexible, allowing administrators to easily change the global appearance or set organization-specific overrides. For example, all of the following scenarios are possible with themes:
Scenario | Description |
Use the default theme unchanged. | If the default theme suits your needs, there's no need to customize it or develop new themes. After a standard installation, the default theme is set at the root level and is automatically inherited by all organizations so every user sees the server with this interface |
Quickly modify the default theme. | You can specify overrides of individual CSS rules or replace images in the system theme. It's easy to create or upload the new files and activate customizations. Your new theme is uploaded in real time and inheritance ensures that every organization sees it at once. |
Create an entirely new theme. | With CSS experience or Jaspersoft Professional Services, you can change the entire look and feel of the server. You can tailor the server to match or blend with nearly any other web design. Inheritance again ensures that every organization uses the new theme, while allowing you to manage it from a single set of files. |
Override themes to customize the UI for each organization. | You can give each organization or suborganization a customization of the default theme, for example a new logo, while retaining all other aspects of the system theme. The benefit of this approach is that the system theme can still be modified and inherited by all organizations, while retaining each organization's overrides. This approach can be combined with the previous one, so overrides are applied to the custom theme. |
Create a new theme in each organization. | For SaaS vendors, each organization can be a different client that needs a special interface. Themes allow each organization to fully define the UI and still retain override and inheritance for its own suborganizations. In such deployments, each organization admin can modify or create the appearance of his own user interface. |
Recommended Comments
There are no comments to display.