Wasim's Site

Liferay OSGi Config Generator

Generate Liferay OSGi .config files for osgi/configs. Pick a component for a typed property form, or use custom mode for any PID. Correct Felix format.

1. Choose a component

2. Configure properties

Allowed upload file extensions (one per line). "*" allows all extensions.

String[]

Maximum stored versions per file entry. 0 keeps all versions.

Integer

Interval, in minutes, for the temporary-file cleanup job.

Integer

Expire all versions of a file when it expires.

Boolean

Allow the versioning strategy to be overridden.

Boolean

Add another property

3. Generated com.liferay.document.library.configuration.DLConfiguration.config

Drop this file into [Liferay Home]/osgi/configs/.

Prefer the plain .cfg format? (com.liferay.document.library.configuration.DLConfiguration.cfg)

The .config format is preferred — it carries types and supports multi-valued properties. Use .cfg only for simple scalar values.

Liferay Documents & Media (DL) OSGi Configuration

Allowed file types, versioning, and the cleanup interval for the Documents and Media library.

PID: com.liferay.document.library.configuration.DLConfiguration

Properties

PropertyTypeDefaultDescription
fileExtensionsString[]*Allowed upload file extensions (one per line). "*" allows all extensions.
maximumNumberOfVersionsInteger0Maximum stored versions per file entry. 0 keeps all versions.
checkIntervalInteger15Interval, in minutes, for the temporary-file cleanup job.
expireAllVersionsEnabledBooleanfalseExpire all versions of a file when it expires.
versioningStrategyOverridableBooleantrueAllow the versioning strategy to be overridden.

These are the common, verified properties. Add any others for this PID with the custom-property row in the form above, then drop the file into [Liferay Home]/osgi/configs.