public class

VarsUserPreferencesFactoryImpl

extends Object
implements VarsUserPreferencesFactory
java.lang.Object
   ↳ vars.jpa.VarsUserPreferencesFactoryImpl

Summary

Constants
String DEFAULT_USER Description of the Field
Public Constructors
VarsUserPreferencesFactoryImpl(EntityManagerFactory entityManagerFactory)
Constructs ...
Public Methods
Preferences systemRoot()
This method returns the system root of the preferences tree.
Preferences userRoot()
This method returns the preferences object for the user specified by System.getProperty("user.name")
Preferences userRoot(String userName)
This method returns the preferences object for the user specified in the parameter
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.util.prefs.PreferencesFactory
From interface vars.VarsUserPreferencesFactory

Constants

public static final String DEFAULT_USER

Description of the Field

Constant Value: "default"

Public Constructors

public VarsUserPreferencesFactoryImpl (EntityManagerFactory entityManagerFactory)

Constructs ...

Public Methods

public Preferences systemRoot ()

This method returns the system root of the preferences tree. It contains all the preferences for the users

Returns
  • Preferences that contain all the users preferences

public Preferences userRoot ()

This method returns the preferences object for the user specified by System.getProperty("user.name")

Returns
  • Preferences

public Preferences userRoot (String userName)

This method returns the preferences object for the user specified in the parameter

Parameters
userName is a String that is the username for the preferences object being requested
Returns
  • Preferences that is the preferences node for the user specified.