Attribute validators allow you to create custom validation rules
for attribute types within the WorldServer environment, effectively
adding new restricted attribute types to the system. For example,
a custom social security number validator can be added that will allow
only social security numbers to be entered for certain attributes,
instead of just freeform text or numbers.
To add an attribute validator
-
From , choose
Attribute Validators from the
Custom component type drop-down menu.
-
Click
Add.
WorldServer displays the
Add Custom Attribute Validators
Component dialog.
-
Click
Browse. Use the
Choose
file dialog box to navigate your local directory structure
and select the ZIP file containing the attribute validator.
-
Click
Open.
The
Choose file dialog box closes and the selected files are listed in the
Add Custom Attribute Validators
Component dialog.
-
Click
OK.
WorldServer returns to the
Customization page.
Implementation
Attribute validators provide
a means for allowing the customer to define the rules for the allowable
values for these attributes. These validators are created by extending
the WSAttributeValidator class in the SDK, and uploading the implementation
into WorldServer. Attribute validators will be applied for the specific
attribute types when ever values are being assigned to the attributes.