Sun Java System Portal Server 7.2 Command-Line Reference

psadmin remove-dp

Description

Removes an existing display profile object from the display profile.

Syntax

Long Format

psadmin remove-dp --name name [--parent parent] --type type --adminuser uid --passwordfile password-filename --dn dn --portalid portal-ID [--global] [--dry-run]

Short Format

psadmin remove-dp -n name [-P parent] -t type -u uid -f password-filename -d dn -p portal-ID [-g] [-r]

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.

[--name | -n] name

Name of the target display object. This should be specified as none if type is root or if the entire display profile needs to be removed.

[--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.

[--type | -t] type

Type of the display object are root, channel, provider, property, available, or selected.

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 removed from the root.

Example


Example 2–6 psadmin remove-dp

./psadmin remove-dp -u amadmin -f ps_password -p myPortal1 -d "cn=hr_role,o=Developersample,dc=country,dc=sun,dc=com" -n "JSPTabContainer/bookmark3" -t channel

In the above example, psadmin remove-dp removes the channel bookmark3 from the container JSPTabContainer.

If you need to remove the channels that are added to a user or role, run the following command:

./psadmin remove-dp -u amadmin -f ps_password -p myPortal1 -d "cn=hr_role,o=Developersample,dc=country,dc=sun,dc=com"

This command removes all channels that are added to the role. It retains only the channels that are present in the DeveloperSample.