This value contains a set of AttributeConditions that specify particular attributes, their expected values, and a comparison operator. AttribueConditions can be specified in three ways:
Table 2–23 Values of conditions Attribute
You can specify a list of one or more object type-specific query attribute conditions to filter the list of names returned by certain FormUtil methods. (These methods include methods that take an options map as an argument.) You can specify these query attribute conditions as a query option whose key is conditions and whose value can be specified as either a map or list of AttributeConditions.
The following examples illustrate the use of the conditions attribute to apply additional filters to the list of names returned by a FormUtil method that takes an options map as an argument. This example uses conditions to specify that only resources that support container object groups of type LDAP should be returned.
<Field name=’waveset.resources’> <Display class=’MultiSelect’ action=’true’> ... <Property name=’allowedValues’> <invoke class=’com.waveset.ui.FormUtil’ name=’getUnassignedResources’> <ref>:display.session</ref> <map> <s>currentRoles</s> <ref>waveset.roles</ref> <s>currentResourceGroups</s> <ref>waveset.applications</ref> <s>current</s> <ref>waveset.original.resources</ref> <s>conditions</s> <map> <s>supportsContainerObjectTypes</s> <s>true</s> <s>type</s> <s>LDAP</s> </map> </map> </invoke> </Property> </Display> </Field> |
This second example requests resources that support container objects where the resource has a name that starts with ldap. Note that the value for the queryable attributes are compared case-sensitive.
<Field name=’orgResource’> <Display class=’Select’ action=’true’> ... <Property name=’allowedValues’> <invoke class=’com.waveset.ui.FormUtil’ name=’getResourcesSupportingContainerObjectTypes’> <ref>:display.session</ref> <map> <s>conditions</s> <list> <new class=’com.waveset.object.AttributeCondition’> <s>name</s> <s>starts with</s> <s>ldap</s> </new> </list> </map> </invoke> </Property> </Display> </Field> |
Third Example of Using the conditions Attribute
<Field name=’accounts[Lighthouse].capabilities’> <Display class=’MultiSelect’> ... <Property name=’allowedValues’> <invoke class=’com.waveset.ui.FormUtil’ name=’getUnassignedCapabilities’> <ref>:display.session</ref> <ref>waveset.original.capabilities</ref> <map> <s>conditions</s> <list> <new class=’com.waveset.object.AttributeCondition’> <s>name</s> <s>starts with</s> <s>bulk</s> </new> </list> </map> </invoke> </Property> </Display> </Field> |