1 23 24 package org.infoglue.cms.applications.managementtool.actions; 25 26 import org.infoglue.cms.applications.common.actions.InfoGlueAbstractAction; 27 import org.infoglue.cms.controllers.kernel.impl.simple.RedirectController; 28 import org.infoglue.cms.entities.management.RedirectVO; 29 import org.infoglue.cms.exception.ConstraintException; 30 import org.infoglue.cms.exception.SystemException; 31 32 37 38 public class DeleteRedirectAction extends InfoGlueAbstractAction 39 { 40 private RedirectVO redirectVO; 41 private Integer redirectId; 42 43 public DeleteRedirectAction() 44 { 45 this(new RedirectVO()); 46 } 47 48 public DeleteRedirectAction(RedirectVO redirectVO) 49 { 50 this.redirectVO = redirectVO; 51 } 52 53 protected String doExecute() throws ConstraintException, Exception 54 { 55 this.redirectVO.setRedirectId(this.getRedirectId()); 56 RedirectController.getController().delete(this.redirectVO); 57 return "success"; 58 } 59 60 public void setRedirectId(Integer redirectId) throws SystemException 61 { 62 this.redirectVO.setRedirectId(redirectId); 63 } 64 65 public java.lang.Integer getRedirectId() 66 { 67 return this.redirectVO.getRedirectId(); 68 } 69 70 71 } 72 | Popular Tags |