Portlet API (V0.7.1) : Interface PreferencesValidator

Package | Class | Tree | Deprecated | Index | Help
| Portlet API (V0.7.1)
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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

Package | Class | Tree | Deprecated | Index | Help
| Portlet API (V0.7.1)
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD