cancel
Showing results for 
Search instead for 
Did you mean: 

handling multiple Webclient config & dynamic deployment

sanatmastan
Champ in-the-making
Champ in-the-making
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.
1 REPLY 1

protanveer
Champ in-the-making
Champ in-the-making
Hi Sanat,

By any chance, have you found the solution to both problems? I am stuck as well. Please help!