1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package javax.portlet;
22
23
24 /***
25 * The <CODE>PreferencesValidator</CODE> allows to validate the set of
26 * preferences of the associated portlet just before they are
27 * stored in the persistent store.
28 * <p>
29 * The portlet container invokes the <code>validate</code> method as
30 * part of the invocation of the <code>store</code> method of the
31 * <code>PortletPreferences</code>.
32 */
33 public interface PreferencesValidator
34 {
35
36
37 /***
38 * If the preferences values are successfully validated the call to this method
39 * must finish gracefully. Otherwise it must throw a <code>ValidatorException</code>.
40 *
41 * @param preferences preferences to validate
42 *
43 * @throws ValidatorException if the given preferences contains invalid
44 * settings
45 *
46 */
47
48 public void validate(PortletPreferences preferences)
49 throws ValidatorException;
50 }