/** * Predicate for determining if a setting exists. * * @param sessionID the session ID * @param key the setting key * @return true is setting exists, false otherwise. */ public boolean isSetting(SessionID sessionID, String key) { return getOrCreateSessionProperties(sessionID).getProperty(key) != null; }
/** * Predicate for determining if a setting exists. * * @param sessionID the session ID * @param key the setting key * @return true is setting exists, false otherwise. */ public boolean isSetting(SessionID sessionID, String key) { return getOrCreateSessionProperties(sessionID).getProperty(key) != null; }
/** * Adds defaults to the settings. Will not delete existing settings not * overlapping with the new defaults, but will overwrite existing settings * specified in this call. * * @param defaults */ public void set(Map<Object, Object> defaults) { getOrCreateSessionProperties(DEFAULT_SESSION_ID).putAll(defaults); }
public void removeSetting(SessionID sessionID, String key) { getOrCreateSessionProperties(sessionID).remove(key); }
/** * Adds defaults to the settings. Will not delete existing settings not * overlapping with the new defaults, but will overwrite existing settings * specified in this call. * * @param defaults */ public void set(Map<Object, Object> defaults) { getOrCreateSessionProperties(DEFAULT_SESSION_ID).putAll(defaults); }
/** * Predicate for determining if a setting exists. * * @param sessionID the session ID * @param key the setting key * @return true is setting exists, false otherwise. */ public boolean isSetting(SessionID sessionID, String key) { return getOrCreateSessionProperties(sessionID).getProperty(key) != null; }
/** * Adds defaults to the settings. Will not delete existing settings not * overlapping with the new defaults, but will overwrite existing settings * specified in this call. * * @param defaults */ public void set(Map<Object, Object> defaults) { getOrCreateSessionProperties(DEFAULT_SESSION_ID).putAll(defaults); }
/** * Sets a long integer-valued session setting. * * @param sessionID the session ID * @param key the setting key * @param value the long integer value */ public void setLong(SessionID sessionID, String key, long value) { getOrCreateSessionProperties(sessionID).setProperty(key, Long.toString(value)); }
/** * Sets a string-valued session setting. * * @param sessionID the session ID * @param key the setting key * @param value the string value */ public void setString(SessionID sessionID, String key, String value) { getOrCreateSessionProperties(sessionID).setProperty(key, value.trim()); }
/** * Sets a double-valued session setting. * * @param sessionID the session ID * @param key the setting key * @param value the double value */ public void setDouble(SessionID sessionID, String key, double value) { getOrCreateSessionProperties(sessionID).setProperty(key, Double.toString(value)); }
/** * Sets a long integer-valued session setting. * * @param sessionID the session ID * @param key the setting key * @param value the long integer value */ public void setLong(SessionID sessionID, String key, long value) { getOrCreateSessionProperties(sessionID).setProperty(key, Long.toString(value)); }
/** * Sets a double-valued session setting. * * @param sessionID the session ID * @param key the setting key * @param value the double value */ public void setDouble(SessionID sessionID, String key, double value) { getOrCreateSessionProperties(sessionID).setProperty(key, Double.toString(value)); }
/** * Sets a string-valued session setting. * * @param sessionID the session ID * @param key the setting key * @param value the string value */ public void setString(SessionID sessionID, String key, String value) { getOrCreateSessionProperties(sessionID).setProperty(key, value.trim()); }
/** * Sets a string-valued session setting. * * @param sessionID the session ID * @param key the setting key * @param value the string value */ public void setString(SessionID sessionID, String key, String value) { getOrCreateSessionProperties(sessionID).setProperty(key, value.trim()); }
/** * Sets a long integer-valued session setting. * * @param sessionID the session ID * @param key the setting key * @param value the long integer value */ public void setLong(SessionID sessionID, String key, long value) { getOrCreateSessionProperties(sessionID).setProperty(key, Long.toString(value)); }
public void set(SessionID sessionID, Dictionary dictionary) throws ConfigError { final Properties p = getOrCreateSessionProperties(sessionID); p.clear(); p.putAll(dictionary.toMap()); }
/** * Sets a boolean-valued session setting. * * @param sessionID the session ID * @param key the setting key * @param value the boolean value */ public void setBool(SessionID sessionID, String key, boolean value) { getOrCreateSessionProperties(sessionID).setProperty(key, BooleanConverter.convert(value)); }
public void set(SessionID sessionID, Dictionary dictionary) throws ConfigError { final Properties p = getOrCreateSessionProperties(sessionID); p.clear(); p.putAll(dictionary.toMap()); }
public void set(SessionID sessionID, Dictionary dictionary) throws ConfigError { final Properties p = getOrCreateSessionProperties(sessionID); p.clear(); p.putAll(dictionary.toMap()); }
/** * Sets a boolean-valued session setting. * * @param sessionID the session ID * @param key the setting key * @param value the boolean value */ public void setBool(SessionID sessionID, String key, boolean value) { getOrCreateSessionProperties(sessionID).setProperty(key, BooleanConverter.convert(value)); }