cancel
Showing results for 
Search instead for 
Did you mean: 

Storing global and per-user preferences?

blatwurst
Champ in-the-making
Champ in-the-making
I'm wondering how I should handle the persisting of global and per-user preferences.

I would like to add functionality to the Web Client that is configurable by integrators and users via a GUI.  To facilitate this configuration, I need to be able to store configuration preferences somewhere on a global and per-user basis.  Is there a framework in Alfresco for doing this?

Also, does Alfresco provide any sort of framework that would help me to write a user preference UI for editing preference values?

TIA for any help!
4 REPLIES 4

ribz33
Champ on-the-rise
Champ on-the-rise
User on Alfresco is simply a node with "person" type.
So i think you can extend "person" type with your preferences. (with a custom aspect for instance)

I never did this already, but i think there is no problem to do it.
This is possible with type "content" so this probably possible with type "person"

Best regards.

blatwurst
Champ in-the-making
Champ in-the-making
That makes sense Pierre.  Thanks.

Any idea where I should put global (not per-user) prefs?

ribz33
Champ on-the-rise
Champ on-the-rise
I have 2 ideas, that need to be test :
First, cmSmiley Tongueerson inherit from sys:base so maybe you can add an aspect to this type.
Second possibility(easiest i think), its to add an aspect with your global preferences to root folder, tehn you can store all global preferences on this root folder.

This is just ideas, that need to be evaluate…

kevinr
Star Contributor
Star Contributor
In the web-client codebase there is a PreferencesService class - it is used to store ad-hoc web-client user preferences against the person node object (via an association to a preferences xml node).

You can use the service to get/put simple preferences for a user.

We use the more general core ConfigService classes for global preferences (i.e. based on web-client-config.xml etc. which are based on XML files overridable for customisation)

Thanks,

Kevin
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.