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.portals.applications.rss;
18  
19  import com.sun.syndication.feed.synd.SyndFeed;
20  
21  /***
22   *
23   * @author <a href="mailto:christophe.lombart@sword-technologies.com">Lombart Christophe </a>
24   * @version $Id: RssInfo.java 516448 2007-03-09 16:25:47Z ate $
25   */
26  public class RssInfo
27  {
28      private SyndFeed feed;
29      private int itemdisplayed;
30      private boolean openinpopup;
31      private boolean showdescription;
32      private boolean showtitle;
33      private boolean showtextinput;
34      
35      
36      
37      /***
38       * @param feed
39       * @param itemdisplayed
40       * @param openinpopup
41       * @param showdescription
42       * @param showtitle
43       * @param showtextinput
44       */
45      public RssInfo(SyndFeed feed, int itemdisplayed, boolean openinpopup, boolean showdescription, boolean showtitle,
46              boolean showtextinput)
47      {        
48          this.feed = feed;
49          this.itemdisplayed = itemdisplayed;
50          this.openinpopup = openinpopup;
51          this.showdescription = showdescription;
52          this.showtitle = showtitle;
53          this.showtextinput = showtextinput;
54      }
55      
56      public SyndFeed getFeed()
57      {
58          return feed;
59      }
60      public void setFeed(SyndFeed feed)
61      {
62          this.feed = feed;
63      }
64      public int getItemdisplayed()
65      {
66          return itemdisplayed;
67      }
68      public void setItemdisplayed(int itemdisplayed)
69      {
70          this.itemdisplayed = itemdisplayed;
71      }
72      public boolean isOpeninpopup()
73      {
74          return openinpopup;
75      }
76      public void setOpeninpopup(boolean openinpopup)
77      {
78          this.openinpopup = openinpopup;
79      }
80      public boolean isShowdescription()
81      {
82          return showdescription;
83      }
84      public void setShowdescription(boolean showdescription)
85      {
86          this.showdescription = showdescription;
87      }
88      public boolean isShowtextinput()
89      {
90          return showtextinput;
91      }
92      public void setShowtextinput(boolean showtextinput)
93      {
94          this.showtextinput = showtextinput;
95      }
96      public boolean isShowtitle()
97      {
98          return showtitle;
99      }
100     public void setShowtitle(boolean showtitle)
101     {
102         this.showtitle = showtitle;
103     }
104 }