Importing Solution bookmarks

Atoti Solutions provide a default set of bookmarks in the accelerator-ui standalone module included in the release deliverables. The import behavior of the content service is configurable within the src/main/resources/${solution-name}.properties file in the starter project:

Property Description
contentServer.factory-reset Determines whether or not a reset will be performed.
* false disables the reset - no bookmarks will be loaded over the ones already contained in your content server.
* true and file perform a reset from the core .json file format.
* folder performs a reset from the Bookmark Tool directory structure.
contentServer.factory-reset.filename Defines the file to use for the true and file options.
contentServer.factory-reset.folder-name Defines the folder to use for the folder option.
contentServer.bookmarks.default-owners The list of user roles to be used as the default owners for a bookmark.
contentServer.bookmarks.default-readers The list of user roles to be used as the default readers for a bookmark.

The file and folder names will be resolved using a Spring PathMatchingResourcePatternResolver, and the properties conform to its required format.

For an application built as a SpringBoot JAR, the properties must be replaced with properly formatted absolute paths, as it is impossible to load folders directly from a JAR file.