Top Description Methods
javax.portlet.annotations

public @Interface PortletPreferencesValidator

extends Annotation
Annotations
@Retention:RUNTIME
@Target:TYPE
Imports
java.lang.annotation.Retention, .Target

Designates a preferences validator class. The PortletPreferencesValidator allows validation of the set of portlet preferences before they are stored in the persistent store. The validator method is invoked during execution of the store method of the PortletPreferences.

The annotated class must implement the PreferencesValidator interface.

Since
3.0
See Also
javax.portlet.PreferencesValidator

Method Summary

Modifier and TypeMethod and Description
public String[]

Returns:

The portlet names
portletNames
()

The portlet names for which the validator applies.
Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

portletNamesback to summary
public String[] portletNames()

The portlet names for which the validator applies.

The annotated validator method can apply to multiple portlets within the portlet application. The names of the portlets to which the validator applies must be specified in this field.

A wildcard character '*' can be specified in the first portletName array element to indicate that the validator is to apply to all portlets in the portlet application. If specified, the wildcard character must appear alone in the first array element.

Returns:String[]

The portlet names