fr.paris.lutece.plugins.rss.business
Class RssFeedHome

java.lang.Object
  extended by fr.paris.lutece.plugins.rss.business.RssFeedHome

public final class RssFeedHome
extends java.lang.Object

This class provides instances management methods (create, find, ...) for RssFeed objects


Method Summary
static boolean checkUrlNotUsed(java.lang.String strUrl)
          Checks whether the a url is found in one of the external feeds
static RssFeed create(RssFeed rssFeed)
          Creation of an instance of rssFeed
static RssFeed findByPrimaryKey(int nKey)
          Returns an instance of a rssFeed whose identifier is specified in parameter
static java.util.List<RssFeed> getRssFeeds()
          Returns a list of rss feeds
static fr.paris.lutece.util.ReferenceList getRssFeedsReferenceList()
          Returns a list of rssFeeds objects
static void remove(int nId)
          Remove the RssFeed whose identifier is specified in parameter
static RssFeed update(RssFeed rssFeed)
          Update of the rssFeed which is specified in parameter
static RssFeed updateLastFetchInfos(RssFeed rssFeed)
          Update of the rssFeed which is specified in parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static RssFeed create(RssFeed rssFeed)
Creation of an instance of rssFeed

Parameters:
rssFeed - The instance of the rssFeed which contains the informations to store
Returns:
The instance of rssFeed which has been created with its primary key.

update

public static RssFeed update(RssFeed rssFeed)
Update of the rssFeed which is specified in parameter

Parameters:
rssFeed - The instance of the rssFeed which contains the data to store
Returns:
The instance of the rssFeed which has been updated

updateLastFetchInfos

public static RssFeed updateLastFetchInfos(RssFeed rssFeed)
Update of the rssFeed which is specified in parameter

Parameters:
rssFeed - The instance of the rssFeed which contains the data to store
Returns:
The instance of the rssFeed which has been updated

remove

public static void remove(int nId)
Remove the RssFeed whose identifier is specified in parameter

Parameters:
nId -

findByPrimaryKey

public static RssFeed findByPrimaryKey(int nKey)
Returns an instance of a rssFeed whose identifier is specified in parameter

Parameters:
nKey - The Primary key of the rssFeed
Returns:
An instance of rssFeed

getRssFeeds

public static java.util.List<RssFeed> getRssFeeds()
Returns a list of rss feeds

Returns:
A List of rssFeeds

getRssFeedsReferenceList

public static fr.paris.lutece.util.ReferenceList getRssFeedsReferenceList()
Returns a list of rssFeeds objects

Returns:
A list of rssFeeds

checkUrlNotUsed

public static boolean checkUrlNotUsed(java.lang.String strUrl)
Checks whether the a url is found in one of the external feeds

Parameters:
strUrl - The url to be tested
Returns:
The boolean result


Copyright © 2007 Mairie de Paris. All Rights Reserved.