Skip to content

Repository_Upgrade

sitMCella edited this page Aug 19, 2022 · 1 revision

The Repositoy Upgrade procedure is used for upgrading the Jackrabbit Oak repository to the repository structure of the second version of the application.

Configuration

Configure the absolute path where the Jackrabbit Oak repository is located. Use the configuration file located in "Jackrabbit-Oak-repository-upgrade/repository-upgrade-second-version/src/main/resources/settings.properties"

Build the project

Execute the following command.

mvn clean install

Run the application

Execute the following commands.

cd repository-upgrade-second-version/target
java -jar repository-upgrade-second-version-1.0-SNAPSHOT.jar

Upgrade Procedure

The Repository Upgrade procedure will go through each Node inside the Jackrabbit Oak repository and will migrate the Node according to the Jackrabbit Oak repository configuration file located in "repository-second-version/src/main.resources/cnd.config".

The Repository Upgrade procedure consists of adding and removing mixin and properties on the Nodes. The changes will be applied also to the File Version Nodes.

In detail, the following is the Repository Update procedure:

  • Remove the mixin "app:attributes" that contains the property "app:hidden".
  • Add a new property "app:system" into an existent mixin "app:properties".
  • Remove the property "app:deletable" from the mixin "app:properties".
  • Add a new mixin "app:describable" with a property "app:description".
Clone this wiki locally