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.LanguageController; 28 import org.infoglue.cms.entities.management.LanguageVO; 29 import org.infoglue.cms.exception.SystemException; 30 31 36 37 public class DeleteLanguageAction extends InfoGlueAbstractAction 38 { 39 private static final long serialVersionUID = 1L; 40 41 private LanguageVO languageVO; 42 private Integer languageId; 43 44 public DeleteLanguageAction() 45 { 46 this(new LanguageVO()); 47 } 48 49 public DeleteLanguageAction(LanguageVO languageVO) { 50 this.languageVO = languageVO; 51 } 52 53 protected String doExecute() throws Exception 54 { 55 this.languageVO.setLanguageId(this.getLanguageId()); 56 LanguageController.getController().delete(languageVO); 57 58 return "success"; 59 } 60 61 public void setLanguageId(Integer languageId) throws SystemException 62 { 63 this.languageVO.setLanguageId(languageId); 64 } 65 66 public java.lang.Integer getLanguageId() 67 { 68 return this.languageVO.getLanguageId(); 69 } 70 71 72 } 73 | Popular Tags |