Skip to content
Snippets Groups Projects
Commit d83aad2a authored by Johannes Goderbauer's avatar Johannes Goderbauer
Browse files

Option for disabling the client-contextual cache

parent b156d50c
No related branches found
No related tags found
No related merge requests found
Showing
with 123 additions and 74 deletions
<?xml version="1.0" encoding="UTF-8"?>
<aliasConfig xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="1.1.0" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/aliasConfig/1.1.0">
<name>_____CONFIGURATION</name>
<serverId>default</serverId>
<definitionName>_____CONFIGURATION</definitionName>
<aliasConfigSub>
<aliasSubInstanceConfiguration>
<databaseAuditEnabled v="true" />
<indexsearchEnabled v="true" />
<loggingConsoleEnabled v="true" />
<loggingFileEnabled v="true" />
<loggingRemoteEnabled v="false" />
<neonVaadinClientEnabled v="true" />
<neonDisableConnectionSecurity v="false" />
<neonUseDummyKeystore v="true" />
<securityConnectionSSLEnabled v="true" />
<securitySSLDisableCertificateCheck v="true" />
<telephonyEnabled v="true" />
<telephonyProvider></telephonyProvider>
<customProperties>
<customBooleanProperty>
<name>dataCaching.client.forceDisable</name>
<description>Enabling this option will disable the per-client-context data-cache within the customzing (for exameple the caching of Keywords). This is usefull if you're testing and want to frequently add data like keywords, etc. which are cached which help of the "DataCaching_lib".</description>
<property v="true" />
</customBooleanProperty>
</customProperties>
</aliasSubInstanceConfiguration>
</aliasConfigSub>
</aliasConfig>
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<changeSet author="j.goderbauer" id="6947b44d-0ef4-4fb6-a74d-f496d99b1e69">
<update tableName="ASYS_ALIASCONFIG">
<column name="XMLDATA" valueBlobFile="defaultBlob/_____configuration.xml"/>
<where>ID = ?</where>
<whereParams>
<param value="f4a33c35-5033-4699-b55a-9520b465b4c5" />
</whereParams>
</update>
</changeSet>
</databaseChangeLog>
<?xml version="1.1" encoding="UTF-8" standalone="no"?> <?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd"> <databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<include relativeToChangelogFile="true" file="create_asys_notifications.xml"/> <include relativeToChangelogFile="true" file="notificationcenter/create_asys_notifications.xml"/>
<include relativeToChangelogFile="true" file="create_asys_notificationcontents.xml"/> <include relativeToChangelogFile="true" file="notificationcenter/create_asys_notificationcontents.xml"/>
<include relativeToChangelogFile="true" file="create_asys_permission.xml"/> <include relativeToChangelogFile="true" file="permission/create_asys_permission.xml"/>
<include relativeToChangelogFile="true" file="create_asys_permissionset.xml"/> <include relativeToChangelogFile="true" file="permission/create_asys_permissionset.xml"/>
<include relativeToChangelogFile="true" file="create_asys_permissionaction.xml"/> <include relativeToChangelogFile="true" file="permission/create_asys_permissionaction.xml"/>
</databaseChangeLog> <include relativeToChangelogFile="true" file="aliasConfig/updateForDataCaching.xml"/>
</databaseChangeLog>
<?xml version="1.1" encoding="UTF-8" standalone="no"?> <?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd"> <databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<changeSet author="a.schindlbeck" id="6b25f062-fb39-4230-9348-b67ec5ec45a1"> <changeSet author="a.schindlbeck" id="6b25f062-fb39-4230-9348-b67ec5ec45a1">
<createTable tableName="ASYS_NOTIFICATIONCONTENTS"> <createTable tableName="ASYS_NOTIFICATIONCONTENTS">
<column name="CONTENTID" type="CHAR(36)"> <column name="CONTENTID" type="CHAR(36)">
<constraints primaryKey="true" primaryKeyName="PK_ASYS_NOTIFICATIONCONTENTS_CONTENTID"/> <constraints primaryKey="true" primaryKeyName="PK_ASYS_NOTIFICATIONCONTENTS_CONTENTID"/>
</column> </column>
<column name="BACKPACK" type="CLOB"/> <column name="BACKPACK" type="CLOB"/>
<column name="CAPTION" type="VARCHAR(512)"/> <column name="CAPTION" type="VARCHAR(512)"/>
<column name="CREATIONDATE" type="TIMESTAMP"/> <column name="CREATIONDATE" type="TIMESTAMP"/>
<column name="DESCRIPTION" type="VARCHAR(1023)"/> <column name="DESCRIPTION" type="VARCHAR(1023)"/>
<column name="FORCEDPRIORITY" type="VARCHAR(15)"/> <column name="FORCEDPRIORITY" type="VARCHAR(15)"/>
<column name="ICON_INFO" type="VARCHAR(1023)"/> <column name="ICON_INFO" type="VARCHAR(1023)"/>
<column name="LIFETIME" type="BIGINT"/> <column name="LIFETIME" type="BIGINT"/>
<column name="LINK_INFO" type="VARCHAR(1023)"/> <column name="LINK_INFO" type="VARCHAR(1023)"/>
<column name="ORIGINATORNAME" type="VARCHAR(63)"/> <column name="ORIGINATORNAME" type="VARCHAR(63)"/>
<column name="RECIPIENTUSERIDS" type="CLOB"/> <column name="RECIPIENTUSERIDS" type="CLOB"/>
<column name="TYPECODE" type="VARCHAR(63)"/> <column name="TYPECODE" type="VARCHAR(63)"/>
<column name="VERSION" type="INTEGER"/> <column name="VERSION" type="INTEGER"/>
</createTable> </createTable>
</changeSet> </changeSet>
</databaseChangeLog> </databaseChangeLog>
\ No newline at end of file
<?xml version="1.1" encoding="UTF-8" standalone="no"?> <?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd"> <databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<changeSet author="s.leipold" id="746f6e0c-3eab-4424-867f-4cf4fb4c45bb"> <changeSet author="s.leipold" id="746f6e0c-3eab-4424-867f-4cf4fb4c45bb">
<createTable tableName="ASYS_PERMISSION"> <createTable tableName="ASYS_PERMISSION">
<column name="ASYS_PERMISSIONID" type="CHAR(36)"> <column name="ASYS_PERMISSIONID" type="CHAR(36)">
<constraints primaryKey="true" primaryKeyName="PK_ASYS_PERMISSION_ID"/> <constraints primaryKey="true" primaryKeyName="PK_ASYS_PERMISSION_ID"/>
</column> </column>
<column name="ASYS_PERMISSIONSET_ID" type="CHAR(36)"/> <column name="ASYS_PERMISSIONSET_ID" type="CHAR(36)"/>
<column name="COND" type="VARCHAR(255)"/> <column name="COND" type="VARCHAR(255)"/>
<column name="CONDTYPE" type="BOOLEAN"/> <column name="CONDTYPE" type="BOOLEAN"/>
</createTable> </createTable>
</changeSet> </changeSet>
</databaseChangeLog> </databaseChangeLog>
\ No newline at end of file
<?xml version="1.1" encoding="UTF-8" standalone="no"?> <?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd"> <databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<changeSet author="s.leipold" id="20241de4-091e-4093-8055-c87c172e5788"> <changeSet author="s.leipold" id="20241de4-091e-4093-8055-c87c172e5788">
<createTable tableName="ASYS_PERMISSIONACTION"> <createTable tableName="ASYS_PERMISSIONACTION">
<column name="ASYS_PERMISSIONACTIONID" type="CHAR(36)"> <column name="ASYS_PERMISSIONACTIONID" type="CHAR(36)">
<constraints primaryKey="true" primaryKeyName="PK_ASYS_PERMISSIONACTION_ID"/> <constraints primaryKey="true" primaryKeyName="PK_ASYS_PERMISSIONACTION_ID"/>
</column> </column>
<column name="ASYS_PERMISSION_ID" type="CHAR(36)"/> <column name="ASYS_PERMISSION_ID" type="CHAR(36)"/>
<column name="ACTION" type="VARCHAR(255)"/> <column name="ACTION" type="VARCHAR(255)"/>
</createTable> </createTable>
</changeSet> </changeSet>
</databaseChangeLog> </databaseChangeLog>
\ No newline at end of file
<?xml version="1.1" encoding="UTF-8" standalone="no"?> <?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd"> <databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<changeSet author="s.leipold" id="8a125d57-48c6-4d2e-9568-d5e66f72a702"> <changeSet author="s.leipold" id="8a125d57-48c6-4d2e-9568-d5e66f72a702">
<createTable tableName="ASYS_PERMISSIONSET"> <createTable tableName="ASYS_PERMISSIONSET">
<column name="ASYS_PERMISSIONSETID" type="CHAR(36)"> <column name="ASYS_PERMISSIONSETID" type="CHAR(36)">
<constraints primaryKey="true" primaryKeyName="PK_ASYS_PERMISSIONSET_ID"/> <constraints primaryKey="true" primaryKeyName="PK_ASYS_PERMISSIONSET_ID"/>
</column> </column>
<column name="ASYS_PERMISSIONSET_ID" type="CHAR(36)"/> <column name="ASYS_PERMISSIONSET_ID" type="CHAR(36)"/>
<column name="ENTITY_ID" type="VARCHAR(255)"/> <column name="ENTITY_ID" type="VARCHAR(255)"/>
<column name="ROLE_ID" type="VARCHAR(255)"/> <column name="ROLE_ID" type="VARCHAR(255)"/>
<column name="FIELD_ID" type="VARCHAR(255)"/> <column name="FIELD_ID" type="VARCHAR(255)"/>
<column name="ACCESSTYPE" type="CHAR(1)"/> <column name="ACCESSTYPE" type="CHAR(1)"/>
</createTable> </createTable>
</changeSet> </changeSet>
</databaseChangeLog> </databaseChangeLog>
\ No newline at end of file
<?xml version="1.1" encoding="UTF-8" standalone="no"?> <?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd"> <databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<include file="basic/init/init.xml"/> <include file="basic/init/init.xml"/>
<include file="basic/init/init.xml"/> <include file="basic/init/system_aliasTestdata.xml"/>
<include file="basic/2019.2/changelog.xml"/> <include file="basic/2019.2/changelog.xml"/>
<include file="basic/init/system_aliasTestdata.xml"/> </databaseChangeLog>
</databaseChangeLog>
import("system.vars"); import("system.vars");
import("system.project");
/** /**
* object for caching data if possible on the targetsystem * object for caching data if possible on the targetsystem
...@@ -17,7 +18,7 @@ function CachedData(pIdentifiyingName, pKeepPerLanguage, pLocaleOverride) ...@@ -17,7 +18,7 @@ function CachedData(pIdentifiyingName, pKeepPerLanguage, pLocaleOverride)
{ {
this.identifyingName = pIdentifiyingName; this.identifyingName = pIdentifiyingName;
this.keepPerLanguage = (pKeepPerLanguage == true); this.keepPerLanguage = (pKeepPerLanguage == true);
this.runningOnServer = vars.getString("$sys.isserver") == "true"; this.runningOnServer = vars.getString("$sys.isserver") == "true";
if (pLocaleOverride) if (pLocaleOverride)
this.locale = pLocaleOverride; this.locale = pLocaleOverride;
...@@ -59,8 +60,15 @@ CachedData.make = function(pIdentifiyingName, pKeepPerLanguage, pDataCallbackFun ...@@ -59,8 +60,15 @@ CachedData.make = function(pIdentifiyingName, pKeepPerLanguage, pDataCallbackFun
*/ */
CachedData.prototype.load = function(pDataCallbackFunction) CachedData.prototype.load = function(pDataCallbackFunction)
{ {
var cachingEnabled = true;
//currently it's not possible to cache the data within the serer-context, so instead the Data-function is called everytime //currently it's not possible to cache the data within the serer-context, so instead the Data-function is called everytime
if (this.runningOnServer) if (this.runningOnServer)
cachingEnabled = false;
else if (project.getInstanceConfigValue("custom.dataCaching.client.forceDisable") == true)
cachingEnabled = false;
if (!cachingEnabled)
return pDataCallbackFunction.call(this, this.keepPerLanguage, this.locale); return pDataCallbackFunction.call(this, this.keepPerLanguage, this.locale);
else else
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment