1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.jetspeed.portlets;
18
19 import java.io.Serializable;
20
21 /***
22 * Portlet Info
23 *
24 * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
25 * @version $Id: $
26 */
27 public class PortletInfo implements Serializable
28 {
29 /***
30 *
31 */
32 String name;
33 String displayName;
34 String description;
35 String image;
36 int count;
37
38 public PortletInfo(String name, String displayName, String description)
39 {
40 this.name = name;
41 this.displayName = displayName;
42 this.description = description;
43 }
44
45 public PortletInfo(String name, String displayName, String description, String image)
46 {
47 this.name = name;
48 this.displayName = displayName;
49 this.description = description;
50 this.image = image;
51 }
52
53 public PortletInfo(String name, String displayName, String description, String image,int count)
54 {
55 this.name = name;
56 this.displayName = displayName;
57 this.description = description;
58 this.image = image;
59 this.count = count;
60 }
61
62
63 /***
64 * @return Returns the description.
65 */
66 public String getDescription()
67 {
68 return description;
69 }
70 /***
71 * @return Returns the displayName.
72 */
73 public String getDisplayName()
74 {
75 return displayName;
76 }
77 /***
78 * @return Returns the name.
79 */
80 public String getName()
81 {
82 return name;
83 }
84
85
86 /***
87 * @return Returns the image.
88 */
89 public String getImage()
90 {
91 return image;
92 }
93
94
95 /***
96 * @param image The image to set.
97 */
98 public void setImage(String image)
99 {
100 this.image = image;
101 }
102 /***
103 * @return the count
104 */
105 public int getCount() {
106 return count;
107 }
108
109 /***
110 * @param count the count to set
111 */
112 public void setCount(int count) {
113 this.count = count;
114 }
115
116 public Object clone() throws CloneNotSupportedException {
117 return new PortletInfo(this.name,this.displayName,this.description,this.image,this.count);
118 }
119
120
121 }