Sun Java System Portal Server 7.2 Command-Line Reference

psadmin add-dp

Description

Adds a new display profile object to the display profile.

Syntax

Long Format

psadmin add-dp [--parent parent] --adminuser uid --passwordfile password-filename --dn dn --portalid portal-ID [--global] [--dry-run] dp-document

Short Format

psadmin add-dp [-P parent] -u uid -f password-filename -d dn -p portal-ID [-g] [-r] dp-document

Options

The following options are required:

[--adminuser | -u] uid

Specifies the administrator's distinguished name.

[--dn | -d] dn

Distinguished name of the target node. This is mutually exclusive to -g option.

[--passwordfile | -f] password-filename

Specifies the administrator's password in the password file.

[--portalId | -p] portal-ID

Specifies the portal ID, if this is not supplied, the default is used.

The following options are optional:

[--dry-run | -r]

Attempt to execute command without writing out to LDAP. Default is false.

[--global | -g]

Global display profile. Default is false. This is mutually exclusive to -d option.

[--parent | -P] parent

Name of the parent display object. If not specified , the object gets added to the root.

Operand

Specifies one or more files each of which contains XML fragment.

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: