Skip to content

Configuration(Repository)_ Property

linzhixing edited this page Aug 22, 2016 · 2 revisions

English/日本語


Change properties

Add properties to be overwritten into:
<TOMCAT_PATH>/shared/classes/app-server-core.properties

List of properties

In the source code, properties are managed by the Spring context file propertyContext.xml.

<list>
  <value>classpath:nemakiware.properties</value>
  <value>classpath:nemakiware-capability.properties</value>
  ...
  <value>classpath*:app-server-core.properties</value>
</list>

These properties files are loaded in this order, so the latter overwrites the former.

However, the first following files don't overlap each other.
All the default properties are described here:

Dynamic configuration

The above list of property fils define static properties.
Almost all of these can be overwritten by CouchDB configuration on the fly, except for CouchDB settings and some repository info metadata.
Dynamic property within CouchDB takes precedence over static properties.

Important properties

Preview

LibreOffice or OpenOffice must be preinstalled.
capability.extended.preview=true
and

Linux
jodconverter.officehome=/opt/libreoffice4.4
Mac
jodconverter.officehome=/Applications/LibreOffice.app/Contents
Windows
TODO

#Referenced setting files Some setting files are designated by a property.
They are specified by name (not by path) and loaded by the class loader.
You can change it to your own custom file put under, for example, <TOMCAT_PATH>/shared/classes.
Original setting files are in <SOUCE_PATH>/core/src/main/webapp/WEB-INF/classes.

Permission

  • permission.yml
    Defines all kinds of permission(cmis:read, cmis:write, etc.)
  • permission-mapping.yml
    Defines the mapping between an CMIS action(e.g.canDelete.Object) and required permissions to execute it

Log

Other

Clone this wiki locally