1 31 32 package org.opencms.workplace.tools; 33 34 import java.util.HashMap ; 35 import java.util.Map ; 36 37 47 public class CmsToolUserData { 48 49 50 private Map m_baseTools; 51 52 53 private Map m_currentToolPaths; 54 55 56 private String m_rootKey; 57 58 61 public CmsToolUserData() { 62 63 m_baseTools = new HashMap (); 64 m_currentToolPaths = new HashMap (); 65 } 66 67 74 public String getBaseTool(String rootKey) { 75 76 return (String )m_baseTools.get(rootKey); 77 } 78 79 86 public String getCurrentToolPath(String rootKey) { 87 88 return (String )m_currentToolPaths.get(rootKey); 89 } 90 91 96 public String getRootKey() { 97 98 return m_rootKey; 99 } 100 101 107 public void setBaseTool(String rootKey, String baseTool) { 108 109 m_baseTools.put(rootKey, baseTool); 110 } 111 112 118 public void setCurrentToolPath(String rootKey, String currentToolPath) { 119 120 m_currentToolPaths.put(rootKey, currentToolPath); 121 } 122 123 128 public void setRootKey(String key) { 129 130 m_rootKey = key; 131 } 132 133 } | Popular Tags |