./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:
Display profile: An entire display profile document can be added to the specified LDAP node. If the document already exists at the node, then an error is reported. The parent option must not be specified when adding a new display profile document.
Channel or container: A channel or container can be added. If the parent option is present, the parent display profile object is located for the given name and under that parent container, the specified Channel or Container is added. If the parent option is absent, the parent display profile object is assumed to be the root display profile object, so under root the specified Channel or Container object is added.
Properties: Because a properties bundle is required for all display profile nodes and display profile provider objects, they already exist and cannot be added. Use the modify subcommand.
Available or selected: Because Available and selected objects are required for a display profile container, they already exist and cannot be added. Use the modify subcommand.
String, Boolean, Integer, Collection, or Locale: The display profile object String, Boolean, Integer, Collection, or Locale properties can be added. The parent option must be specified to add display profile object properties of this type. Under the specified parent, a display profile node (either a channel or container) or display profile provider is searched for (in that order) that matches the name. If found, the given display profile property is added to the display profile node or display profile provider.
Provider: A display profile provider is inserted under the root node. Because providers can only exist under the root node, do not use the parent option. If an object of the same name already exists, then an error is reported.