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, newNodeMAX_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, toStringimportPreferences, systemNodeForPackage, systemRoot, userNodeForPackage, userRootpublic 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.LdapExceptionpublic Dictionary<String,String> wrapAsDictionary()
protected void flushSpi()
throws BackingStoreException
flushSpi in class AbstractPreferencesBackingStoreExceptionprotected void removeNodeSpi()
throws BackingStoreException
removeNodeSpi in class AbstractPreferencesBackingStoreExceptionprotected void syncSpi()
throws BackingStoreException
syncSpi in class AbstractPreferencesBackingStoreExceptionprotected String[] childrenNamesSpi() throws BackingStoreException
childrenNamesSpi in class AbstractPreferencesBackingStoreExceptionprotected String[] keysSpi() throws BackingStoreException
keysSpi in class AbstractPreferencesBackingStoreExceptionprotected void removeSpi(String key)
removeSpi in class AbstractPreferencesprotected String getSpi(String key)
getSpi in class AbstractPreferencesprotected void putSpi(String key, String value)
putSpi in class AbstractPreferencesprotected AbstractPreferences childSpi(String name)
childSpi in class AbstractPreferencesCopyright © 2003-2012 Apache Software Foundation. All Rights Reserved.