public class ClientBrowseConfigManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static ContextLocal<ClientBrowseConfigManager> |
instance
Singleton instance.
|
private static java.util.logging.Logger |
LOG
Logger.
|
private java.lang.String |
rootNode
String which serves as the "root node" for the client storage.
|
Modifier | Constructor and Description |
---|---|
private |
ClientBrowseConfigManager()
Private constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
dumpStorage()
Helper function which dumps contents of the client storage.
|
EnhancedBrowseConfig[] |
getClientEnhancedConfigs(EhBrowseConfigKey[] keys)
Get enhanced browse configurations stored on the client side.
|
private java.lang.String |
getColumnSavePath(java.lang.String browseSavePath,
java.lang.String columnKey)
Get save path for the configuration of the browse column.
|
private EnhancedBrowseConfig |
getEnhancedConfig(EhBrowseConfigKey key)
Get enhanced browse configuration stored on the client side.
|
static ClientBrowseConfigManager |
getInstance()
Get the manager instance.
|
private java.lang.String |
getSavePath(EhBrowseConfigKey key)
Get save path for the configuration.
|
boolean |
resetEnhancedConfig(EhBrowseConfigKey key)
Reset (delete) the specified enhanced browse configuration in the client storage.
|
boolean |
saveEnhancedConfig(EnhancedBrowseConfig config)
Save the specified enhanced browse configuration in the client storage.
|
private static final java.util.logging.Logger LOG
private static final ContextLocal<ClientBrowseConfigManager> instance
private final java.lang.String rootNode
private ClientBrowseConfigManager()
public static ClientBrowseConfigManager getInstance()
public boolean saveEnhancedConfig(EnhancedBrowseConfig config)
config
- Enhanced browse configuration to save.true
on success.public boolean resetEnhancedConfig(EhBrowseConfigKey key)
key
- Key which specifies the enhanced browse configuration to be deleted.true
on success.public EnhancedBrowseConfig[] getClientEnhancedConfigs(EhBrowseConfigKey[] keys)
keys
- Array of the keys of the target configurations to get.keys
. If there is no configuration found for a key, the corresponding array
element is null
.private EnhancedBrowseConfig getEnhancedConfig(EhBrowseConfigKey key)
key
- Key of the target configurations to get.null
if there is no configuration found for the
key.private java.lang.String getSavePath(EhBrowseConfigKey key)
enhancedBrowse/{embedded|desktop}/user_name/procedure_name/browse_name/column_keys
.
null
elements are allowed in path.key
- Key which specifies the configuration.private java.lang.String getColumnSavePath(java.lang.String browseSavePath, java.lang.String columnKey)
browseSavePath/columnKey
.browseSavePath
- Path of the parent browse configuration.columnKey
- Column key.public java.lang.String dumpStorage()