public class ServerSystemPreferences extends AbstractPreferences
Preferences
implementation. This implementation
presumes the creation of a root system preferences node in advance. This
should be included with the system.ldif that is packaged with the server.lock, newNode
MAX_KEY_LENGTH, MAX_NAME_LENGTH, MAX_VALUE_LENGTH
Constructor and Description |
---|
ServerSystemPreferences(DirectoryService directoryService)
Creates a preferences object for the system preferences root.
|
ServerSystemPreferences(ServerSystemPreferences parent,
String name)
Creates a preferences object using a relative name.
|
Modifier and Type | Method and Description |
---|---|
protected String[] |
childrenNamesSpi() |
protected AbstractPreferences |
childSpi(String name) |
void |
close() |
protected void |
flushSpi() |
protected String |
getSpi(String key) |
protected String[] |
keysSpi() |
protected void |
putSpi(String key,
String value) |
protected void |
removeNodeSpi() |
protected void |
removeSpi(String key) |
protected void |
syncSpi() |
Dictionary<String,String> |
wrapAsDictionary()
Wraps this ServerPreferences object as a Dictionary.
|
absolutePath, addNodeChangeListener, addPreferenceChangeListener, cachedChildren, childrenNames, clear, exportNode, exportSubtree, flush, get, getBoolean, getByteArray, getChild, getDouble, getFloat, getInt, getLong, isRemoved, isUserNode, keys, name, node, nodeExists, parent, put, putBoolean, putByteArray, putDouble, putFloat, putInt, putLong, remove, removeNode, removeNodeChangeListener, removePreferenceChangeListener, sync, toString
importPreferences, systemNodeForPackage, systemRoot, userNodeForPackage, userRoot
public ServerSystemPreferences(DirectoryService directoryService)
directoryService
- the directory service corepublic ServerSystemPreferences(ServerSystemPreferences parent, String name)
name
- the name of the preference node to createparent
- the parent of the preferences node to createpublic void close() throws org.apache.directory.shared.ldap.exception.LdapException
org.apache.directory.shared.ldap.exception.LdapException
public Dictionary<String,String> wrapAsDictionary()
protected void flushSpi() throws BackingStoreException
flushSpi
in class AbstractPreferences
BackingStoreException
protected void removeNodeSpi() throws BackingStoreException
removeNodeSpi
in class AbstractPreferences
BackingStoreException
protected void syncSpi() throws BackingStoreException
syncSpi
in class AbstractPreferences
BackingStoreException
protected String[] childrenNamesSpi() throws BackingStoreException
childrenNamesSpi
in class AbstractPreferences
BackingStoreException
protected String[] keysSpi() throws BackingStoreException
keysSpi
in class AbstractPreferences
BackingStoreException
protected void removeSpi(String key)
removeSpi
in class AbstractPreferences
protected String getSpi(String key)
getSpi
in class AbstractPreferences
protected void putSpi(String key, String value)
putSpi
in class AbstractPreferences
protected AbstractPreferences childSpi(String name)
childSpi
in class AbstractPreferences
Copyright © 2003–2015 The Apache Software Foundation. All rights reserved.