Sun Java System Portal Server 7.1 Command Line Reference

Example


Example 2–5 psadmin add-dp

./psadmin add-dp -u amadmin -f ps_password -P JSPTabContainer/bookmark2 -d "cn=hr_role,o=Developersample,dc=country,dc=sun,dc=com" -p myPortal1 add.xml

In the example above, a new channel, bookmark2 is added to the container, JSPTabContainer. The psadmin add-dp takes data for the new object from standard input or from one or more files specified as an argument to the command. Data for the new object must be XML and conform the Sun Java System Portal Server display profile DTD. It requires that the object to be added does not exist in the display profile.

The add.xml file contains the data for the channel bookmark2. The content of add.xml file is displayed below:


<!DOCTYPE DisplayProfile SYSTEM "jar://resources/psdp.dtd">
<Channel name="bookmark3" provider="BookmarkProvider">
    <Properties>
    </Properties>
</Channel> 

The semantics of the add subcommand vary depending on the type of the display profile object being added. That is: