-
Type: New Feature
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 5.5
-
Component/s: None
-
Impact type:API added
-
Upgrade notes:
Add a UserPreferencesService service that wraps LocalConfigurationService to store user preferences.
It uses LocalConfigurations on the user personnal workspace.
It has two methods :
SimpleUserPreferences getSimpleUserPreferences(CoreSession session)
throws ClientException;
Returns a wrapper of SimpleLocalConfiguration to manage simple key/value preferences.
<T extends UserPreferences> T getUserPreferences(CoreSession session, Class<T> configurationClass, String configurationFacet) throws ClientException;
This is when we need more complex preferences.
The interface UserPreferences extends LocalConfiguration so the definition process is the same: an adapter implementing an interface extending UserPreferences. This what we'll use in nuxeo-user-profile.