[Lutinweb-commits] r86 - in trunk/lutinrss: . src/main/java/org/codelutin/rss
Author: tchemit Date: 2008-06-09 14:47:31 +0000 (Mon, 09 Jun 2008) New Revision: 86 Modified: trunk/lutinrss/pom.xml trunk/lutinrss/src/main/java/org/codelutin/rss/RSSGenerator.java Log: version 2.3.3 : nbItems is a field of RSSGenerator Modified: trunk/lutinrss/pom.xml =================================================================== --- trunk/lutinrss/pom.xml 2008-06-05 20:20:27 UTC (rev 85) +++ trunk/lutinrss/pom.xml 2008-06-09 14:47:31 UTC (rev 86) @@ -24,7 +24,7 @@ <packaging>war</packaging> <!--Version--> - <version>2.3.2</version> + <version>2.3.3</version> <!--Description--> <description>Servlet pouvant etre appeler depuis du JS pour recuperer un Modified: trunk/lutinrss/src/main/java/org/codelutin/rss/RSSGenerator.java =================================================================== --- trunk/lutinrss/src/main/java/org/codelutin/rss/RSSGenerator.java 2008-06-05 20:20:27 UTC (rev 85) +++ trunk/lutinrss/src/main/java/org/codelutin/rss/RSSGenerator.java 2008-06-09 14:47:31 UTC (rev 86) @@ -55,16 +55,19 @@ protected final File generatorDirectory; /** feed format to use **/ protected final FeedType format; + /** number of feed to use by default */ + protected final int nbItems; protected RSSGenerator() { this(null); } - protected RSSGenerator(EnumMap<Field, String> feedProperties, EnumMap<Field, String> itemProperties, File generatorDirectory,FeedType format) { + protected RSSGenerator(EnumMap<Field, String> feedProperties, EnumMap<Field, String> itemProperties, File generatorDirectory,FeedType format,int nbItems) { this.feedProperties = feedProperties; this.itemProperties = itemProperties; this.generatorDirectory = generatorDirectory; this.format=format; + this.nbItems=nbItems; } protected RSSGenerator(File generatorDirectory) { @@ -89,6 +92,7 @@ this.generatorDirectory = generatorDirectory==null?new File(RSSGeneratorConfig.GENERATOR_DIRECTORY):generatorDirectory; this.format=FeedType.valueOf(RSSGeneratorConfig.DEFAULT_GENERATOR_FORMAT); + this.nbItems = RSSGeneratorConfig.DEFAULT_GENERATOR_NB_ITEM; } /** @@ -205,6 +209,10 @@ public File getFeedFile(String name) { return new File(getGeneratorDirectory(),name+".xml"); } + + public int getNbItems() { + return nbItems; + } /** * Obtain the file from his url location.
participants (1)
-
tchemit@users.labs.libre-entreprise.org