Auto-initialization of the Authorities and Vocabularies
In v5.0, the CollectionSpace authorities and vocabularies (aka, controlled terms) are still defined in the Application layer configuration, but initialization/creation of the term records now takes place when the Services layer starts.
When the CollectionSpace backend starts, it checks the value the Java system property
org.collectionspace.services.quickboot. If this property is set to true, the Services layer will skip all initialization of terms.
If this property is missing or set to
false, the Services layer will check the value of another Java system property named
org.collectionspace.services.authorities.reset. If this property is set to
true, the Services layer will reset/recreate all the terms defined in the Application layer config. If the property is set to
false and the terms have already once been initialized/created then the Service layer won't try to reset any terms. Finally, if the property is set to
false but the terms have never been initialized then the Service layer will initialize/create the terms.
You can set these Java system properties in Tomcat's
setenv.sh file using either the
JAVA_OPTS environment variables -see
tomcat/bin/setenv.sh. Here is an example snippet from that file: