1 43 package net.jforum.view.forum; 44 45 import net.jforum.Command; 46 import net.jforum.JForumExecutionContext; 47 import net.jforum.util.preferences.TemplateKeys; 48 49 53 public class ModerationAction extends Command 54 { 55 59 public void list() throws Exception 60 { 61 throw new UnsupportedOperationException (); 62 } 63 64 public void doModeration() throws Exception 65 { 66 String returnUrl = this.request.getParameter("returnUrl"); 67 68 new ModerationHelper().doModeration(returnUrl); 69 70 this.context.put("returnUrl", returnUrl); 71 72 if (JForumExecutionContext.getRequest().getParameter("topicMove") != null) { 73 this.setTemplateName(TemplateKeys.MODERATION_MOVE_TOPICS); 74 } 75 } 76 77 public void moveTopic() throws Exception 78 { 79 new ModerationHelper().moveTopicsSave(this.request.getParameter("returnUrl")); 80 } 81 82 public void moderationDone() throws Exception 83 { 84 this.setTemplateName(new ModerationHelper().moderationDone(this.request.getParameter("returnUrl"))); 85 } 86 } 87 | Popular Tags |