Settings in local.properties and project.properties

You can use additional settings in the local.properties or project.properties files that change the default behavior of Backoffice application.

Settings
Property Default value Description
Development and productivity
backoffice.cockpitng.additionalResourceLoader.enabled false If you set it to true, Backoffice uses the resources locations pointed in the additionalResourceLoader.path property to load resources directly from files. You can change views, images, and similar files and reload them instantly.
backoffice.cockpitng.additionalResourceLoader.path empty It defines the directories scanned by the resource loader. See the description of backoffice.cockpitng.additionalResourceLoader.enabled property.
backoffice.cockpitng.uifactory.cache.enabled true If you set it to true, the pages definition is taken from cache. If you want to use hot swap of views together with additionalResourceLoader.enabled, the property must be set to false. This setting must be set to true in production not to corrupt the performance.
backoffice.cockpitng.widgetclassloader.resourcecache.enabled true If you set it to true, the widget classloader caches resources; otherwise, the widget-resources are fetched directly from appropriate resources. This setting must be set to true in production not to corrupt the performance.
backoffice.cockpitng.resourceloader.resourcecache.maxentrysize 524288 It defines the maximal size of the resource cache.
backoffice.cockpitng.resourceloader.cache.expiration 691200 It defines the resource expiration interval in seconds. This information is set on the request header, so that the browser caches the resource for the given interval.
backoffice.cockpitng.resourceloader.cache.control max-age:7200, must-revalidate It allows you to define the Cache-Control header for the resource requests.
backoffice.cockpitng.development.mode false If you set it to true, Backoffice displays an additional toolbar that allows you to trigger actions available in the development mode only.
cockpitng.hotDeployment.enabled Not set If you set it to true, the system bar displays a button allowing you to force full reload of the components.
Sass
backoffice.sass.enabled true If you set it to true, it enables Sass compilation.
backoffice.sass.preffered.extension empty It defines backoffice extension, which has SCSS files with the highest priority. See the description of backoffice.sass.preferred.variables.file.
backoffice.sass.preffered.variables.file empty It defines SCSS file with the highest priority. The file is included as the last import in every SCSS file. You can override default styles and variables.
backoffice.sass.source.map.enabled false If you set it to true, the system generates SCSS source maps. It's recommended to set it to false in production environment.
ytestid
backoffice.cockpit.ytestid.enabled true If you set it to true, the HTML DOM tree has an additional ytestid attribute. The attribute always takes the same value equal to the widget id or to a value that an approprate renderer/controller specifies. Use this value to build automated tests with Backoffice.
Widget Library
backoffice.widget.library.blacklist empty It allows you to specify a comma-separated list of widget ids that the widget library shouldn’t load. If you use a widget from the restricted widgets in the widgets.xml, the application doesn’t render it. This feature allows you to hide unused or insecure widgets from being available at runtime.
backoffice.cockpitng.legacy.widget.configuration.persistence.enabled false If you set it to true, the Quick Toggle Locale widget persists the locale you selected each time you toggle selected locales. Due to many subsequent cockpit-config.xml configuration persistence requests, the behavior is disabled by default.
Excel
backoffice.excel.export.max.rows 2000 It defines the maximal number of rows to export.
backoffice.excel.import.max.rows 2000 It defines the maximal number of rows to import.
backoffice.excel.export.max.attributes 200 It defines the maximal number of exported attributes.
backoffice.excel.utility.sheets.hidden true If you set it to true, you can display utility sheets only programmatically. If you set it to false, you can show them through the excel menu.
excel.available.media.extensions gif,jpeg,jpg,ico,png,svg,tif,tiff,webp,bmp It defines a list of available extensions that you can import by Excel Media Import feature.
Security
backoffice.response.header.X-Frame-Options SAMEORIGIN It sets the value of X-Frame-Options security header.
backoffice.response.header.Strict-Transport-Security max-age=31536000; includeSubDomains It sets the value of Strict-Transport-Security security header.
backoffice.response.header.X-XSS-Protection 1; mode=block It sets the value of X-XSS-Protection security header.
backoffice.response.header.X-Content-Type-Options nosniff It sets the value of X-Content-Type-Options security header.
backoffice.response.header.Content-Security-Policy default-src 'self' https://*.qualtrics.com; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://*.qualtrics.com blob:; connect-src 'self' *.qualtrics.com; img-src * data:; style-src 'self' 'unsafe-inline'; font-src 'self' It sets the value of Content-Security-Policy security header.
Miscellaneous
backoffice.cockpitng.reseteverything.enabled true If you set it to true, system update with Backoffice project data resets Backoffice configuration.
backoffice.fill.typefacade.cache.on.startup true If you set it to true, Backoffice warms up type façade caches with the definitions of types declared in the warmUpTypeFacadeCaches bean. Otherwise, the cache isn’t warmed up and the system loads the types on the first attempt to read them.
backoffice.cockpit.adminmode.disabled false If you set it to true, the Application Orchestrator is unavailable, even for the administrator. Set this setting to true in production systems where runtime changes through the Application Orchestrator are insecure and discouraged.
lang.packs Defined by Platform In addition to the standard usage in application, Backoffice uses only the defined languages for the following:Platform
  • displaying them as available UI locales on the login page
  • building the localization data for the type system
