From: Julien V. <coo...@us...> - 2002-12-05 16:31:57
|
User: cooperfbi Date: 02/12/05 08:31:54 Modified: forums/src/main/org/jboss/forums/web/tapestry/management/category AllCategoriesPage.java Log: o removed obsolete ItemCollectionDisplay component o removed obsolete AllForumsPage page o added category and forum sorting o added orphan forum management in AllCategoriesPage Revision Changes Path 1.5 +29 -1 applications/forums/src/main/org/jboss/forums/web/tapestry/management/category/AllCategoriesPage.java Index: AllCategoriesPage.java =================================================================== RCS file: /cvsroot/jboss/applications/forums/src/main/org/jboss/forums/web/tapestry/management/category/AllCategoriesPage.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- AllCategoriesPage.java 3 Dec 2002 00:27:55 -0000 1.4 +++ AllCategoriesPage.java 5 Dec 2002 16:31:53 -0000 1.5 @@ -17,7 +17,7 @@ /** * @author <a href="mailto:jul...@ya...">Julien Viet</a> - * @version $Revision: 1.4 $ + * @version $Revision: 1.5 $ */ public class AllCategoriesPage extends AdminPage @@ -83,6 +83,34 @@ Integer forumId = (Integer) cycle.getServiceParameters()[0]; ForumEJBLocal forum = HomeHelper.findForum(forumId); getForumVisit().removeForum(forum); + } + + public void moveUp(IRequestCycle cycle) + { + Integer categoryId = (Integer) cycle.getServiceParameters()[0]; + CategoryEJBLocal category = HomeHelper.findCategory(categoryId); + getForumVisit().moveUpCategory(category); + } + + public void moveDown(IRequestCycle cycle) + { + Integer categoryId = (Integer) cycle.getServiceParameters()[0]; + CategoryEJBLocal category = HomeHelper.findCategory(categoryId); + getForumVisit().moveDownCategory(category); + } + + public void moveUpForum(IRequestCycle cycle) + { + Integer forumId = (Integer) cycle.getServiceParameters()[0]; + ForumEJBLocal forum = HomeHelper.findForum(forumId); + getForumVisit().moveUpForum(forum); + } + + public void moveDownForum(IRequestCycle cycle) + { + Integer forumId = (Integer) cycle.getServiceParameters()[0]; + ForumEJBLocal forum = HomeHelper.findForum(forumId); + getForumVisit().moveDownForum(forum); } } |