KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portlet > forums > commands > post > RepostCommand


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.post;
12
13
14 import org.jboss.portal.common.command.result.Result;
15 import org.jboss.portlet.forums.commands.CommandConstants;
16 import org.jboss.portlet.forums.model.AuthType;
17 import org.jboss.portlet.JBossActionRequest;
18 import org.jboss.portlet.JBossActionResponse;
19
20 /**
21  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
22  * @version $Revision: 1.3 $
23  */

24 public class RepostCommand
25    extends PostCommand
26 {
27    public RepostCommand(JBossActionRequest request, JBossActionResponse response)
28    {
29       super(request, response);
30    }
31
32    /**
33     * DOCUMENT_ME
34     *
35     * @return DOCUMENT_ME
36     */

37    public int authType()
38    {
39       return AuthType.EDIT;
40    }
41
42    /**
43     * DOCUMENT_ME
44     *
45     * @return DOCUMENT_ME
46     */

47    protected Result __execute()
48    {
49       return CommandConstants.TYPE_REPOSTED;
50    }
51 }
Popular Tags