backoffice.cockpitng.appTitle SAP CX Backoffice It sets the title of the browser card in the application.
backoffice.cockpitng.loginTitle SAP CX Backoffice | Login It sets the title of the browser on the login page.
backoffice.cockpitng.css.legacy.ie9.import.support.enabled false If you set it to true, Backoffice uses the workaround for limit of 31 imports/files on legacy IE (8 and 9). Otherwise, the application may not work properly on legacy IE.
backoffice.fileUpload.maxSize 10240 It defines the maximum file size (in KB) you can upload.
backoffice.cockpitng.globaleventtimer.enabled=true true If you set it to true, Backoffice creates a timer (heartbeat) which enables global notifications and event propagation.
backoffice.cockpitng.globaleventtimer.interval 10000 It defines the default interval between heart beats in the application (in milliseconds).
backoffice.cockpitng.zk.resourcelocator.urlfilter ^.*/cockpit/lib/.*$ It defines a regular expression that omits URLs when scanning for classpath resources, for example metainfo/zk/lang.addon.xml. Some appservers need it when you have different versions of ZK libs. See the details of the com.hybris.cockpitng.util.impl.FilteringClassLocator and com.hybris.cockpitng.util.impl.CockpitHttpSessionListener classes.
backoffice.cockpitng.resourceComponentLoader.packagefilter ^.*/instore/resources/.*$ It defines a regular expression you can use to filter out widget info files. See the details of the com.hybris.cockpitng.core.impl.ResourceCockpitComponentLoader#getWidgetInfoFiles.
backoffice.cockpitng.widgetengine.monitor.console.enabled false If you set it to true, the widget engine logs time spent on rendering widgets.
backoffice.cockpitng.widgetengine.monitor.client.enabled false If you set it to true, the widget engine displays a popup presenting the rendering time and caching settings. It only works with the backoffice.cockpitng.widgetengine.monitor.console.enabled set to true.
backoffice.cockpitng.mainpage.css /cng/css/backoffice.css It defines a default backoffice CSS file.
backoffice.cockpitng.displayAttributeDescriptions true If you set it to true, attribute labels are rendered with extra info popups explaining their purpose (if available).
backoffice.cockpitng.reset.triggers Not set It defines triggers for automatic configuration reset of widgets and configuration (configure the scope through the backoffice.cockpitng.reset.scope). Possible values:
  • start: The reset happens once on the server startup.
  • login: The reset happens every time you log in.
Use this feature for development only as it may cause significant performance decrease.
backoffice.cockpitng.reset.scope Not set It defines which configurations are reloaded on automatic reset. Possible values:
  • widgets: It resets widgets.xml.
  • cockpitConfig: It resets cockpit-config.xml.
backoffice.cockpitng.validate.cockpitConfig.onstartup false If you set it to true, the system validates Backoffice configuration during the system startup. If there are configuration errors, the system rejects configuration and resets to default.
backoffice.cockpitng.validate.cockpitConfig.orchestrator true If you set it to true, it’s possible to validate Backoffice configuration within Application Orchestrator.
backoffice.cockpitng.export.csv.action.input.sanitization.enabled true If you set it to true, the system sanitizes CSV content - the system modifies potentially malicious content to a safe form.
backoffice.cockpitng.export.csv.action.input.sanitization.mode trim It defines the system behavior when encountering malicious content. Possible values:
  • trim: It removes the first (formula-defining) character from the malicious content.
  • prefix: It prepends the malicious content with a prefix. See the details of the backoffice.cockpitng.export.csv.action.input.sanitization.prefix.
