Jump to content
  • This documentation is an older version of JasperReports Server Administration Guide. View the latest documentation.

    Administrators and users with the proper permissions can create, modify, move, and delete folders and resources in the repository. The specific roles and permissions of the user determine the actions available. For the definition of the permissions on folders and resources, see Permissions.

    One responsibility of a JasperReports Server administrator is to set up an environment for users to create and save dashboards, Ad Hoc views, and reports. That usually means creating a folder structure where users have write permission. Users with write permission can also create their own sub-folders to store their reports and dashboards.

    Only administrators can create shared data sources and other resources in the repository. So, although users with write permission can upload JRXML files and define resources inside JasperReports, they can't add these resources to the repository and share them. For this reason, we recommend that administrators create shared data sources and resources in the repository. For example, updating one shared logo file is better than many users editing their reports.

    Resource IDs

    Each resource, including each folder, has an ID, a name, and an optional description:

    The ID is used internally to reference a resource. The ID must be unique within its folder, but may exist in multiple folders.
    The resource name is displayed in the repository.
    The description, if defined, appears in the repository and in tooltips.

    As in a file system, the IDs of nested folders containing a resource define the path to the resource. For example, the path to a report might be: /reports/samples/Freight. The path of every resource is shown under its name in the repository listing or search results.

    To view the name and resource ID of a resource, Right click the folder's name or the resource in the repository or search results and select Properties... from the context menu.

    js-Repository-Properties_332x283.png.17a4a34feebb5383625544217b060993.png

    Resource Properties Dialog for a Writable Resource

    If you have write or administer permission as shown in the figure, you can also edit the name and description of the resource. For some operations such as export, you need the path, also called repository URI, which you can copy from this dialog.

    Creating Folders

    Any user with write permission on a folder can create new sub-folders.

    To create a folder:

    1. Log on as a user who has write permission to the parent folder.
    2. Select View > Repository and locate the parent folder in the Folders panel.
    3. Right-click the parent folder and select Add Folder from the context menu. The Add Folder dialog appears.

    Add Folder Dialog

    js-Repository-AddFolder_275x189.png.d9560608959363c26cce45a0bebf0700.png

    4. Enter the folder name and, optionally, a description, then click Add.

    The folder is created in the repository. The name appears in the hierarchy of folders. The description is visible only when viewing the properties of the folder, as shown in “Resource Properties Dialog for a Writable Resource”.

    New folders and their future contents inherit the permissions of their parent folders. Users with Administrator permissions can change permissions folders, as described in Setting Permissions.

    Adding Resources

    Each resource has different requirements, for example some are created from uploaded files, others are created by defining values in a wizard. The procedures for adding each type are available in the resources below:

    Interactive resources such as Ad Hoc views and dashboards are described in the JasperReports Server User Guide.
    JasperReports are covered in the JasperReports Server User Guide.
    Domains are covered in the JasperReports Server User Guide. Domains are only available in the Commercial Edition of JasperReports Server.
    Mondrian and OLAP resources are covered in the Jaspersoft OLAP User Guide.
    Data sources, queries, input controls, and file resources are explained in the chapter Other Resources in the Repository

    Most resources are created through the Add Resource menu item on the context menu for folders in the repository. In the following figure, you can see the full menu and submenu with all the resources administrators can create:

    js-Repository-menu-AddResourceFile_348x236.png.5d72e0e75663bbd1294cddad7262f8b2.png

    Add Resource Context Menu Expanded

    For every resource you create, you must specify a name and resource ID for referencing the resource in the repository. each wizard also has one or more pages for specifying the values and controls specific to the resource.

    note-icon-ns_28x28.png.2fe2e55e2533e1a1b637f9346beafbdc.png

    New resources inherit the permissions of the folder in which they are created. Administrators can change the permissions on the new resource, as described in section Permissions.

    Renaming Folders and Resources

    Any user with write permission on a folder or resource can change its name and description.

    note-icon-ns_28x28.png.3065580d1101d410252d7d9b304e1ca7.png

    You can't change the name of an organization’s top-level folder in the way described here. The name of the top-level folder defaults to the name of the organization. So to change the name of the folder, you have to change the name of the organization, as described in section Editing an Organization.

    To rename a folder or resource:

    1. Log on as a user who has write permission for the folder or resource.
    2. In the repository, browse or search for the resource. For renaming folders, select View > Repository and locate the folder.
    3. Right-click the object and select Properties... from the context menu. The Properties dialog appears.

    js-Repository-Properties-edit_332x283.png.3e3c72eb3ce4c34351ac31752cad5bad.png

    Properties Dialog for a Report Resource

    You can change the folder or resource’s name and description, but not the ID or the resource type; the ID is permanent once the resource is created, and the type, displayed here, is information only.

    4. Click Submit to save your changes.

    Copying and Moving

    The repository interface lets any user with the proper permission copy or move both resources and folders. Copying requires read permission on the source, moving requires delete permission on the source, and both require write permission on the destination folder.

    You can drag-and-drop the objects, or you can copy-paste or cut-and-paste them from their context menus. Folders must be moved one at a time, but multiple resources from the same folder can be copied or moved together.

    Copying and moving actions are not possible on the search interface, only on the repository interface showing the list of folders. Currently, it's not possible to create a copy of a resource in the same folder.

    warning-icon-ns_28x28.png.0b7d02a600fd9e041bfba3aaa71c279e.png

    The moved objects inherit their permissions from the destination folder; they do not keep the permissions they had before the move. If you want the objects to have other permissions, you can set new permissions after the move (see Permissions).

    To copy or moving folders and resources:

    1. Log on as a user who has the required permissions for the folder or resource.
    2. Click View > Repository, and expand the folders to display the object to be copied or moved.
    3. Right-click the resource and select Copy or Cut. (Delete permission is required to move a resource.)

    You can select multiple resources with Control-click or Shift-click, but only a single folder.

    4. Right-click the destination folder and select Paste in the context menu. If the Paste. (Write permission on the destination folder is required.)

    Alternatively, you can drag to move the selected resource or folder to the destination folder. To copy, press and hold the Ctrl key then click and drag. When dragging resources, the destination folder is highlighted in blue if you have write permission to it.

    Editing Resources

    Resource editing methods differ by the resource type. For end users who work with interactive resources, editing mostly involves the Open in Designer action on the context menu for dashboards and Ad Hoc views. The procedures in the following table are further described in the JasperReports Server User Guide.

    Resources End Users Can Edit

    Resource Type

    How to Edit

    Ad Hoc view

    Professional edition only. Users select Open in Designer and modify the view interactively. After changing the content, users can overwrite the existing view or save as a new view.

    Reports created from Ad Hoc views are saved in the same format as JasperReports, but the resources referenced in the report unit are generated by the Ad Hoc editor and should not be modified. There is one exception: administrators may create a JSP file and set it as a custom report view.

    Dashboard

    Professional edition only. Users select Open in Designer and modify the dashboard interactively. After changing the content, users can overwrite the existing dashboard or save it as a new dashboard.

    Content Resource

    Report output is a file stored in the repository. These files cannot be edited, only downloaded or deleted.

    JasperReport

    Users or administrators select Edit and change the data source, input controls, or file resources referenced in the JasperReport. For more information, see JasperReport Structure.

    When users Run a report, it's displayed in the interactive report viewer. If data snapshots are enabled, the report is displayed with data that was previously returned by the data source. When data snapshots are not enabled, the server queries the data source and runs the report’s query. After interacting with the report’s columns and values, users may save the report, either by overwriting the original or as a new copy, depending on their permissions.

    Report Version

    Professional edition only. Users may select Edit to change the values stored as input parameters.

     

    Resources Only Administrators Can Edit

    Resource Type

    How to Edit

    Data Source

    Administrators select Edit from the context menu on these resources. You edit these resources in the same dialog you used to create them.

    You can view the current definition of a resource or change its values. For example, you could view the datatype of an input control, change a query, or upload a new file in a file resource.

    For a Domain, you have access to the Domain Designer used when creating the Domain. You can add tables and fields, change filters, or change the display characteristics of items in the Domain. For more information about Domains, see the JasperReports Server User Guide.

    For all other resource types, see the procedure for creating them in Other Resources in the Repository.

    Datatype

    Domain

    File

    Input Control

    List of Values

    Query

    When editing a resource, you have several limitations:

    You can't change a resource's ID. If you need to change an ID, you have to create a new resource and delete the old one.
    You can't change the location of a resource. To change the location of the resource, see Copying and Moving.
    For file resources, you can't see the name of the file that was uploaded, nor in most cases download and view the contents of the file. Your only option is to upload a new file to replace the old one.

    Deleting Folders and Resources

    Users with delete permission on folders or resources can delete those objects from the repository. To delete a folder, you also need delete permissions on all the resources and folders in that folder. Folders must be deleted one at a time, but multiple resources can be deleted together.

    warning-icon-ns_28x28.png.851c99b604405a7d88913beab960fcca.png

    You can't undo a delete.

    The repository won't allow you to delete resources currently referenced by other resources. For example, an input type used by a report or a properties file used by a Domain cannot be deleted as long as the report or Domain still references them.

    To find the resources that reference the one you want to delete, you need to look at each report, view, Ad Hoc Topic, or Domain that you suspect of referencing it. When you edit the definition of a JasperReport or a Domain, you can see the resources it references. Then you can either remove the reference from the resource or delete the entire resource containing the reference.

    To delete a folder or resource:

    1. Log on as a user who has delete permission for the folder or resource.
    2. In the repository, browse or search for the object to be deleted.
    3. Right-click the object and click Delete in the context menu.

    In the repository view, you can select multiple resources and click Delete in the tool bar or in the context menu. In the list of folders, you can delete only one folder at a time, but all contents of that folder will be deleted. In the search results, you can select multiple resources and right-click to select Delete in the context menu.


    User Feedback

    Recommended Comments

    There are no comments to display.



    Guest
    This is now closed for further comments

×
×
  • Create New...