com.silverpeas.rssAgregator.model
Class RSSItem
java.lang.Object
  
com.silverpeas.rssAgregator.model.RSSItem
- All Implemented Interfaces: 
 - Serializable, Comparable<RSSItem>
 
public class RSSItem
- extends Object
- implements Serializable, Comparable<RSSItem>
  
Use RSSItem to encapsulate RSS news or ATOM data. It allows us having light JSON transfer data.
 Users who want more news about RSS only need to click on the items link.
- Author:
 
  - ebonnet
 
- See Also:
 - Serialized Form
 
| 
Constructor Summary | 
RSSItem(de.nava.informa.impl.basic.Item item,
        de.nava.informa.impl.basic.Channel channel,
        SPChannel spChannel)
 
          Default RSSItem constructor which encapsulate Item and Channel from informa API | 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
RSSItem
public RSSItem(de.nava.informa.impl.basic.Item item,
               de.nava.informa.impl.basic.Channel channel,
               SPChannel spChannel)
- Default RSSItem constructor which encapsulate Item and Channel from informa API
- Parameters:
 item - channel - 
 
getItemTitle
public String getItemTitle()
 
- Returns:
 - the itemTitle
 
 
setItemTitle
public void setItemTitle(String itemTitle)
 
- Parameters:
 itemTitle - the itemTitle to set
 
getItemDescription
public String getItemDescription()
 
- Returns:
 - the itemDescription
 
 
setItemDescription
public void setItemDescription(String itemDescription)
 
- Parameters:
 itemDescription - the itemDescription to set
 
getItemLink
public URL getItemLink()
 
- Returns:
 - the itemURL
 
 
setItemLink
public void setItemLink(URL itemURL)
 
- Parameters:
 itemURL - the itemURL to set
 
getItemSubject
public String getItemSubject()
 
- Returns:
 - the itemSubject
 
 
setItemSubject
public void setItemSubject(String itemSubject)
 
- Parameters:
 itemSubject - the itemSubject to set
 
getItemDate
public Date getItemDate()
 
- Returns:
 - the itemDate
 
 
setItemDate
public void setItemDate(Date itemDate)
 
- Parameters:
 itemDate - the itemDate to set
 
getItemComments
public URL getItemComments()
 
- Returns:
 - the itemComments
 
 
setItemComments
public void setItemComments(URL itemComments)
 
- Parameters:
 itemComments - the itemComments to set
 
getExternalChannelId
public Long getExternalChannelId()
 
- Returns:
 - the externalChannelId
 
 
setExternalChannelId
public void setExternalChannelId(Long externalChannelId)
 
- Parameters:
 externalChannelId - the externalChannelId to set
 
getChannelTitle
public String getChannelTitle()
 
- Returns:
 - the channelTitle
 
 
setChannelTitle
public void setChannelTitle(String channelTitle)
 
- Parameters:
 channelTitle - the channelTitle to set
 
getChannelDescription
public String getChannelDescription()
 
- Returns:
 - the channelDescription
 
 
setChannelDescription
public void setChannelDescription(String channelDescription)
 
- Parameters:
 channelDescription - the channelDescription to set
 
getChannelImage
public de.nava.informa.core.ImageIF getChannelImage()
 
- Returns:
 - the image
 
 
setChannelImage
public void setChannelImage(de.nava.informa.core.ImageIF image)
 
- Parameters:
 image - the image to set
 
getChannelId
public Long getChannelId()
 
- Returns:
 - the channelId
 
 
setChannelId
public void setChannelId(Long channelId)
 
- Parameters:
 channelId - the channelId to set
 
getChannelUrl
public String getChannelUrl()
 
- Returns:
 - the channelUrl
 
 
setChannelUrl
public void setChannelUrl(String channelUrl)
 
- Parameters:
 channelUrl - the channelUrl to set
 
getNbDisplayedItems
public int getNbDisplayedItems()
 
- Returns:
 - the nbDisplayedItems
 
 
setNbDisplayedItems
public void setNbDisplayedItems(int nbDisplayedItems)
 
- Parameters:
 nbDisplayedItems - the nbDisplayedItems to set
 
compareTo
public int compareTo(RSSItem other)
- Specified by:
 compareTo in interface Comparable<RSSItem>
 
 
Copyright © 2016 Silverpeas. All Rights Reserved.