Adapt list restrictions

In addition to the object type restriction, there is another option to further restrict the number of objects allowed. This restriction applies to objects whose attributes have specific values.

Location

XML file in the xml folder

Procedure

Add a <listRestriction> element as a new child element. It has no property, but merely serves to group the <attributeRestriction> child elements. They have the following two mandatory properties:

  • attribute refers to an attribute of an object type that is permitted for list attributes.
  • value refers to a value that is permitted for the attribute.

Objects with values other than the permitted ones cannot be assigned.

Remark

You should only refer to attributes that no longer change within the life cycle of the object, such as the type of a hierarchy object. <listRestriction> elements of a list attribute are OR-connected. <listRestriction> elements of a list restriction are AND-connected.

Documents

objectTypes.xsd

Example

ModifyObject_AddListAttribute

\WEB-INF\config\custom\xml\custom.xml: Add list restrictions