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.RepositoryLanguageController; 28 import org.infoglue.cms.entities.management.RepositoryLanguageVO; 29 import org.infoglue.cms.exception.SystemException; 30 31 36 37 public class DeleteRepositoryLanguageAction extends InfoGlueAbstractAction 38 { 39 private RepositoryLanguageVO repositoryLanguageVO; 40 private Integer repositoryLanguageId; 41 private Integer repositoryId; 42 43 public DeleteRepositoryLanguageAction() 44 { 45 this(new RepositoryLanguageVO()); 46 } 47 48 public DeleteRepositoryLanguageAction(RepositoryLanguageVO repositoryLanguageVO) 49 { 50 this.repositoryLanguageVO = repositoryLanguageVO; 51 } 52 53 protected String doExecute() throws Exception 54 { 55 this.repositoryLanguageVO.setRepositoryLanguageId(this.getRepositoryLanguageId()); 56 RepositoryLanguageController.getController().delete(this.repositoryLanguageVO); 57 58 return "success"; 59 } 60 61 public void setRepositoryLanguageId(Integer repositoryLanguageId) throws SystemException 62 { 63 this.repositoryLanguageVO.setRepositoryLanguageId(repositoryLanguageId); 64 } 65 66 public java.lang.Integer getRepositoryLanguageId() 67 { 68 return this.repositoryLanguageVO.getRepositoryLanguageId(); 69 } 70 71 public void setRepositoryId(Integer repositoryId) throws SystemException 72 { 73 this.repositoryId = repositoryId; 74 } 75 76 public java.lang.Integer getRepositoryId() 77 { 78 return this.repositoryId; 79 } 80 81 } 82 | Popular Tags |