Portlet API (V0.7.1)

javax.portlet
Interface PreferencesValidator


public interface PreferencesValidator

The PreferencesValidator allows the portlet to validate the preference settings before they are stored in the persistent store.

The validator is called each time before the store method on the preferences is performed.


Method Summary
 void validate(PortletPreferences preferences)
          Throws a ValidatorException if the given preferences contains invalid settings.
 

Method Detail

validate

public void validate(PortletPreferences preferences)
              throws ValidatorException
Throws a ValidatorException if the given preferences contains invalid settings.
Parameters:
preferences - preferences to validate
Throws:
ValidatorException - if the given preferences contains invalid settings

Portlet API (V0.7.1)