AnsweredAssumed Answered

handling multiple Webclient config & dynamic deployment

Question asked by sanatmastan on Feb 12, 2010
Latest reply on Nov 4, 2011 by protanveer
Hi,

How to maintain multiple webclient config files? i am generating them programmatically and have to deploy them in to system. in web-client-application-content.xml i tried adding regular expression to webClientConfigSource bean to pick up webclient config files from anyfolder under extensions but it is not working,

  <bean id="webClientConfigSource" parent="repoUrlConfigSource">
      <constructor-arg>
         <list>
            <value>classpath:alfresco/web-client-config.xml</value>
            <value>classpath:alfresco/web-client-config-dialogs.xml</value>
            <value>classpath:alfresco/web-client-config-wizards.xml</value>
            <value>classpath:alfresco/web-client-config-properties.xml</value>
            <value>classpath:alfresco/web-client-config-navigation.xml</value>
            <value>classpath:alfresco/web-client-config-wcm.xml</value>
            <value>classpath:alfresco/web-client-config-actions.xml</value>
            <value>classpath:alfresco/web-client-config-forum-actions.xml</value>

            <value>classpath:alfresco/web-client-config-wcm-actions.xml</value>
            <value>classpath:alfresco/web-client-config-workflow-actions.xml</value>
            <value>classpath:alfresco/extension/web-client-config-custom.xml</value>
            <value>jar:*!/META-INF/web-client-config-custom.xml</value>
            <value>workspace://SpacesStore/${spaces.company_home.childname}/${spaces.dictionary.childname}/app:webclient_extension/cm:web-client-config-custom.xml</value>

<!– This is my entry —————————->
            <value>classpath:alfresco/extension/*/web-client-config-custom.xml</value>
<!– This is my entry —————————->

         </list>
      </constructor-arg>
   </bean>

In the above bean definition i added

            <value>classpath:alfresco/extension/*/web-client-config-custom.xml</value>

in which i want system to pick web-client-config-custom.xml files under any folder present under alfresco/extension folder (lets say alfresco/extension/a/web-client-config-custom.xml, alfresco/extension/b/web-client-config-custom.xml etc…) , can anyone help me how to add expression here to pick such files??


2) And now the second question is how can i reload them using API?


Thanks
Sanat.

Outcomes