KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portlet > forums > commands > admin > UpdateCategoryCommand


1 /*****************************************
2  * *
3  * JBoss Portal: The OpenSource Portal *
4  * *
5  * Forums JBoss Portlet *
6  * *
7  * Distributable under GPL license. *
8  * See terms of license at gnu.org. *
9  * *
10  *****************************************/

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.JBossActionRequest;
17 import org.jboss.portlet.JBossActionResponse;
18
19 /**
20  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
21  * @author <a HREF="mailto:theute@jboss.org">Thomas Heute</a>
22  * @version $Revision: 1.2 $
23  */

24 public class UpdateCategoryCommand
25    extends AbstractCommand
26 {
27    /** DOCUMENT_ME */
28    public Category category;
29
30    /** DOCUMENT_ME */
31    public String JavaDoc title;
32
33    public UpdateCategoryCommand(JBossActionRequest request, JBossActionResponse response)
34    {
35       super(request, response);
36    }
37
38    /**
39     * DOCUMENT_ME
40     *
41     * @return DOCUMENT_ME
42     */

43    public Result execute()
44    {
45       category.setTitle(title);
46       return TYPE_CATEGORY_UPDATED;
47    }
48 }
Popular Tags