1 23 24 package org.infoglue.cms.applications.contenttool.actions; 25 26 import org.infoglue.cms.applications.common.actions.InfoGlueAbstractAction; 27 28 33 34 public class ViewContentToolMenuAction extends InfoGlueAbstractAction 35 { 36 private static final long serialVersionUID = 1L; 37 38 private Integer repositoryId; 39 private String tree; 40 private String showVersions; 41 42 public void setRepositoryId(Integer repositoryId) 43 { 44 if (this.showVersions == null || this.showVersions.equals("")) 45 this.showVersions = (String )getRequest().getSession().getAttribute("htmlTreeShowVersions"); 46 else 47 getRequest().getSession().setAttribute("htmlTreeShowVersions", this.showVersions); 48 49 if(repositoryId != null) 50 { 51 getHttpSession().setAttribute("repositoryId", repositoryId); 52 } 53 54 this.repositoryId = repositoryId; 55 } 56 57 public Integer getRepositoryId() 58 { 59 return this.repositoryId; 60 } 61 62 public String doExecute() throws Exception 63 { 64 getResponse().setHeader("Cache-Control","no-cache"); 65 getResponse().setHeader("Pragma","no-cache"); 66 getResponse().setDateHeader ("Expires", 0); 67 68 return "success"; 69 } 70 71 75 public String getTree() 76 { 77 return tree; 78 } 79 80 84 public void setTree(String tree) 85 { 86 this.tree = tree; 87 } 88 89 public String getShowVersions() 90 { 91 return showVersions; 92 } 93 94 public void setShowVersions(String showVersions) 95 { 96 this.showVersions = showVersions; 97 } 98 99 } 100 | Popular Tags |