public class RSSAggregator extends Object implements info.magnolia.module.ModuleLifecycle
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_CONTENT_TYPE |
static String |
DEFAULT_ENCODING |
static String |
DEFAULT_FEEDTYPE |
static String |
RSS_CONFIG_PATH |
Constructor and Description |
---|
RSSAggregator()
Deprecated.
since 2.3.4, use
RSSAggregator(SchedulerModule scheduler) instead. |
RSSAggregator(info.magnolia.module.scheduler.SchedulerModule scheduler) |
Modifier and Type | Method and Description |
---|---|
void |
addFeedGenerator(String name,
FeedGenerator feedGenerator) |
Map<String,FeedGenerator> |
getFeedGenerators() |
RSSFeedFetcher |
getFetcher()
Deprecated.
since 2.3.4 use
newFetcher() instead. |
Class<? extends RSSFeedFetcher> |
getFetcherClass() |
static RSSAggregator |
getInstance()
Deprecated.
since 2.2.4, use IoC instead
|
RSSJob |
getJobByName(String name) |
Map<String,RSSJob> |
getJobs() |
int |
getMonthsIncluded() |
Map<String,String> |
getPlanetOptions() |
boolean |
jobExists(String name) |
void |
mapRSSJob(String name)
Deprecated.
since 2.3.4. Use
#scheduleRSSJob(String name)) instead. |
RSSFeedFetcher |
newFetcher() |
void |
registerJob(String name,
RSSJob job)
Deprecated.
since 2.3.4 without replacement.
|
void |
removeJob(String key)
Deprecated.
since 2.3.4 without replacement.
|
void |
scheduleRSSJob(String name) |
void |
setFeedGenerators(HashMap<String,FeedGenerator> feedGenerators) |
void |
setFetcherClass(Class<? extends RSSFeedFetcher> fetcherClass) |
void |
setPlanetOptions(Map<String,String> planetOptions) |
void |
start(info.magnolia.module.ModuleLifecycleContext moduleLifecycleContext) |
void |
stop(info.magnolia.module.ModuleLifecycleContext moduleLifecycleContext) |
public static final String DEFAULT_FEEDTYPE
public static final String DEFAULT_ENCODING
public static final String DEFAULT_CONTENT_TYPE
public static final String RSS_CONFIG_PATH
@Deprecated public RSSAggregator()
RSSAggregator(SchedulerModule scheduler)
instead.@Inject public RSSAggregator(info.magnolia.module.scheduler.SchedulerModule scheduler)
public static RSSAggregator getInstance()
public Map<String,FeedGenerator> getFeedGenerators()
public void setFeedGenerators(HashMap<String,FeedGenerator> feedGenerators)
public void addFeedGenerator(String name, FeedGenerator feedGenerator)
public int getMonthsIncluded()
public void setFetcherClass(Class<? extends RSSFeedFetcher> fetcherClass)
public Class<? extends RSSFeedFetcher> getFetcherClass()
@Deprecated public RSSFeedFetcher getFetcher()
newFetcher()
instead.public RSSFeedFetcher newFetcher()
@Deprecated public void mapRSSJob(String name) throws javax.jcr.RepositoryException, info.magnolia.jcr.node2bean.Node2BeanException
#scheduleRSSJob(String name))
instead.javax.jcr.RepositoryException
info.magnolia.jcr.node2bean.Node2BeanException
public void scheduleRSSJob(String name) throws javax.jcr.RepositoryException, info.magnolia.jcr.node2bean.Node2BeanException
javax.jcr.RepositoryException
info.magnolia.jcr.node2bean.Node2BeanException
public boolean jobExists(String name)
@Deprecated public void removeJob(String key)
@Deprecated public void registerJob(String name, RSSJob job)
public void start(info.magnolia.module.ModuleLifecycleContext moduleLifecycleContext)
start
in interface info.magnolia.module.ModuleLifecycle
public void stop(info.magnolia.module.ModuleLifecycleContext moduleLifecycleContext)
stop
in interface info.magnolia.module.ModuleLifecycle
Copyright © 2016 Magnolia International Ltd.. All rights reserved.