Configure the uniqueness of product values
By default, IXIASOFT CCMS confirms that product names are unique within a deployment, but you can configure it so that other values in the .product file are unique as well.
You can configure the CCMS to ensure the
uniqueness of any element, other than the product name, in the .product file. The name, specified in the <name>
element, must always be unique within a
deployment. You define the list of unique values in the releasemanagement.xml file, inside the <uniquekeys>
element.
Important: Make configuration changes in a test
environment and confirm they work before copying them to a production environment. For
dedicated SaaS deployments, test the changes and then ask IXIASOFT Customer Support to copy the changes to your production environment.
Consider the following template file for a
product:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE product PUBLIC "-//IXIA//DTD CMS Product//EN" "product.dtd">
<product id="id" base="">
<name/>
<productmeta>
<code/>
<description/>
<aliases/>
<productlines/>
<components/>
</productmeta>
<relatedproducts/>
<releases/>
</product>
Suppose you also wanted the product code to be unique within a deployment. To
do so, you add the following
For
example:
<key>
element to
the releasemanagement.xml file.
<uniquekeys>
<key type="PRODUCT" index="index_name" xpath="xpath"/>
</uniquekeys>
where:index_name |
Is the name of the index defined for this field in the Index Definition document. |
xpath |
Is the XPATH of the element that must be unique. |
<uniquekeys>
<key type="PRODUCT" index="code" xpath="//*[contains(@class, ' product/code ')]"/>
</uniquekeys>
To configure the uniqueness of product values: