KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > roller > pojos > WebsiteDisplayData


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

18 /*
19  * Created on Apr 15, 2003
20  */

21 package org.apache.roller.pojos;
22
23
24 /**
25  * For most popular website display on Roller main page.
26  * The id property is the website's name.
27  *
28  * @author David M Johnson
29  *
30  * @ejb:bean name="WebsiteDisplayData"
31  * @struts.form include-all="true"
32  */

33 public class WebsiteDisplayData extends PersistentObject {
34     static final long serialVersionUID = 5264701383470813687L;
35     
36     private String JavaDoc mId;
37     private String JavaDoc mWebsiteName = null;
38     private String JavaDoc mWebsiteHandle = null;
39     private Integer JavaDoc mHits = new Integer JavaDoc(0);
40     
41     /**
42      *
43      */

44     public WebsiteDisplayData() {
45         super();
46     }
47     
48     /**
49      *
50      */

51     public WebsiteDisplayData(
52             String JavaDoc id,
53             String JavaDoc websiteName,
54             String JavaDoc websiteHandle,
55             Integer JavaDoc hits) {
56         super();
57         mId = id;
58         mWebsiteName = websiteName;
59         mWebsiteHandle = websiteHandle;
60         mHits = hits;
61     }
62     
63     /**
64      * No-op.
65      * @see org.apache.roller.pojos.PersistentObject#setData(org.apache.roller.pojos.PersistentObject)
66      */

67     public void setData(PersistentObject vo) {
68     }
69     
70     /**
71      * @ejb:persistent-field
72      */

73     public String JavaDoc getId() {
74         return mId;
75     }
76     
77     /**
78      * @see org.apache.roller.pojos.PersistentObject#setId(java.lang.String)
79      */

80     public void setId(String JavaDoc id) {
81         mId = id;
82     }
83         
84     /**
85      * @ejb:persistent-field
86      */

87     public Integer JavaDoc getHits() {
88         return mHits;
89     }
90     
91     /**
92      * @param integer
93      */

94     public void setHits(Integer JavaDoc integer) {
95         mHits = integer;
96     }
97     
98     
99     /**
100      * @return Returns the title.
101      */

102     public String JavaDoc getWebsiteName() {
103         return mWebsiteName;
104     }
105     
106     /**
107      * @param title The title to set.
108      */

109     public void setWebsiteName(String JavaDoc name) {
110         mWebsiteName = name;
111     }
112     
113     public String JavaDoc getWebsiteHandle() {
114         return mWebsiteHandle;
115     }
116     
117     public void setWebsiteHandle(String JavaDoc mWebsiteHandle) {
118         this.mWebsiteHandle = mWebsiteHandle;
119     }
120 }
121
Popular Tags