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> |