Top Description Methods
javax.portlet

public Interface PreferencesValidator


The PreferencesValidator allows to validate the set of preferences of the associated portlet just before they are stored in the persistent store.

The portlet container invokes the validate method as part of the invocation of the store method of the PortletPreferences.

Method Summary

Modifier and TypeMethod and Description
public void
validate(PortletPreferences
preferences to validate
preferences
)

If the preferences values are successfully validated the call to this method must finish gracefully.

Method Detail

validateback to summary
public void validate(PortletPreferences preferences) throws ValidatorException

If the preferences values are successfully validated the call to this method must finish gracefully. Otherwise it must throw a ValidatorException.

Parameters
preferences:PortletPreferences

preferences to validate

Exceptions
ValidatorException:
if the given preferences contains invalid settings