|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.prefs.Preferences java.util.prefs.AbstractPreferences org.apache.jetspeed.prefs.impl.PreferencesImpl
public class PreferencesImpl
S Preferences
implementation relying on Jetspeed OJB based
persistence plugin.
Field Summary | |
---|---|
private static org.apache.commons.logging.Log |
log
Logger. |
private org.apache.jetspeed.prefs.om.Node |
node
The current Node object. |
protected static org.apache.jetspeed.prefs.PreferencesProvider |
prefsProvider
|
static int |
SYSTEM_NODE_TYPE
System Preferences node type. |
(package private) static PreferencesImpl |
systemRoot
|
static int |
USER_NODE_TYPE
User Preferences node type. |
(package private) static PreferencesImpl |
userRoot
|
Fields inherited from class java.util.prefs.AbstractPreferences |
---|
lock, newNode |
Fields inherited from class java.util.prefs.Preferences |
---|
MAX_KEY_LENGTH, MAX_NAME_LENGTH, MAX_VALUE_LENGTH |
Constructor Summary | |
---|---|
PreferencesImpl(PreferencesImpl parent,
String nodeName,
int nodeType)
Constructs a root node in the underlying datastore if they have not yet been created. |
Method Summary | |
---|---|
String[] |
childrenNamesSpi()
|
AbstractPreferences |
childSpi(String name)
|
void |
flushSpi()
|
org.apache.jetspeed.prefs.om.Node |
getNode()
getNode |
String |
getSpi(String key)
|
String[] |
keysSpi()
|
void |
putSpi(String key,
String value)
|
void |
removeNodeSpi()
|
void |
removeSpi(String key)
|
static void |
setPreferencesProvider(org.apache.jetspeed.prefs.PreferencesProvider prefsProvider)
setPreferencesProvider |
void |
syncSpi()
|
Methods inherited from class java.util.prefs.AbstractPreferences |
---|
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 |
Methods inherited from class java.util.prefs.Preferences |
---|
importPreferences, systemNodeForPackage, systemRoot, userNodeForPackage, userRoot |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int USER_NODE_TYPE
public static final int SYSTEM_NODE_TYPE
private org.apache.jetspeed.prefs.om.Node node
Node
object.
private static final org.apache.commons.logging.Log log
protected static org.apache.jetspeed.prefs.PreferencesProvider prefsProvider
static PreferencesImpl systemRoot
static PreferencesImpl userRoot
Constructor Detail |
---|
public PreferencesImpl(PreferencesImpl parent, String nodeName, int nodeType) throws IllegalStateException
Constructs a root node in the underlying datastore if they have not yet been created.
Logs a warning if the underlying datastore is unavailable.
parent
- The parent object.nodeName
- The node name.nodeType
- The node type.
IllegalStateException
Method Detail |
---|
public String[] childrenNamesSpi() throws BackingStoreException
childrenNamesSpi
in class AbstractPreferences
BackingStoreException
java.util.prefs.Preferences#childrenNamesSpi()
public AbstractPreferences childSpi(String name)
childSpi
in class AbstractPreferences
java.util.prefs.Preferences#childSpi(java.lang.String)
public void flushSpi() throws BackingStoreException
flushSpi
in class AbstractPreferences
BackingStoreException
java.util.prefs.Preferences#flushSpi()
public String getSpi(String key)
getSpi
in class AbstractPreferences
java.util.prefs.Preferences#getSpi(java.lang.String)
public String[] keysSpi()
keysSpi
in class AbstractPreferences
java.util.prefs.Preferences#keysSpi()
public void putSpi(String key, String value)
putSpi
in class AbstractPreferences
java.util.prefs.Preferences#putSpi(java.lang.String,
java.lang.String)
public void removeNodeSpi() throws BackingStoreException
removeNodeSpi
in class AbstractPreferences
BackingStoreException
java.util.prefs.Preferences#removeNodeSpi()
public void removeSpi(String key)
removeSpi
in class AbstractPreferences
java.util.prefs.Preferences#removeSpi(java.lang.String)
public void syncSpi() throws BackingStoreException
syncSpi
in class AbstractPreferences
BackingStoreException
java.util.prefs.Preferences#syncSpi()
public org.apache.jetspeed.prefs.om.Node getNode()
getNode
public static void setPreferencesProvider(org.apache.jetspeed.prefs.PreferencesProvider prefsProvider)
setPreferencesProvider
Sets theorg.apache.jetspeed.prefs.PreferencesProvider
that will support backing store operations for all
PreferencesImpls
prefsProvider
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |