org.exoplatform.social.extras.feedmash.consumer
Class JiraFeedConsumer

java.lang.Object
  extended by org.exoplatform.social.extras.feedmash.AbstractFeedmashJob
      extended by org.exoplatform.social.extras.feedmash.consumer.JiraFeedConsumer
All Implemented Interfaces:
org.quartz.Job

public class JiraFeedConsumer
extends AbstractFeedmashJob

Republishes some entries selected from a JIRA feed as activities into an activity stream.

Version:
$Revision$
Author:
Patrice Lamarque

Field Summary
 
Fields inherited from class org.exoplatform.social.extras.feedmash.AbstractFeedmashJob
feedLastCheck, feedUrl, LAST_CHECKED, password, pluginName, portalContainer, rampup, targetActivityStream, username
 
Constructor Summary
JiraFeedConsumer()
           
 
Method Summary
protected  boolean accept(com.sun.syndication.feed.synd.SyndEntryImpl entry)
          A feed entry is accepted if its title matches "categoryMatch".
 void beforeJobExecute(org.quartz.JobDataMap dataMap)
           
protected  void handle(com.sun.syndication.feed.synd.SyndEntryImpl entry)
          Publish the entry title as an activity on the 'targetActivityStream'
 
Methods inherited from class org.exoplatform.social.extras.feedmash.AbstractFeedmashJob
alreadyChecked, execute, getAppIdentity, getExoComponent, getIdentity, getState, getStateKey, getStringParam, publishActivity, saveState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JiraFeedConsumer

public JiraFeedConsumer()
Method Detail

accept

protected boolean accept(com.sun.syndication.feed.synd.SyndEntryImpl entry)
A feed entry is accepted if its title matches "categoryMatch".

Specified by:
accept in class AbstractFeedmashJob

handle

protected void handle(com.sun.syndication.feed.synd.SyndEntryImpl entry)
Publish the entry title as an activity on the 'targetActivityStream'

Specified by:
handle in class AbstractFeedmashJob

beforeJobExecute

public void beforeJobExecute(org.quartz.JobDataMap dataMap)
Overrides:
beforeJobExecute in class AbstractFeedmashJob


Copyright © 2013 eXo Platform SAS. All Rights Reserved.