|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.rss.business.RssFeedHome
public final class RssFeedHome
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,
boolean bActive)
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 java.util.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static RssFeed create(RssFeed rssFeed)
rssFeed
- The instance of the rssFeed which contains the informations to store
public static RssFeed update(RssFeed rssFeed)
rssFeed
- The instance of the rssFeed which contains the data to store
public static RssFeed updateLastFetchInfos(RssFeed rssFeed)
rssFeed
- The instance of the rssFeed which contains the data to store
public 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
otherwise
public static java.util.List<RssFeed> getRssFeeds()
public static java.util.List<RssFeed> getRssFeeds(boolean bActive)
bActive
- true
for active feeds
public static fr.paris.lutece.util.ReferenceList getRssFeedsReferenceList()
public static fr.paris.lutece.util.ReferenceList getRssFeedsReferenceList(boolean bActive)
bActive
- true
for active feeds
public static boolean checkUrlNotUsed(java.lang.String strUrl)
strUrl
- The url to be tested
public static RssFeed updateOrder(RssFeed rssFeed, int nNewOrder) throws java.lang.IndexOutOfBoundsException
rssFeed
- The feed to update ordernNewOrder
- the new order for the feed
null
if the feed is inactive
java.lang.IndexOutOfBoundsException
- if the new order parameter is less than 1 or greater than the current max orderpublic static RssFeed setActive(RssFeed rssFeed, boolean bActive)
rssFeed
- the feed to de/activatebActive
- true
to activate the feed, false
otherwise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |