Attribute Validators

Management > Administration > Customization > Attribute Validators

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

  1. From Management > Administration > Customization, choose Attribute Validators from the Custom component type drop-down menu.
  2. Click Add.

    WorldServer displays the Add Custom Attribute Validators Component dialog.

  3. Click Browse. Use the Choose file dialog box to navigate your local directory structure and select the ZIP file containing the attribute validator.
  4. Click Open.

    The Choose file dialog box closes and the selected files are listed in the Add Custom Attribute Validators Component dialog.

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