A repository definition can define a default item descriptor, with the default="true" XML attribute of the <item-descriptor> tag. This attribute specifies that this is the default item descriptor for the repository. Each repository has exactly one default item descriptor. If there is only one item descriptor in a repository, it is not necessary to specify that it is the default. If no item descriptor is named as the default item descriptor, the first item descriptor in the XML file is chosen as the default.

When you use Repository methods such as getItem, createItem without specifying an item descriptor, you use the default item descriptor. These methods are not recommended for most applications, unless there is only one item type in the repository.

 
loading table of contents...