1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.jetspeed.portal.portlets;
18
19 /***
20 * This subclass of VelocityPortlet should be used as base portlet
21 * for all VelocityPortlets that implement their own customizer
22 * <p>
23 * <strong>NOTE:</strong>This supports the pre-MVC style of template based portlet development.
24 * The perefered method for defining customization is to set a parameter
25 * named "provides.customization" in the portlet config
26 * to either "true" or "false" depending on
27 * whether or not that portlet will provide it's own customizer. The portlet
28 * should also being using @see org.apache.jetspeed.portal.portlets.GenericMVCPortlet
29 * or a sub-class there of.
30 * </p>
31 *
32 * @author <a href="mailto:raphael@apache.org">Raphaël Luta</a>
33 */
34 public class CustomizerVelocityPortlet extends VelocityPortlet
35 {
36 /***
37 * @return true if the portlet does its own customization
38 */
39 public boolean providesCustomization()
40 {
41 return true;
42 }
43 }