1 23 24 package org.infoglue.cms.applications.mydesktoptool.actions; 25 26 import java.util.ArrayList ; 27 import java.util.HashMap ; 28 import java.util.List ; 29 30 import org.apache.log4j.Logger; 31 import org.infoglue.cms.applications.common.actions.InfoGlueAbstractAction; 32 33 38 39 public class ViewMyDesktopToolToolBarAction extends InfoGlueAbstractAction 40 { 41 private final static Logger logger = Logger.getLogger(ViewMyDesktopToolToolBarAction.class.getName()); 42 43 private static final long serialVersionUID = 1L; 44 45 private String title = ""; 46 private String name = ""; 47 private String toolbarKey = ""; 48 private String url = ""; 49 50 private Integer repositoryId = null; 52 private Integer systemUserId = null; 53 private Integer roleId = null; 54 private Integer languageId = null; 55 private Integer functionId = null; 56 private Integer serviceDefinitionId = null; 57 private Integer availableServiceBindingId = null; 58 private Integer siteNodeTypeDefinitionId = null; 59 60 private static HashMap buttonsMap = new HashMap (); 61 62 public String doExecute() throws Exception 63 { 64 return "success"; 65 } 66 67 public Integer getRepositoryId() 68 { 69 return this.repositoryId; 70 } 71 72 public void setRepositoryId(Integer repositoryId) 73 { 74 this.repositoryId = repositoryId; 75 } 76 77 public Integer getSystemUserId() 78 { 79 return this.systemUserId; 80 } 81 82 public void setSystemUserId(Integer systemUserId) 83 { 84 this.systemUserId = systemUserId; 85 } 86 87 public Integer getLanguageId() 88 { 89 return this.languageId; 90 } 91 92 public void setLanguageId(Integer languageId) 93 { 94 this.languageId = languageId; 95 } 96 97 public Integer getRoleId() 98 { 99 return this.roleId; 100 } 101 102 public void setRoleId(Integer roleId) 103 { 104 this.roleId = roleId; 105 } 106 107 public Integer getFunctionId() 108 { 109 return this.functionId; 110 } 111 112 public void setFunctionId(Integer functionId) 113 { 114 this.functionId = functionId; 115 } 116 117 public Integer getServiceDefinitionId() 118 { 119 return this.serviceDefinitionId; 120 } 121 122 public void setServiceDefinitionId(Integer serviceDefinitionId) 123 { 124 this.serviceDefinitionId = serviceDefinitionId; 125 } 126 127 public Integer getAvailableServiceBindingId() 128 { 129 return this.availableServiceBindingId; 130 } 131 132 public void setAvailableServiceBindingId(Integer availableServiceBindingId) 133 { 134 this.availableServiceBindingId = availableServiceBindingId; 135 } 136 137 public Integer getSiteNodeTypeDefinitionId() 138 { 139 return this.siteNodeTypeDefinitionId; 140 } 141 142 public void setSiteNodeTypeDefinitionId(Integer siteNodeTypeDefinitionId) 143 { 144 this.siteNodeTypeDefinitionId = siteNodeTypeDefinitionId; 145 } 146 147 public String getTitle() 148 { 149 return this.title; 150 } 151 152 public void setTitle(String title) 153 { 154 this.title = title; 155 } 156 157 public String getName() 158 { 159 return this.name; 160 } 161 162 public void setName(String name) 163 { 164 this.name = name; 165 } 166 167 public String getToolbarKey() 168 { 169 return this.toolbarKey; 170 } 171 172 public void setToolbarKey(String toolbarKey) 173 { 174 this.toolbarKey = toolbarKey; 175 } 176 177 public void setUrl(String url) 178 { 179 this.url = url; 180 } 181 182 public String getUrl() 183 { 184 return this.url; 185 } 186 187 public List getButtons() 188 { 189 logger.info("Title:" + this.title); 190 191 if(this.toolbarKey.equalsIgnoreCase("publications")) 192 return getPublicationsButtons(); 193 194 return null; 195 } 196 197 198 private List getPublicationsButtons() 199 { 200 List buttons = new ArrayList (); 201 return buttons; 206 } 207 208 209 } 210 | Popular Tags |