fr.paris.lutece.portal.business.rss
Class ResourceRss

java.lang.Object
  extended by fr.paris.lutece.portal.business.rss.ResourceRss
All Implemented Interfaces:
IResourceRss

public abstract class ResourceRss
extends Object
implements IResourceRss

ResourceRss that provides the resources rss. Implementations should override getFeed().


Constructor Summary
ResourceRss()
           
 
Method Summary
 String createHtmlRss()
          Deprecated. 
 String getDescription()
          Get Rss resource Description
 String getEncoding()
          Gets the encoding
 IFeedResource getFeed()
          Returns null.
 String getFeedType()
          Gets the feed type
 int getId()
          Get the rss id
 int getMaxItems()
          The number of displayed item.
 String getName()
          Get The RSS resource name
 IResourceRssType getResourceRssType()
          Get the RSS Resource Type
 void setDescription(String strDescription)
          Set the RSS resource description
 void setEncoding(String strEncoding)
          Sets the encoding
 void setFeedType(String strFeedType)
          Sets the feed type
 void setId(int nId)
          Set the rss id
 void setMaxItems(int nMaxItems)
          Sets the number of displayed item
 void setName(String strName)
          Set the RSS resource name
 void setResourceRssType(IResourceRssType taskType)
          Set the ResourceRssType object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fr.paris.lutece.portal.business.rss.IResourceRss
checkResource, contentResourceRss, deleteResourceRssConfig, doSaveConfig, doUpdateConfig, doValidateConfigForm, getDisplayCreateConfigForm, getDisplayModifyConfigForm, getParameterToApply
 

Constructor Detail

ResourceRss

public ResourceRss()
Method Detail

getId

public int getId()
Get the rss id

Specified by:
getId in interface IResourceRss
Returns:
the rss Id

setId

public void setId(int nId)
Set the rss id

Specified by:
setId in interface IResourceRss
Parameters:
nId - the rss id

getDescription

public String getDescription()
Get Rss resource Description

Specified by:
getDescription in interface IResourceRss
Returns:
the description

setDescription

public void setDescription(String strDescription)
Set the RSS resource description

Specified by:
setDescription in interface IResourceRss
Parameters:
strDescription - the description

getName

public String getName()
Get The RSS resource name

Specified by:
getName in interface IResourceRss
Returns:
the name

setName

public void setName(String strName)
Set the RSS resource name

Specified by:
setName in interface IResourceRss
Parameters:
strName - the name

getResourceRssType

public IResourceRssType getResourceRssType()
Get the RSS Resource Type

Specified by:
getResourceRssType in interface IResourceRss
Returns:
the ResourceRssType Object

setResourceRssType

public void setResourceRssType(IResourceRssType taskType)
Set the ResourceRssType object.

Specified by:
setResourceRssType in interface IResourceRss
Parameters:
taskType - the new resource rss type

getFeedType

public String getFeedType()
Gets the feed type

Specified by:
getFeedType in interface IResourceRss
Returns:
the feed type

setFeedType

public void setFeedType(String strFeedType)
Sets the feed type

Specified by:
setFeedType in interface IResourceRss
Parameters:
strFeedType - the feed type

getEncoding

public String getEncoding()
Gets the encoding

Specified by:
getEncoding in interface IResourceRss
Returns:
the encoding

setEncoding

public void setEncoding(String strEncoding)
Sets the encoding

Specified by:
setEncoding in interface IResourceRss
Parameters:
strEncoding - the encoding

getMaxItems

public int getMaxItems()
The number of displayed item.

Specified by:
getMaxItems in interface IResourceRss
Returns:
the number of displayed item

setMaxItems

public void setMaxItems(int nMaxItems)
Sets the number of displayed item

Specified by:
setMaxItems in interface IResourceRss
Parameters:
nMaxItems - number of displayed item

getFeed

public IFeedResource getFeed()
Returns null. This method should be overriden.

Specified by:
getFeed in interface IResourceRss
Returns:
the feed

createHtmlRss

@Deprecated
public String createHtmlRss()
Deprecated. 

Always returns null and should be removed as soon as every plugin implement getFeed().

Specified by:
createHtmlRss in interface IResourceRss
Returns:
the string


Copyright © 2014 Mairie de Paris. All Rights Reserved.