View Javadoc

1   /* 
2    * Licensed to the Apache Software Foundation (ASF) under one or more
3    * contributor license agreements.  See the NOTICE file distributed with
4    * this work for additional information regarding copyright ownership.
5    * The ASF licenses this file to You under the Apache License, Version 2.0
6    * (the "License"); you may not use this file except in compliance with
7    * the License.  You may obtain a copy of the License at
8   *
9   *     http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
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 }