1 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 24 public class RepostCommand 25 extends PostCommand 26 { 27 public RepostCommand(JBossActionRequest request, JBossActionResponse response) 28 { 29 super(request, response); 30 } 31 32 37 public int authType() 38 { 39 return AuthType.EDIT; 40 } 41 42 47 protected Result __execute() 48 { 49 return CommandConstants.TYPE_REPOSTED; 50 } 51 } | Popular Tags |