public final class RssFeedHome extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkUrlNotUsed(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,
boolean bActive)
Returns an instance of a rssFeed whose identifier is specified in parameter
|
static List<RssFeed> |
getRssFeeds()
Returns a list of rss feeds
|
static List<RssFeed> |
getRssFeeds(boolean bActive)
Returns a list of rss feeds
|
static fr.paris.lutece.util.ReferenceList |
getRssFeedsReferenceList()
Returns a list of rssFeeds objects
|
static fr.paris.lutece.util.ReferenceList |
getRssFeedsReferenceList(boolean bActive)
Returns a list of rssFeeds objects
|
static void |
remove(RssFeed rssFeed)
Remove the RssFeed
|
static RssFeed |
setActive(RssFeed rssFeed,
boolean bActive)
De/activate a feed
|
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
|
static RssFeed |
updateOrder(RssFeed rssFeed,
int nNewOrder)
Updates an active feed to a new order and shifts in-between feeds consequently.
|
public static RssFeed create(RssFeed rssFeed)
rssFeed - The instance of the rssFeed which contains the informations to storepublic static RssFeed update(RssFeed rssFeed)
rssFeed - The instance of the rssFeed which contains the data to storepublic static RssFeed updateLastFetchInfos(RssFeed rssFeed)
rssFeed - The instance of the rssFeed which contains the data to storepublic static void remove(RssFeed rssFeed)
rssFeed - The rssFeed to removepublic static RssFeed findByPrimaryKey(int nKey, boolean bActive)
nKey - The Primary key of the rssFeedbActive - true if the rssFeed is active, false otherwisepublic static List<RssFeed> getRssFeeds()
public static List<RssFeed> getRssFeeds(boolean bActive)
bActive - true for active feedspublic static fr.paris.lutece.util.ReferenceList getRssFeedsReferenceList()
public static fr.paris.lutece.util.ReferenceList getRssFeedsReferenceList(boolean bActive)
bActive - true for active feedspublic static boolean checkUrlNotUsed(String strUrl)
strUrl - The url to be testedpublic static RssFeed updateOrder(RssFeed rssFeed, int nNewOrder) throws IndexOutOfBoundsException
rssFeed - The feed to update ordernNewOrder - the new order for the feednull if the feed is inactiveIndexOutOfBoundsException - if the new order parameter is less than 1 or greater than the current max orderCopyright © 2018 City of Paris. All rights reserved.