backoffice.cockpitng.export.csv.action.input.sanitization.prefix Not set If you set the sanitization mode to prefix, this value is prepended to the malicious content.
backoffice.sync.config.createSavedValues false If you set it to true, the system creates SavedValues for the synchronized entities.
backoffice.sync.config.synchronous false If you set it to true, the synchronization process is synchronous.
backoffice.gettingcurrentuser.annonymoususer.verification false If you set it to true, the system conducts an extra check if the current user is anonymous or not. Usually, this verification isn’t needed as all operations should be based on Platform-derived access checks.
media.folder.backofficeconfiguration.secured true If you set it to true, Backoffice configuration media is persisted in a secured folder (default). Turning off this setting is not recommended.
backoffice.zk.lib.setting.org.zkoss.lang.Classes.methods.cache.maxSize 5000 It defines the ZK Framework org.zkoss.lang.Classes.methods.cache.maxSize setting that specifies maximal value of cached data to 5000 KB. For more information, see Customizing ZK Framework Library Settings.
cockpit.search.simplesearch.casesensitive false If set to true, Advanced Search widget will work as case sensitive in simple search mode.
cockpit.search.advancedsearch.casesensitive false If set to true, Advanced Search widget will work as case sensitive in advanced search mode.
backoffice.solr.search.index.autoinit true If set to false, Solr automatical index functionality will be turned off and the user has to perform the first index manually.
backoffice.fulltext.search.strategy solr It defines the search strategy that applies for full text search (including product simple search and filter widget, as well as simple-search mode in advanced search widget). Possible values:
  • solr: search items via solr.
  • flexible: search items via flexible service.
backoffice.flexible.search.attribute.permission.check.enabled true If set to false, attribute permission check on subtype during flexible search is disabled..
backoffice.accountsettings.changepassword.enabled true If set to false, the change passoword button will be hidden.
backoffice.cockpitng.configuration.read.timeout Not set It allows you to specify maximum time for read operation to wait for access to configuration, for example, blocked by configuration write. The default value is 15 seconds.
backoffice.cockpitng.configuration.write.timeout Not set It allows you to specify maximum time for write operation to wait for access to configuration, for example, blocked by configuration read. The default value is 45 seconds.
backoffice.flexible.search.comparison.operator.startswith.types Not set It replaces the default value comparison operator with startswith for the configured types when using flexible search. The default value is empty, you can also set the value to * to apply it to all types.
backoffice.flexible.search.comparison.operator.endswith.types Not set It replaces the default value comparison operator with endswith for the configured types when using flexible search. The default value is empty, you can also set the value to * to apply it to all types.
backoffice.flexible.search.comparison.operator.equals.types Not set It replaces the default value comparison operator with equals for the configured types when using flexible search. The default value is empty, you can also set the value to * to apply it to all types.
backoffice.cockpitng.event.queue.ttl 30 It defines the maximum time to live for widget event in the event queue. The default vaule is 30 minutes.

Label Cache Settings

backoffice.cockpitng.explorertree.labelcache.enabled true Enables the label cache in the Explorer Tree widget that improves filtering option of the available nodes.
backoffice.cockpitng.explorertree.labelcache.warmup.enabled false Enables the label cache warmup when a user logs in to the application. Disable this property if the cache warmup operation causes memory or CPU issues. For example, when the system contains large number of catalogs and/or categories. This property works only when the backoffice.cockpitng.explorertree.labelcache.enabled property is enabled.
backoffice.cockpitng.explorertree.simplelabels.enabled true Enables simple labels in the Explorer Tree widget, which means that the labels computation in the Explorer Tree ignores the configuration of dynamic label service and uses static model-based values for objects. Such an approach is more performant.
backoffice.regioncache.objectlabel.maxEntries 10000 It sets the maximum entry size of object label cache. If the upper limit is reached, the cached data will be removed from the region cache according to the configured evict policy.
backoffice.regioncache.objectlabel.evictionpolicy LFU It sets the evict policy for object label cache.
backoffice.regioncache.objectlabel.timeToLive 300 It sets the maximum number of seconds that an element can exist in the cache regardless of use.
backoffice.regioncache.objectshortlabel.maxEntries 2000 It sets the maximum entry size of object short label cache. If the upper limit is reached, the cached data will be removed from the region cache according to the configured evict policy.
backoffice.regioncache.objectshortlabel.evictionpolicy LFU It sets the evict policy for object short label cache.
backoffice.regioncache.objectshortlabel.timeToLive 300 It sets the maximum number of seconds that an element can exist in the cache regardless of use.
backoffice.regioncache.objectdescription.maxEntries 2000 It sets the maximum entry size of object text description cache, if the upper limit is reached, the cached data will be removed from the region cache according to the configured evict policy.
backoffice.regioncache.objectdescription.evictionpolicy LFU It sets the evict policy for object text description cache.
backoffice.regioncache.objectdescription.timeToLive 300 It sets the maximum number of seconds an element can exist in the cache regardless of use.
backoffice.regioncache.objecticonpath.maxEntries 2000 It sets the maximum entry size of object icon path cache If the upper limit is reached, the cached data will be removed from the region cache according to the configured evict policy.
backoffice.regioncache.objecticonpath.evictionpolicy LFU It sets the evict policy for object icon path cache.
backoffice.regioncache.objecticonpath.timeToLive 300 It sets the maximum number of seconds that an element can exist in the cache regardless of use.
backoffice.regioncache.typereadpermission.maxEntries 2000 It sets the maximum entry size of type read permission cache. If the upper limit is reached, the cached data will be removed from the region cache according to the configured evict policy.
backoffice.regioncache.typereadpermission.evictionpolicy LFU It sets the evict policy for type read permission cache.
backoffice.regioncache.typereadpermission.timeToLive 300 It sets the maximum number of seconds that an element can exist in the cache regardless of use.
backoffice.regioncache.typeattributesreadpermission.maxEntries 5000 It sets the maximum entry size of type attributes read permission cache. If the upper limit is reached, the cached data will be removed from the region cache according to the configured evict policy.
backoffice.regioncache.typeattributesreadpermission.evictionpolicy LFU It sets the evict policy for type attributes read permission cache.
backoffice.regioncache.typeattributesreadpermission.timeToLive 300 It sets the maximum number of seconds that an element can exist in the cache regardless of use.
backoffice.regioncache.user.maxEntries 200 It sets the maximum entry size of user cache. If the upper limit is reached, the cached data will be removed from the region cache according to the configured evict policy.
backoffice.regioncache.user.evictionpolicy LFU It sets the evict policy for user cache.
backoffice.regioncache.user.timeToLive 300 It sets the maximum number of seconds an element can exist in the cache regardless of use.
backoffice.regioncache.deletedItem.maxEntries From ${relation.cache.default.capacity} defined in Platform It sets the maximum entry size of deleted item cache. If the upper limit is reached, the cached data are removed from the region cache according to the configured evict policy.
backoffice.regioncache.deletedItem.evictionpolicy LRU It sets the evict policy for object label cache.
backoffice.regioncache.deletedItem.timeToLive 300 It sets the maximum number of seconds that an element can exist in the cache regardless of use.

Flexible Search Algorithm for Filtering

backoffice.catalog.tree.populator.search.based.active true Enables the Flexible Search-based algorithm for filtering the Explorer Tree widget.
backoffice.cockpitng.catalog.tree.model.populator.allowForFlatList false If set to true, when the number of filtering results is higher than the flat list threshold and below the overflow threshold, the Explorer Tree displays a flat list with the matching results only. The children and parent nodes are omitted.
backoffice.cockpitng.catalog.tree.model.populator.flatListThreshold 50 Defines the number of elements to display when you filter the Explorer Tree. When the matching results exceed the threshold, the Explorer Tree displays the flat structure of matching nodes. To set the threshold, enable the backoffice.cockpitng.catalog.tree.model.populator.allowForFlatList setting first. The value can’t be higher than the overflow threshold.
backoffice.cockpitng.catalog.tree.model.populator.overflowThreshold 200 Defines the maximal number of elements to display when you filter the Explorer Tree. When the number of matching filtering results exceeds the overflow threshold, the Explorer Tree only displays a notification that there are too many records matching the query and doesn't display the results.
backoffice.search.read-replica.type.codes.exclude Not set It excludes specific type codes when read-replica in DefaultGenericSearchService is used.
backoffice.search.read-replica.enabled ture It defines whether to use read-replica in DefaultGenericSearchService.
backoffice.cache.on.read-replica.enabled false It enables or disables separate caches for read-only data source.