[ https://jira.nuxeo.com/browse/NXP-7152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Florent Guillaume updated NXP-7152: ----------------------------------- Description: Add a UserPreferencesService service that wraps LocalConfigurationService to store user preferences. It uses LocalConfigurations on the user personnal workspace. It has two methods : {code:java} SimpleUserPreferences getSimpleUserPreferences(CoreSession session) throws ClientException; {code} Returns a wrapper of SimpleLocalConfiguration to manage simple key/value preferences. {code:java} <T extends UserPreferences> T getUserPreferences(CoreSession session, Class<T> configurationClass, String configurationFacet) throws ClientException; {code} 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. was: Add a 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; <T extends UserPreferences> T getUserPreferences(CoreSession session, Class<T> configurationClass, String configurationFacet) throws ClientException; The first one returns a wrapper of SimpleLocalConfiguration to manage simple key/value preferences. The second one 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. Upgrade notes: New service UserPreferencesService with methods: - getSimpleUserPreferences - getUserPreferences http://community.nuxeo.com/api/nuxeo/release-5.5/javadoc/org/nuxeo/ecm/platform/userpreferences/UserPreferencesService.html > Add nuxeo-platform-userpreferences > ---------------------------------- > > Key: NXP-7152 > URL: https://jira.nuxeo.com/browse/NXP-7152 > Project: Nuxeo Enterprise Platform > Issue Type: New Feature > Reporter: Quentin Lamerand > Assignee: Quentin Lamerand > Fix For: 5.5 > > Time Spent: 1 day > Remaining Estimate: 0 minutes > > Add a UserPreferencesService service that wraps LocalConfigurationService to > store user preferences. > It uses LocalConfigurations on the user personnal workspace. > It has two methods : > {code:java} > SimpleUserPreferences getSimpleUserPreferences(CoreSession session) > throws ClientException; > {code} > Returns a wrapper of SimpleLocalConfiguration to manage simple key/value > preferences. > {code:java} > <T extends UserPreferences> T getUserPreferences(CoreSession session, > Class<T> configurationClass, String configurationFacet) > throws ClientException; > {code} > 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. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira _______________________________________________ ECM-tickets mailing list ECM-tickets@lists.nuxeo.com http://lists.nuxeo.com/mailman/listinfo/ecm-tickets