1 11 package org.jboss.portlet.forums.commands.admin; 12 13 import org.jboss.portal.common.command.result.Result; 14 import org.jboss.portlet.forums.commands.AbstractCommand; 15 import org.jboss.portlet.forums.model.Category; 16 import org.jboss.portlet.forums.model.Forum; 17 import org.jboss.portlet.JBossActionRequest; 18 import org.jboss.portlet.JBossActionResponse; 19 20 25 public class UpdateForumCommand 26 extends AbstractCommand 27 { 28 29 public String name; 30 31 32 public String description; 33 34 35 public Category category; 36 37 38 public Forum forum; 39 40 public UpdateForumCommand(JBossActionRequest request, JBossActionResponse response) 41 { 42 super(request, response); 43 } 44 45 50 public Result execute() 51 { 52 forum.setCategory(category); 53 forum.setName(name); 54 forum.setDescription(description); 55 return TYPE_FORUM_UPDATED; 56 } 57 } | Popular Tags |