fr.paris.lutece.plugins.rss.business
Interface IRssFeedDAO

All Known Implementing Classes:
RssFeedDAO

public interface IRssFeedDAO

IRssFeedDAO


Method Summary
 boolean checkUrlNotUsed(java.lang.String strUrl)
          Checks whether url referenced is pointed as an external feed
 void delete(RssFeed rssFeed)
          Delete a record from the table
 void insert(RssFeed rssFeed)
          Insert a new record in the table.
 RssFeed load(int nRssFeedId, boolean bActive)
          Load the data of RssFeed from the table
 int newPrimaryKey(boolean bActive)
          Generates a new primary key either in the active feed table or in the inactive feed one
 fr.paris.lutece.util.ReferenceList selectRssFeedReferenceList(boolean bActive)
          Load the list of rssFeeds
 java.util.List<RssFeed> selectRssFeeds(boolean bActive)
          Load the list of rssFeeds
 void store(RssFeed rssFeed)
          Update the record in the table
 void storeLastFetchInfos(RssFeed rssFeed)
          Update the record in the table
 

Method Detail

newPrimaryKey

int newPrimaryKey(boolean bActive)
Generates a new primary key either in the active feed table or in the inactive feed one

Parameters:
bActive - true for the active feed table
Returns:
The new primary key

checkUrlNotUsed

boolean checkUrlNotUsed(java.lang.String strUrl)
Checks whether url referenced is pointed as an external feed

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

delete

void delete(RssFeed rssFeed)
Delete a record from the table

Parameters:
rssFeed - the feed to delete

insert

void insert(RssFeed rssFeed)
Insert a new record in the table.

Parameters:
rssFeed - The rssFeed object

load

RssFeed load(int nRssFeedId,
             boolean bActive)
Load the data of RssFeed from the table

Parameters:
nRssFeedId - The identifier of RssFeed
bActive - true if the field is active
Returns:
the instance of the RssFeed

selectRssFeedReferenceList

fr.paris.lutece.util.ReferenceList selectRssFeedReferenceList(boolean bActive)
Load the list of rssFeeds

Parameters:
bActive - true for active feeds
Returns:
A referenceList representing the RssFeeds

selectRssFeeds

java.util.List<RssFeed> selectRssFeeds(boolean bActive)
Load the list of rssFeeds

Parameters:
bActive - true if the field is active
Returns:
The List of the RssFeeds

store

void store(RssFeed rssFeed)
Update the record in the table

Parameters:
rssFeed - The reference of rssFeed

storeLastFetchInfos

void storeLastFetchInfos(RssFeed rssFeed)
Update the record in the table

Parameters:
rssFeed - The reference of rssFeed


Copyright © 2011 Mairie de Paris. All Rights Reserved.