org.apache.archiva.rss.processor
Class NewVersionsOfArtifactRssFeedProcessor

java.lang.Object
  extended by org.apache.archiva.rss.processor.AbstractArtifactsRssFeedProcessor
      extended by org.apache.archiva.rss.processor.NewVersionsOfArtifactRssFeedProcessor
All Implemented Interfaces:
RssFeedProcessor

@Service(value="rssFeedProcessor#new-versions")
public class NewVersionsOfArtifactRssFeedProcessor
extends AbstractArtifactsRssFeedProcessor

Retrieve and process new versions of an artifact from the database and generate a rss feed. The versions will be grouped by the date when the artifact was gathered. Each group will appear as one entry in the feed.


Field Summary
private static String desc
           
private  RssFeedGenerator generator
           
private  org.slf4j.Logger log
           
private static String title
           
 
Fields inherited from interface org.apache.archiva.rss.processor.RssFeedProcessor
KEY_ARTIFACT_ID, KEY_GROUP_ID, KEY_REPO_ID
 
Constructor Summary
NewVersionsOfArtifactRssFeedProcessor()
           
 
Method Summary
 String getDescription()
           
 RssFeedGenerator getGenerator()
           
 String getTitle()
           
 com.sun.syndication.feed.synd.SyndFeed process(Map<String,String> reqParams, MetadataRepository metadataRepository)
          Process all versions of the artifact which had a rss feed request.
private  com.sun.syndication.feed.synd.SyndFeed processNewVersionsOfArtifact(String groupId, String artifactId, MetadataRepository metadataRepository)
           
 void setGenerator(RssFeedGenerator generator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private org.slf4j.Logger log

title

private static final String title
See Also:
Constant Field Values

desc

private static final String desc
See Also:
Constant Field Values

generator

@Inject
private RssFeedGenerator generator
Constructor Detail

NewVersionsOfArtifactRssFeedProcessor

public NewVersionsOfArtifactRssFeedProcessor()
Method Detail

process

public com.sun.syndication.feed.synd.SyndFeed process(Map<String,String> reqParams,
                                                      MetadataRepository metadataRepository)
                                               throws com.sun.syndication.io.FeedException
Process all versions of the artifact which had a rss feed request.

Throws:
com.sun.syndication.io.FeedException

processNewVersionsOfArtifact

private com.sun.syndication.feed.synd.SyndFeed processNewVersionsOfArtifact(String groupId,
                                                                            String artifactId,
                                                                            MetadataRepository metadataRepository)
                                                                     throws com.sun.syndication.io.FeedException
Throws:
com.sun.syndication.io.FeedException

getTitle

public String getTitle()
Specified by:
getTitle in class AbstractArtifactsRssFeedProcessor

getDescription

public String getDescription()
Specified by:
getDescription in class AbstractArtifactsRssFeedProcessor

getGenerator

public RssFeedGenerator getGenerator()

setGenerator

public void setGenerator(RssFeedGenerator generator)


Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.