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.ValidationException; 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 DeletePollCommand 25 extends PostCommand 26 { 27 28 public DeletePollCommand(JBossActionRequest request, JBossActionResponse response) 29 { 30 super(request, response); 31 } 32 33 38 public int authType() 39 { 40 return AuthType.DELETE; 41 } 42 43 48 protected void prepare() 49 throws ValidationException 50 { 51 57 } 58 59 64 protected Result __execute() 65 { 66 77 return TYPE_POLL_DELETED; 78 } 79 } | Popular Tags |