Publishing resources

Before you can perform any tasks on JReport Server, you first need to have your resources published and organized. The resources are reports, library components, catalogs, and folders.

The JReport Server resource tree contains four built-in folders: My Components and Public Components are used to store library components with catalogs, while My Reports and Public Reports store reports with catalogs.

There are three ways of publishing resources:

Note: After resources have been delivered to JReport Server, you may find that the publish time shown on the server UI is different from the client time. That is because the publish time takes the server time instead of the client time.

Publishing resources from JReport Designer

You can directly publish your reports, library components, or catalogs from JReport Designer to JReport Server. For detailed information, see the topic Publishing resources remotely in the JReport Designer User's Guide.

Publishing resources from a local computer

You can publish these types of resources from a local computer. They are reports, library components, catalogs, and folders.

To publish resources from a local computer:

  1. Do either of the following:

    The Publish to Local Server dialog appears. See the dialog.

  2. Select a type from the Resource Type drop-down list.
  3. Specify properties for the to-be-published resources as required.
  4. If the resources you specify to publish contain reports created in earlier versions, check Automatically Convert Old Report Schemas, the reports will then be automatically converted into current version JReport reports when publishing finishes.
  5. To apply an archive policy to the resources that you are publishing,

    Note that a folder by itself does not have versions; the archive policy specified for a folder applies to the folder content.

  6. If the resources are to be published to the Public Reports or Public Components folder, click the Set Permissions link to specify user permissions to them according to your requirement.
  7. Click OK to start publishing the resources.

Note: The Publish to Local Server option is always available to administrators on the JReport Console page. For end users, the option is displayed only when they have the privilege of publishing resources and have logged onto JReport Server from a local browser.

Publishing resources from a remote computer

You can publish these types of resources from a remote machine to the server. They are reports, library components, catalogs, and folders. Only administrators can publish library components. Before publishing remote resources, you must create a zip file or tar file containing the resources to publish.

To publish resources from a remote computer:

  1. Do either of the following:

    The Publish to Remote Server dialog appears. See the dialog.

  2. Click the Browse button to specify the zipped file which contains the resources you want to publish.
  3. Specify where the resources will be published.
  4. If the resources you specify to publish contain reports created in earlier versions, check Automatically Convert Old Report Schemas, the reports will then be automatically converted into current version JReport reports when publishing finishes.
  5. To apply an archive policy to the resources that you are publishing,
  6. If the resources are to be published to the Public Reports or Public Components folder, click the Set Permissions link to specify user permissions to them according to your requirement.
  7. If you want to use Advanced Publish, click the Advanced Publish button. All resources contained within the zip file will then be displayed. Check the resources you want to publish and specify the properties for each resource as required.
  8. Click OK to start publishing the resources.

Note: When publishing resources from a remote computer, the process is similar to that for a local publish. However, there are differences: