Sun Java System Portal Server 7 Developer Sample Guide

Restoring the Default Settings

The Developer Sample portal display profile file goes in the o=DeveloperSample,dc=sun,dc=com DN and the display profile file is in PortalServer-base/par-src/developer_sample/dp directory.

ProcedureTo Reload the Global Sample Display Profile

Steps
  1. Create the default portal PAR file.

    For example, typePortalServer-base/bin/psadmin create-par --dir PortalServer-base/par-src/default-portal/ /tmp/default-portal.par

  2. Import the default portal PAR file.

    For example, type PortalServer-base/bin/psadmin import --adminuser amadmin --passwordfile /tmp/password_file --portal portal1 /tmp/default-portal.par.

ProcedureTo Restore Developer Sample Display Profile

Steps
  1. Copy Developer Sample configuration files to a custom directory.

    Copy the template files from PortalServer-base/samples/portals/shared to a custom directory, remove the .template extension, and substitute the tokens in each file. For example, type:

    mkdir /tmp/mydir
    cp /opt/SUNWportal/samples/portals/shared/input.properties.template /tmp/mydir/input.properties
    cp /opt/SUNWportal/samples/portals/shared/password.properties.template /tmp/mydir/password.properties
  2. Specify values for the input.properties and password.properties files.

    Edit the input.properties file and replace all the tokens that begin and end with % with the appropriate Portal Server software settings. Edit the password.properties file and replace all the tokens that begin and end with % with the appropriate administrator password value.

  3. Run ant to install the Developer Sample.

    For example, to install the Developer Sample:

    /usr/sfw/bin/ant -buildfile PortalServer-base/samples/portals/build.xml -Dconfig.location=/tmp/mydir -logfile /tmp/samples.log