AnsweredAssumed Answered

No clear method in PreferenceService obj

Question asked by peterbetz on May 29, 2009
I am trying to delete user preferences stored in alfresco. There is a Web Script that seem to do just that: /api/people/{userid}/preferences?pf={preferencefilter?}.
It needs to be called via a DELETE method. However, strangely enough this script does not have any reference to preferenceService.clearPreferences(String, String) required to perform deletion. The script does not seem to perform any deletes.
I have since overwritten this Web Script and got an exception. Upon debugging I found out that the PreferenceService object does not have a method to
remove a user preference. Does anybody know why that is? And what is the work around to delete a User's preference?

See http://wiki.alfresco.com/wiki/User_Preference_Service for reference.

Thanks

Outcomes