1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.apache.pluto.descriptors.portlet;
17
18 import java.util.List;
19 import java.util.ArrayList;
20
21 /***
22 * Bare bones implementation of the Portlet descriptor.
23 * Eventually this should be flushed out :), but for the sake
24 * of timing I'll be lazy for now.
25 *
26 * @author <a href="ddewolf@apache.org">David H. DeWolf</a>
27 * @version $Id: PortletDD.java 157475 2005-03-14 22:13:18Z ddewolf $
28 * @since Mar 6, 2005
29 */
30 public class PortletDD {
31
32 /*** The unique name of the portlet. */
33 private String portletName;
34
35 /*** The class which implements the portlet interface. */
36 private String portletClass;
37
38 /*** All security role references. */
39 private List securityRoleRefs = new ArrayList();
40
41 /***
42 * Default Constructor.
43 */
44 public PortletDD() {
45
46 }
47
48 /***
49 * Retrieve the unique name of the portlet.
50 * @return
51 */
52 public String getPortletName() {
53 return portletName;
54 }
55
56 /***
57 * Set the unique name of the portlet.
58 * @param portletName
59 */
60 public void setPortletName(String portletName) {
61 this.portletName = portletName;
62 }
63
64 /***
65 * Retrieve the name of the portlet class.
66 * @return the fully qualified portlet class name.
67 */
68 public String getPortletClass() {
69 return portletClass;
70 }
71
72 /***
73 * Set the name of the portlet class.
74 * @param portletClass
75 */
76 public void setPortletClass(String portletClass) {
77 this.portletClass = portletClass;
78 }
79
80 /***
81 * Retrieve the security role references for this portlet.
82 * @return
83 */
84 public List getSecurityRoleRefs() {
85 return securityRoleRefs;
86 }
87
88 /***
89 * Set the security role references for this portlet.
90 * @param securityRoleRefs
91 */
92 public void setSecurityRoleRefs(List securityRoleRefs) {
93 this.securityRoleRefs = securityRoleRefs;
94 }
95 }
96