tsgrp / HPI

OpenContent Management Suite (OCMS)
http://www.tsgrp.com/products
17 stars 5 forks source link

File System Preferences Service Enhancement #2417

Closed mwojno-tsg closed 3 years ago

mwojno-tsg commented 3 years ago

Overview

Implementation

mwojno-tsg commented 3 years ago

Closed with OC commit: 26851. The above implementation followed.

CR: aking, rsaladrigas

mwojno-tsg commented 3 years ago

Closed with OC commit: 26862.

This commit updates the FileSystemPreferencesService with a couple small changes to resolve the issue of the first time a user needs a user pref file and there are other user's user pref files already created:

  1. getObjectByPath helper function has a check to see if a directory is being retrieved or a file. If either doesn't exist, we need to create it.
  2. The creation of an empty user preferences file has been extrapolated into a helper function as its now used in a couple places.

CR: aking, rsaladrigas