public abstract class AbstractFeedmashJob extends Object implements org.quartz.Job
| Modifier and Type | Field and Description |
|---|---|
protected String |
feedLastCheck |
protected String |
feedUrl |
protected static String |
LAST_CHECKED |
protected String |
password |
protected String |
pluginName |
protected String |
portalContainer |
protected Integer |
rampup |
protected String |
targetActivityStream |
protected String |
username |
| Constructor and Description |
|---|
AbstractFeedmashJob() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
accept(com.sun.syndication.feed.synd.SyndEntryImpl entry) |
protected boolean |
alreadyChecked(Date date) |
void |
beforeJobExecute(org.quartz.JobDataMap dataMap) |
void |
execute(org.quartz.JobExecutionContext context)
Feedmash job.
|
protected org.exoplatform.social.core.identity.model.Identity |
getAppIdentity(Application app) |
protected <T> T |
getExoComponent(Class<T> type) |
protected org.exoplatform.social.core.identity.model.Identity |
getIdentity(String targetUser) |
protected Object |
getState(String key) |
protected String |
getStateKey(String key) |
protected String |
getStringParam(org.quartz.JobDataMap dataMap,
String name,
String defaultValue) |
protected abstract void |
handle(com.sun.syndication.feed.synd.SyndEntryImpl entry) |
protected void |
publishActivity(String message,
org.exoplatform.social.core.identity.model.Identity from,
org.exoplatform.social.core.identity.model.Identity to)
Publish an activity
|
protected void |
saveState(String key,
Object state) |
protected static final String LAST_CHECKED
protected String targetActivityStream
protected String portalContainer
protected String feedUrl
protected Integer rampup
protected String pluginName
protected String feedLastCheck
protected String username
protected String password
public void execute(org.quartz.JobExecutionContext context)
throws org.quartz.JobExecutionException
execute in interface org.quartz.Joborg.quartz.JobExecutionExceptionprotected abstract void handle(com.sun.syndication.feed.synd.SyndEntryImpl entry)
protected abstract boolean accept(com.sun.syndication.feed.synd.SyndEntryImpl entry)
public void beforeJobExecute(org.quartz.JobDataMap dataMap)
protected boolean alreadyChecked(Date date)
protected <T> T getExoComponent(Class<T> type)
protected void publishActivity(String message, org.exoplatform.social.core.identity.model.Identity from, org.exoplatform.social.core.identity.model.Identity to) throws Exception
message - body of the activityfrom - owner of the activityto - target of the activityExceptionprotected org.exoplatform.social.core.identity.model.Identity getIdentity(String targetUser)
protected String getStringParam(org.quartz.JobDataMap dataMap, String name, String defaultValue)
protected org.exoplatform.social.core.identity.model.Identity getAppIdentity(Application app) throws Exception
ExceptionCopyright © 2003–2019 eXo Platform SAS. All rights reserved.