001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. The ASF licenses this file to You
004: * under the Apache License, Version 2.0 (the "License"); you may not
005: * use this file except in compliance with the License.
006: * You may obtain a copy of the License at
007: *
008: * http://www.apache.org/licenses/LICENSE-2.0
009: *
010: * Unless required by applicable law or agreed to in writing, software
011: * distributed under the License is distributed on an "AS IS" BASIS,
012: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013: * See the License for the specific language governing permissions and
014: * limitations under the License. For additional information regarding
015: * copyright in this work, please see the NOTICE file in the top level
016: * directory of this distribution.
017: */
018: /*
019: * Created on Apr 15, 2003
020: */
021: package org.apache.roller.pojos;
022:
023: /**
024: * For most popular website display on Roller main page.
025: * The id property is the website's name.
026: *
027: * @author David M Johnson
028: *
029: * @ejb:bean name="WebsiteDisplayData"
030: * @struts.form include-all="true"
031: */
032: public class WebsiteDisplayData extends PersistentObject {
033: static final long serialVersionUID = 5264701383470813687L;
034:
035: private String mId;
036: private String mWebsiteName = null;
037: private String mWebsiteHandle = null;
038: private Integer mHits = new Integer(0);
039:
040: /**
041: *
042: */
043: public WebsiteDisplayData() {
044: super ();
045: }
046:
047: /**
048: *
049: */
050: public WebsiteDisplayData(String id, String websiteName,
051: String websiteHandle, Integer hits) {
052: super ();
053: mId = id;
054: mWebsiteName = websiteName;
055: mWebsiteHandle = websiteHandle;
056: mHits = hits;
057: }
058:
059: /**
060: * No-op.
061: * @see org.apache.roller.pojos.PersistentObject#setData(org.apache.roller.pojos.PersistentObject)
062: */
063: public void setData(PersistentObject vo) {
064: }
065:
066: /**
067: * @ejb:persistent-field
068: */
069: public String getId() {
070: return mId;
071: }
072:
073: /**
074: * @see org.apache.roller.pojos.PersistentObject#setId(java.lang.String)
075: */
076: public void setId(String id) {
077: mId = id;
078: }
079:
080: /**
081: * @ejb:persistent-field
082: */
083: public Integer getHits() {
084: return mHits;
085: }
086:
087: /**
088: * @param integer
089: */
090: public void setHits(Integer integer) {
091: mHits = integer;
092: }
093:
094: /**
095: * @return Returns the title.
096: */
097: public String getWebsiteName() {
098: return mWebsiteName;
099: }
100:
101: /**
102: * @param title The title to set.
103: */
104: public void setWebsiteName(String name) {
105: mWebsiteName = name;
106: }
107:
108: public String getWebsiteHandle() {
109: return mWebsiteHandle;
110: }
111:
112: public void setWebsiteHandle(String mWebsiteHandle) {
113: this.mWebsiteHandle = mWebsiteHandle;
114: }
115: }
|