001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017: package org.apache.jetspeed.portlets;
018:
019: import java.io.Serializable;
020:
021: /**
022: * Portlet Info
023: *
024: * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
025: * @version $Id: $
026: */
027: public class PortletInfo implements Serializable {
028: /**
029: *
030: */
031: String name;
032: String displayName;
033: String description;
034: String image;
035: int count;
036:
037: public PortletInfo(String name, String displayName,
038: String description) {
039: this .name = name;
040: this .displayName = displayName;
041: this .description = description;
042: }
043:
044: public PortletInfo(String name, String displayName,
045: String description, String image) {
046: this .name = name;
047: this .displayName = displayName;
048: this .description = description;
049: this .image = image;
050: }
051:
052: public PortletInfo(String name, String displayName,
053: String description, String image, int count) {
054: this .name = name;
055: this .displayName = displayName;
056: this .description = description;
057: this .image = image;
058: this .count = count;
059: }
060:
061: /**
062: * @return Returns the description.
063: */
064: public String getDescription() {
065: return description;
066: }
067:
068: /**
069: * @return Returns the displayName.
070: */
071: public String getDisplayName() {
072: return displayName;
073: }
074:
075: /**
076: * @return Returns the name.
077: */
078: public String getName() {
079: return name;
080: }
081:
082: /**
083: * @return Returns the image.
084: */
085: public String getImage() {
086: return image;
087: }
088:
089: /**
090: * @param image The image to set.
091: */
092: public void setImage(String image) {
093: this .image = image;
094: }
095:
096: /**
097: * @return the count
098: */
099: public int getCount() {
100: return count;
101: }
102:
103: /**
104: * @param count the count to set
105: */
106: public void setCount(int count) {
107: this .count = count;
108: }
109:
110: public Object clone() throws CloneNotSupportedException {
111: return new PortletInfo(this.name, this.displayName,
112: this.description, this.image, this.count);
113: }
114:
115: }
|