|
Oracle Fusion Middleware Java API Reference for Oracle ADF Share 11g Release 1 (11.1.1) E10686-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.adf.share.prefs.ADFPreferencesFactory
public class ADFPreferencesFactory
A factory object that generates Preferences objects. This factory class
has been implemented to provide access to an MDS back ended Preferences
Repository. This also brings with it a richer user concept based on the
J2EE authenticated username, and the ability to define user over system
customization levels beyond the standard Java Preferences API's system and
user levels, which are also still catered for.
In order to support usage of the ADFPreferences Utility outside of the
context of an ADF Web Application it is necessary to use the
ADFPreferencesFactory(ADFPreferencesConfig config) constructor, where the
ADFPreferencesConfig is based on the ADFPreferencesSimpleConfig object, that
takes an MDSInstance object in it's constructor.
Consumers of the Preference Utility working within the context of an ADF
web Application should use the constructor which takes no arguments as this
will obtain the MDS Instance from the ADF Context object that has been
configured against the web application.
Constructor Summary | |
---|---|
ADFPreferencesFactory()
The default constructor which assumes the MDSInstance object will be pulled from the ADF Web Application context object, as opposed to having the ADFPreferencesConfig passed into the constructor pre configured with the desired settings, i.e. |
|
ADFPreferencesFactory(ADFPreferencesConfig config)
Preference Factory constructor to be used by consumers who which to access the Preferences Utility outside the context of an ADF web application. |
Method Summary | |
---|---|
protected ADFPreferencesRegistry |
getRegistry()
Returns the Application Preference Nodes registry from which preference root nodes are obtained. |
java.util.prefs.Preferences |
sharedSystemRoot()
Returns the shared system root preference node corresponding to the calling J2EE authenicated user. |
java.util.prefs.Preferences |
sharedUserRoot()
Returns the shared user root preference node corresponding to the calling J2EE authenicated user. |
java.util.prefs.Preferences |
systemRoot()
Returns the system root preference node. |
java.util.prefs.Preferences |
userOverSystemRoot()
Returns the user over system root preference node corresponding to the calling J2EE authenicated user where should no user preference exist the preference utility will then return the equivalent system preference, if the preference does not exist here |
java.util.prefs.Preferences |
userRoot()
Returns the user root preference node corresponding to the calling J2EE authenicated user. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ADFPreferencesFactory()
public ADFPreferencesFactory(ADFPreferencesConfig config)
config
- The ADFPreferenceConfig object to be used by this factory.Method Detail |
---|
public java.util.prefs.Preferences systemRoot()
systemRoot
in interface java.util.prefs.PreferencesFactory
public java.util.prefs.Preferences userRoot()
userRoot
in interface java.util.prefs.PreferencesFactory
public java.util.prefs.Preferences sharedUserRoot()
public java.util.prefs.Preferences sharedSystemRoot()
public java.util.prefs.Preferences userOverSystemRoot()
protected ADFPreferencesRegistry getRegistry()
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Share 11g Release 1 (11.1.1) E10686-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |