Improved: Have configuration options for Content (OFBIZ-6670) The configuration of an OFBiz is determined by 2 aspects: configuration settings required to successfully start the implementation configuration settings required to have component functions work properly The latter involve default choices for various functions to cater to the usability of business processes (and therefore screen/forms and/or screens/templates. Several of these configuration settings are already loaded into the SystemProperty table in the underlying RDBMS, to enable adjustments of the systemPropertyValue while the implementation is in use. While it is not expected that these settings change often, it is possible that they are required to be changed during the lifespan of the company/organisation. However, it should not be required to go through a deployment process of regarding such changed configuration settings in the OFBiz production instance (which most - if not all - companies/organisations require when files are changes). Having all configuration settings of components in the SystemProperty table enhances the usability of OFBiz allowing system administrators to adjust the value(s) of system property records while the instance keeps running. added: SystemProperty records in ContentSystemPropertyData.xml Modified: ofbiz-component.xml: reference of ContentSystemPropertyData.xml to load at seed loading moment added: missing SystemProperty records in ContentSystemPropertyData.xml Thanks to Jacques for the review
94 lines
4.5 KiB
XML
94 lines
4.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
or more contributor license agreements. See the NOTICE file
|
|
distributed with this work for additional information
|
|
regarding copyright ownership. The ASF licenses this file
|
|
to you under the Apache License, Version 2.0 (the
|
|
"License"); you may not use this file except in compliance
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
software distributed under the License is distributed on an
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, either express or implied. See the License for the
|
|
specific language governing permissions and limitations
|
|
under the License.
|
|
-->
|
|
<entity-engine-xml>
|
|
<SystemProperty systemResourceId="content" systemPropertyId="owner.content.id"
|
|
systemPropertyValue="CONTENT_ROOT"
|
|
description="content id regarding base content owner"/>
|
|
|
|
<SystemProperty systemResourceId="content" systemPropertyId="img.request"
|
|
systemPropertyValue="/content/control/img/"
|
|
description="uri path for image requests"/>
|
|
|
|
<SystemProperty systemResourceId="content" systemPropertyId="img.request.param.name"
|
|
systemPropertyValue="imgId"
|
|
description="request param for images"/>
|
|
|
|
<SystemProperty systemResourceId="content" systemPropertyId="stream.permission.service"
|
|
systemPropertyValue="genericContentPermission"
|
|
description="service for checking permissions regarding content"/>
|
|
|
|
<SystemProperty systemResourceId="content" systemPropertyId="stream.buffersize"
|
|
systemPropertyValue="8192"
|
|
description="buffer size of streams"/>
|
|
|
|
<SystemProperty systemResourceId="content" systemPropertyId="baseUrl"
|
|
systemPropertyValue="https://localhost:8443"
|
|
description="base uri for content"/>
|
|
|
|
<SystemProperty systemResourceId="content" systemPropertyId="disable.ftl.template.cache"
|
|
systemPropertyValue="true"
|
|
description="Whether or not ftl templates are cached. Options: true, false"/>
|
|
|
|
<SystemProperty systemResourceId="content" systemPropertyId="permissionRecorderOn"
|
|
systemPropertyValue="true"
|
|
description="Whether or not permission checks are recorded, Options: true, false"/>
|
|
|
|
<SystemProperty systemResourceId="content" systemPropertyId="allowedHasRoleOperations"
|
|
systemPropertyValue="HAS_USER_ROLE|HAS_AUTHOR_ROLE|HAS_EDITOR_ROLE|HAS_ADMIN_ROLE|HAS_PUBLISHER_ROLE"
|
|
description="Allowed party roles regarding content"/>
|
|
|
|
<SystemProperty systemResourceId="content" systemPropertyId="viewSize"
|
|
systemPropertyValue="10"
|
|
description="Number of 'content' records to be shown when paginate functionality is in play"/>
|
|
|
|
<SystemProperty systemResourceId="content" systemPropertyId="content.upload.path.prefix"
|
|
systemPropertyValue="runtime/uploads"
|
|
description="Location of content uploaded by a user (relative to ofbiz.home)."/>
|
|
|
|
<SystemProperty systemResourceId="content" systemPropertyId="content.upload.path.prefix"
|
|
systemPropertyValue="runtime/uploads"
|
|
description="Location of content uploaded by a user (relative to ofbiz.home)."/>
|
|
|
|
<SystemProperty systemResourceId="content" systemPropertyId="content.upload.max.files"
|
|
systemPropertyValue="250"
|
|
description="Maximum number of files allowed to be uploaded in one request."/>
|
|
|
|
<SystemProperty systemResourceId="content" systemPropertyId="content.upload.always.local.file"
|
|
systemPropertyValue="true"
|
|
description="How upload is treated. Options: true, false"/>
|
|
|
|
<SystemProperty systemResourceId="content" systemPropertyId="content.output.path"
|
|
systemPropertyValue="runtime/output"
|
|
description="Location of generated content output (relative to ofbiz.home)."/>
|
|
|
|
<SystemProperty systemResourceId="content" systemPropertyId="content.upload.path.prefix"
|
|
systemPropertyValue="runtime/uploads"
|
|
description="Location of content uploaded by a user (relative to ofbiz.home)."/>
|
|
|
|
<SystemProperty systemResourceId="content" systemPropertyId="defaultMimeType"
|
|
systemPropertyValue="text/html; charset=utf-8"
|
|
description="Default mime type used in *ContentWrapper* classes"/>
|
|
|
|
<SystemProperty systemResourceId="content" systemPropertyId="content.keyword.max.length"
|
|
systemPropertyValue="15"
|
|
description="Length of content keyword. A content keyword will not be created when the length of a keyword exceeds this value."/>
|
|
|
|
</entity-engine-xml>
|