Update of
/var/cvs/contributions/CMSContainer/cmsc/portlets/src/java/com/finalist/cmsc/portlets
In directory
james.mmbase.org:/tmp/cvs-serv20577/cmsc/portlets/src/java/com/finalist/cmsc/portlets
Modified Files:
ContentChannelPortlet.java
Log Message:
CMSC-1189 - Add age constraint to contentchannel portlets - Removed old
getContentElements method
See also:
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer/cmsc/portlets/src/java/com/finalist/cmsc/portlets
See also: http://www.mmbase.org/jira/browse/CMSC-1189
Index: ContentChannelPortlet.java
===================================================================
RCS file:
/var/cvs/contributions/CMSContainer/cmsc/portlets/src/java/com/finalist/cmsc/portlets/ContentChannelPortlet.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -b -r1.15 -r1.16
--- ContentChannelPortlet.java 19 Dec 2008 14:04:58 -0000 1.15
+++ ContentChannelPortlet.java 22 Jan 2009 14:13:52 -0000 1.16
@@ -260,15 +260,6 @@
return totalItems;
}
-
- protected List<ContentElement> getContentElements(RenderRequest req,
List<String> contenttypes, String channel,
- int offset, String orderby, String direction, String archive, int
elementsPerPage, int year, int month,
- int day, boolean useLifecycleBool) {
- List<ContentElement> elements =
ContentRepository.getContentElements(channel, contenttypes, orderby, direction,
- useLifecycleBool, archive, offset, elementsPerPage, year, month,
day);
- return elements;
- }
-
protected List<ContentElement> getContentElements(RenderRequest req,
List<String> contenttypes, String channel,
int offset, String orderby, String direction, String archive, int
elementsPerPage, int year, int month,
int day, boolean useLifecycleBool, int maxDays) {
@@ -276,6 +267,7 @@
useLifecycleBool, archive, offset, elementsPerPage, year, month,
day,maxDays);
return elements;
}
+
public int getOffset(int currentPage, int pageSize) {
return ((currentPage - 1) * pageSize) + 1;
}
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs