1 23 24 package org.infoglue.cms.applications.structuretool.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.util.CmsPropertyHandler; 30 31 36 37 public class ViewStructureToolMenuAction extends InfoGlueAbstractAction 38 { 39 private static final long serialVersionUID = 1L; 40 41 private Integer repositoryId; 42 private String tree; 43 44 public void setRepositoryId(Integer repositoryId) 45 { 46 if(repositoryId != null) 47 { 48 getHttpSession().setAttribute("repositoryId", repositoryId); 49 } 50 51 this.repositoryId = repositoryId; 52 } 53 54 public Integer getRepositoryId() 55 { 56 return this.repositoryId; 57 } 58 59 public String doExecute() throws Exception 60 { 61 return "success"; 62 } 63 64 68 public String getTree() 69 { 70 return tree; 71 } 72 73 77 public void setTree(String tree) 78 { 79 this.tree = tree; 80 } 81 82 public String getShowComponentsFirst() 83 { 84 return CmsPropertyHandler.getShowComponentsFirst(); 85 } 86 87 public LanguageVO getMasterLanguageVO() throws Exception 88 { 89 return LanguageController.getController().getMasterLanguage(repositoryId); 90 } 91 } 92 | Popular Tags |