org.apache.archiva.rss.processor
Class NewArtifactsRssFeedProcessor
java.lang.Object
org.apache.archiva.rss.processor.AbstractArtifactsRssFeedProcessor
org.apache.archiva.rss.processor.NewArtifactsRssFeedProcessor
- All Implemented Interfaces:
- RssFeedProcessor
@Service(value="rssFeedProcessor#new-artifacts")
public class NewArtifactsRssFeedProcessor
- extends AbstractArtifactsRssFeedProcessor
Retrieve and process all artifacts of a repository from the database and generate a rss feed.
The artifacts will be grouped by the date when the artifacts were gathered.
Each group will appear as one entry in the feed.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
numberOfDaysBeforeNow
private int numberOfDaysBeforeNow
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
log
private org.slf4j.Logger log
GMT_TIME_ZONE
private static final TimeZone GMT_TIME_ZONE
NewArtifactsRssFeedProcessor
public NewArtifactsRssFeedProcessor()
process
public com.sun.syndication.feed.synd.SyndFeed process(Map<String,String> reqParams,
MetadataRepository metadataRepository)
throws com.sun.syndication.io.FeedException
- Process the newly discovered artifacts in the repository. Generate feeds for new artifacts in the repository and
new versions of artifact.
- Throws:
com.sun.syndication.io.FeedException
processNewArtifactsInRepo
private com.sun.syndication.feed.synd.SyndFeed processNewArtifactsInRepo(String repoId,
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)
getNumberOfDaysBeforeNow
public int getNumberOfDaysBeforeNow()
setNumberOfDaysBeforeNow
public void setNumberOfDaysBeforeNow(int numberOfDaysBeforeNow)
Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.