Context Xml Files - odtorres/Alfresco-Sublime-Snippets GitHub Wiki

Context Xml Files

Just type the command and press ctrl + space

beans init

 <?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>

</beans>

bean model

<!-- Registration of new models -->
<bean id="$1" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
    <property name="models">
        <list>
            <value>alfresco/module/$2/model/$3.xml</value>
        </list>
    </property>
</bean>

bean resourceBundles

 <!-- Registration of new resourceBundles -->
<bean id="$1" class="org.alfresco.web.app.ResourceBundleBootstrap">
  <property name="resourceBundles">
    <list>
      <value>alfresco.module.$2.messages.$3</value>
    </list>
  </property>
</bean>

bean workflow

<!-- Registration of new workflow -->
<bean id="$1" parent="workflowDeployer">
    <property name="workflowDefinitions">
        <list>
            <props>
                <prop key="engineId">activiti</prop>
                <prop key="location">alfresco/module/$2/workflows/$3.bpmn</prop>
                <prop key="mimetype">text/xml</prop>
                <prop key="redeploy">false</prop>
            </props>
        </list>
    </property>
</bean>

bean jsService

<bean id="$1" class="org.mycode" parent="baseJavaScriptExtension">
  <property name="extensionName">
      <value>myJSService</value>
  </property>
</bean>

property globalproperties

<property name="myName" value="${name.my.value}"/>

props workflow

<props>
    <prop key="engineId">activiti</prop>
    <prop key="location">alfresco/module/$1/workflows/$2.bpmn</prop>
    <prop key="mimetype">text/xml</prop>
    <prop key="redeploy">false</prop>
</props>

value model

<value>alfresco/module/$1/model/$2.xml</value>

value resource

<value>alfresco.module.$1.messages.$2</value>
⚠️ **GitHub.com Fallback** ⚠️