Sun GlassFish Web Space Server 10.0 Administration Guide

Exporting and Importing of Portal Data

You can back up a portlet, Community, or Organization by exporting their data to the disk. When you upgrade the Web Space Server installation on your machine, or when you reinstall Web Space Server due to some other reason, you can import the data back to your portlet.

ProcedureTo Export and Import Data of a Portlet

This procedure uses an example of exporting a Calendar portlet event.

  1. Log in to Sun GlassFish Web Space Server as the admin user.

  2. Click Add Application from the Welcome menu and add a portlet to your page.

    In this example, add the Calendar portlet.

  3. Click the Add Event button.

    In this example, add a weekly event called Project Meeting. You can modify permissions for the guest user by clicking the Permissions link.

  4. Click Save.

  5. Click the Export/Import button from the menu controls for the portlet.

  6. Click Export and save the file to the disk.

    A .lar file is exported to your disk. The file includes the event description.

  7. To import the event information, import the file to the Calendar portlet of a Web Space Server installation.

ProcedureTo Export and Import Data from a Community or Organization

You can export the data residing on a Community or an Organization. When you import the data to a Community or Organization on another Web Space Server installation, all pages related to the Community or Organization are imported.

  1. Log in to Sun GlassFish Web Space Server as the admin user.

  2. Navigate to a page on a Community or an Organization.

  3. Choose Manage Pages from the Welcome menu.

  4. Click the Export/Import tab.

    Figure 4–9 Exporting a Page

    Exporting a Page

    The .lar file that gets exported uses the naming convention Community/Organization-name-unique-#id..lar

    The default export includes all the options that are initially selected. At the minimum, all pages and all portlets are exported. The options are:

    • Pages - All private and public pages associated with the Community or the Organization.

    • Portlets - All portlets on Community or Organization pages.

    • Setup - The current setup information of the portlets.

    • Archived Setup - Archived setup information of the portlets.

    • User preferences - User preferences such as Look and Feel and language attributes applied to portlets.

    • Data - The data reside inside portlets. The default Range for Data is All. You can specify a Date Range for Data. When a Date Range is specified, only the data pertaining to the date range is exported.

    • Permissions, Theme, and Categories options - You can export Permissions, Theme, and Categories associated with pages and portlets. For more information, click the help button.


    Note –

    When you import, you need to select the same options that were selected while exporting.


  5. Click Export.