net.larsan.norna.service.pref
Interface PreferenceHandle

All Superinterfaces:
ServiceHandle

public interface PreferenceHandle
extends ServiceHandle

This service handles preferences for the services. Each service will be represented with a system preference node a user preference node.

Version:
Alpha-0.2 / 2002-10-06 21:37
Author:
Lars J. Nilsson

Method Summary
 java.util.prefs.Preferences getSystemPreferences()
          Get the preferences for the calling service.
 java.util.prefs.Preferences getUserPreferences(java.lang.String userId)
          Get the preferences for a user.
 
Methods inherited from interface net.larsan.norna.base.ServiceHandle
getStatus
 

Method Detail

getSystemPreferences

public java.util.prefs.Preferences getSystemPreferences()
                                                 throws java.util.prefs.BackingStoreException
Get the preferences for the calling service.

Returns:
Preferences for the calling service
Throws:
java.util.prefs.BackingStoreException - If the preference service fails

getUserPreferences

public java.util.prefs.Preferences getUserPreferences(java.lang.String userId)
                                               throws java.util.prefs.BackingStoreException
Get the preferences for a user. This user id can be resolved by a call to the getUserId method.

Parameters:
userId - The user system id, must not be null
Returns:
The user preferences
Throws:
java.util.prefs.BackingStoreException - If the preference service fails