Author: cvrabie
Date: 2008-02-11 19:10:46 +0100 (Mon, 11 Feb 2008)
New Revision: 7519
Modified:
xwiki-products/curriki/trunk/plugins/currikispacemanager/src/main/java/org/curriki/plugin/spacemanager/impl/CurrikiSpaceManager.java
Log:
CURRIKI-1599 Made the getGroupsByTopic function return the groups ordered by
creation date, descending.
Modified:
xwiki-products/curriki/trunk/plugins/currikispacemanager/src/main/java/org/curriki/plugin/spacemanager/impl/CurrikiSpaceManager.java
===================================================================
---
xwiki-products/curriki/trunk/plugins/currikispacemanager/src/main/java/org/curriki/plugin/spacemanager/impl/CurrikiSpaceManager.java
2008-02-11 17:54:36 UTC (rev 7518)
+++
xwiki-products/curriki/trunk/plugins/currikispacemanager/src/main/java/org/curriki/plugin/spacemanager/impl/CurrikiSpaceManager.java
2008-02-11 18:10:46 UTC (rev 7519)
@@ -109,7 +109,7 @@
String fromhql = ", BaseObject as cobj, DBStringListProperty as lprop";
String wheresql = " and doc.fullName=cobj.name and cobj.className='" +
currikiClassName
+ "' and cobj.id=lprop.id.id and lprop.id.name='" +
CurrikiSpace.SPACE_TOPIC + "' and '" + topic + "' in elements(lprop.list)" ;
- return searchSpaces(fromhql, wheresql, nb, start, context);
+ return searchSpaces(fromhql, wheresql, "order by doc.creationDate
desc", nb, start, context);
}
public List getSpaceNamesByTopic(String topic, int nb, int start,
XWikiContext context) throws SpaceManagerException {
@@ -117,7 +117,7 @@
String fromhql = ", BaseObject as cobj, DBStringListProperty as lprop";
String wheresql = " and doc.fullName=cobj.name and cobj.className='" +
currikiClassName
+ "' and cobj.id=lprop.id.id and lprop.id.name='" +
CurrikiSpace.SPACE_TOPIC + "' and '" + topic + "' in elements(lprop.list)" ;
- return searchSpaceNames(fromhql, wheresql, nb, start, context);
+ return searchSpaceNames(fromhql, wheresql, "order by doc.creationDate
desc", nb, start, context);
}
public List countSpacesByTopic(String parentTopic, XWikiContext context)
throws SpaceManagerException {
_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications