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 30 public class ViewLanguageAction extends InfoGlueAbstractAction 31 { 32 private static final long serialVersionUID = 1L; 33 34 private LanguageVO languageVO; 35 36 public ViewLanguageAction() 37 { 38 this(new LanguageVO()); 39 } 40 41 public ViewLanguageAction(LanguageVO languageVO) 42 { 43 this.languageVO = languageVO; 44 } 45 46 protected void initialize(Integer languageId) throws Exception 47 { 48 languageVO = LanguageController.getController().getLanguageVOWithId(languageId); 49 } 50 51 public String doExecute() throws Exception 52 { 53 this.initialize(getLanguageId()); 54 55 return "success"; 56 } 57 58 public java.lang.Integer getLanguageId() 59 { 60 return this.languageVO.getLanguageId(); 61 } 62 63 public void setLanguageId(java.lang.Integer languageId) 64 { 65 this.languageVO.setLanguageId(languageId); 66 } 67 68 public java.lang.String getName() 69 { 70 return this.languageVO.getName(); 71 } 72 73 public java.lang.String getLanguageCode() 74 { 75 return this.languageVO.getLanguageCode(); 76 } 77 78 public java.lang.String getCharset() 79 { 80 return this.languageVO.getCharset(); 81 } 82 83 } 84 | Popular Tags |