modules/org.openbravo.client.kernel/src-db/database/sourcedata/OBCLKER_TEMPLATE.xml
author Stefan Hühner <stefan.huehner@openbravo.com>
Tue, 15 Feb 2011 19:52:21 +0100
changeset 10677 bffcb013674f
parent 9091 c4f1a5c7d7c2
child 10773 802557f42def
permissions -rw-r--r--
Move user-dependant resources of 'static' part of getstaticresources;
to not create one cached web/js/gen/*.js file per user, mark parts
depending on the current user as dynamic so only a request for them
will be included in the generated file and not their (dynamic) content
as well.
- ApplicationComponentProvider mark MainLayout.Application as dynamic
(as it contains the menu for the current user
- related change in MenuManger as now now done in a different request
- MyOpenbravoComponentProvider mark MyOpenbravoComponent as dynamic
as its contains flags based on users access rights
- Split application-js.ftl into two parts
application-js.ftl all parts not depending on current user
application-dynamic-js.ftl for the parts moved out of application-js.ftl
- similar add new ApplicationDynamiComponent + template definition
related to the new application-dynamic-js.ftl
- add specific getETag function to delcare the parameters the output
depends on to get the correct caching behavior.
harpreet@9091
     1
<?xml version='1.0' encoding='UTF-8'?>
harpreet@9091
     2
<data>
harpreet@9091
     3
<!--0627967E56584D3B8B13A3C77ABC48E2--><OBCLKER_TEMPLATE>
harpreet@9091
     4
<!--0627967E56584D3B8B13A3C77ABC48E2-->  <OBCLKER_TEMPLATE_ID><![CDATA[0627967E56584D3B8B13A3C77ABC48E2]]></OBCLKER_TEMPLATE_ID>
harpreet@9091
     5
<!--0627967E56584D3B8B13A3C77ABC48E2-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
harpreet@9091
     6
<!--0627967E56584D3B8B13A3C77ABC48E2-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
harpreet@9091
     7
<!--0627967E56584D3B8B13A3C77ABC48E2-->  <AD_MODULE_ID><![CDATA[4B828F4D03264080AA1D2057B13F613C]]></AD_MODULE_ID>
harpreet@9091
     8
<!--0627967E56584D3B8B13A3C77ABC48E2-->  <NAME><![CDATA[Application template]]></NAME>
harpreet@9091
     9
<!--0627967E56584D3B8B13A3C77ABC48E2-->  <DESCRIPTION><![CDATA[Creates javascript for the main user information on the client and the global openbravo object]]></DESCRIPTION>
harpreet@9091
    10
<!--0627967E56584D3B8B13A3C77ABC48E2-->  <TEMPLATECLASSPATHLOCATION><![CDATA[/org/openbravo/client/kernel/templates/application-js.ftl]]></TEMPLATECLASSPATHLOCATION>
harpreet@9091
    11
<!--0627967E56584D3B8B13A3C77ABC48E2-->  <TEMPLATE_LANGUAGE><![CDATA[OBCLFRE_Freemarker]]></TEMPLATE_LANGUAGE>
harpreet@9091
    12
<!--0627967E56584D3B8B13A3C77ABC48E2-->  <COMPONENT_TYPE><![CDATA[OBCLKER_Kernel]]></COMPONENT_TYPE>
harpreet@9091
    13
<!--0627967E56584D3B8B13A3C77ABC48E2-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
harpreet@9091
    14
<!--0627967E56584D3B8B13A3C77ABC48E2--></OBCLKER_TEMPLATE>
harpreet@9091
    15
harpreet@9091
    16
<!--96DA67B541E243FC9A7C6AEBC3752952--><OBCLKER_TEMPLATE>
harpreet@9091
    17
<!--96DA67B541E243FC9A7C6AEBC3752952-->  <OBCLKER_TEMPLATE_ID><![CDATA[96DA67B541E243FC9A7C6AEBC3752952]]></OBCLKER_TEMPLATE_ID>
harpreet@9091
    18
<!--96DA67B541E243FC9A7C6AEBC3752952-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
harpreet@9091
    19
<!--96DA67B541E243FC9A7C6AEBC3752952-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
harpreet@9091
    20
<!--96DA67B541E243FC9A7C6AEBC3752952-->  <AD_MODULE_ID><![CDATA[4B828F4D03264080AA1D2057B13F613C]]></AD_MODULE_ID>
harpreet@9091
    21
<!--96DA67B541E243FC9A7C6AEBC3752952-->  <NAME><![CDATA[I18N Template]]></NAME>
harpreet@9091
    22
<!--96DA67B541E243FC9A7C6AEBC3752952-->  <DESCRIPTION><![CDATA[Generates labels map to be used on the client for translation]]></DESCRIPTION>
harpreet@9091
    23
<!--96DA67B541E243FC9A7C6AEBC3752952-->  <TEMPLATECLASSPATHLOCATION><![CDATA[/org/openbravo/client/kernel/templates/i18n.ftl]]></TEMPLATECLASSPATHLOCATION>
harpreet@9091
    24
<!--96DA67B541E243FC9A7C6AEBC3752952-->  <TEMPLATE_LANGUAGE><![CDATA[OBCLFRE_Freemarker]]></TEMPLATE_LANGUAGE>
harpreet@9091
    25
<!--96DA67B541E243FC9A7C6AEBC3752952-->  <COMPONENT_TYPE><![CDATA[OBCLKER_Kernel]]></COMPONENT_TYPE>
harpreet@9091
    26
<!--96DA67B541E243FC9A7C6AEBC3752952-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
harpreet@9091
    27
<!--96DA67B541E243FC9A7C6AEBC3752952--></OBCLKER_TEMPLATE>
harpreet@9091
    28
harpreet@9091
    29
<!--DBAC211182304F7784DAB4EDE7B6AA1D--><OBCLKER_TEMPLATE>
harpreet@9091
    30
<!--DBAC211182304F7784DAB4EDE7B6AA1D-->  <OBCLKER_TEMPLATE_ID><![CDATA[DBAC211182304F7784DAB4EDE7B6AA1D]]></OBCLKER_TEMPLATE_ID>
harpreet@9091
    31
<!--DBAC211182304F7784DAB4EDE7B6AA1D-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
harpreet@9091
    32
<!--DBAC211182304F7784DAB4EDE7B6AA1D-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
harpreet@9091
    33
<!--DBAC211182304F7784DAB4EDE7B6AA1D-->  <AD_MODULE_ID><![CDATA[4B828F4D03264080AA1D2057B13F613C]]></AD_MODULE_ID>
harpreet@9091
    34
<!--DBAC211182304F7784DAB4EDE7B6AA1D-->  <NAME><![CDATA[Documentation Template]]></NAME>
harpreet@9091
    35
<!--DBAC211182304F7784DAB4EDE7B6AA1D-->  <DESCRIPTION><![CDATA[Kernel Component]]></DESCRIPTION>
harpreet@9091
    36
<!--DBAC211182304F7784DAB4EDE7B6AA1D-->  <TEMPLATECLASSPATHLOCATION><![CDATA[/org/openbravo/client/kernel/templates/docs.js.ftl]]></TEMPLATECLASSPATHLOCATION>
harpreet@9091
    37
<!--DBAC211182304F7784DAB4EDE7B6AA1D-->  <TEMPLATE_LANGUAGE><![CDATA[OBCLFRE_Freemarker]]></TEMPLATE_LANGUAGE>
harpreet@9091
    38
<!--DBAC211182304F7784DAB4EDE7B6AA1D-->  <COMPONENT_TYPE><![CDATA[OBCLKER_Kernel]]></COMPONENT_TYPE>
harpreet@9091
    39
<!--DBAC211182304F7784DAB4EDE7B6AA1D-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
harpreet@9091
    40
<!--DBAC211182304F7784DAB4EDE7B6AA1D--></OBCLKER_TEMPLATE>
harpreet@9091
    41
stefan@10677
    42
<!--FF8081812E297131012E2A061112001C--><OBCLKER_TEMPLATE>
stefan@10677
    43
<!--FF8081812E297131012E2A061112001C-->  <OBCLKER_TEMPLATE_ID><![CDATA[FF8081812E297131012E2A061112001C]]></OBCLKER_TEMPLATE_ID>
stefan@10677
    44
<!--FF8081812E297131012E2A061112001C-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
stefan@10677
    45
<!--FF8081812E297131012E2A061112001C-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
stefan@10677
    46
<!--FF8081812E297131012E2A061112001C-->  <AD_MODULE_ID><![CDATA[4B828F4D03264080AA1D2057B13F613C]]></AD_MODULE_ID>
stefan@10677
    47
<!--FF8081812E297131012E2A061112001C-->  <NAME><![CDATA[Application template (dynamic parts)]]></NAME>
stefan@10677
    48
<!--FF8081812E297131012E2A061112001C-->  <DESCRIPTION><![CDATA[Creates javacript for the User and accessibleEntities parts of the global openbravo object]]></DESCRIPTION>
stefan@10677
    49
<!--FF8081812E297131012E2A061112001C-->  <TEMPLATECLASSPATHLOCATION><![CDATA[/org/openbravo/client/kernel/templates/application-dynamic-js.ftl]]></TEMPLATECLASSPATHLOCATION>
stefan@10677
    50
<!--FF8081812E297131012E2A061112001C-->  <TEMPLATE_LANGUAGE><![CDATA[OBCLFRE_Freemarker]]></TEMPLATE_LANGUAGE>
stefan@10677
    51
<!--FF8081812E297131012E2A061112001C-->  <COMPONENT_TYPE><![CDATA[OBCLKER_Kernel]]></COMPONENT_TYPE>
stefan@10677
    52
<!--FF8081812E297131012E2A061112001C-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
stefan@10677
    53
<!--FF8081812E297131012E2A061112001C--></OBCLKER_TEMPLATE>
stefan@10677
    54
harpreet@9091
    55
</data>