Files
alfresco-community-repo/config/alfresco/projects-context.xml

26 lines
1.2 KiB
XML

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<!-- Project bean definitions -->
<beans>
<!-- Project behaviour registration -->
<bean id="app_projectfolder_onCreateNode" class="org.alfresco.repo.policy.registration.ClassPolicyRegistration" parent="policyRegistration">
<property name="policyName">
<value>{http://www.alfresco.org}onUpdateNode</value>
</property>
<property name="className">
<value>{http://www.alfresco.org/model/application/1.0}projectfolder</value>
</property>
<property name="behaviour">
<bean class="org.alfresco.repo.jscript.ScriptBehaviour" parent="scriptBehaviour">
<property name="location">
<bean class="org.alfresco.repo.jscript.ClasspathScriptLocation">
<constructor-arg>
<value>alfresco/module/projects/script/onCreateNode_app_projectfolder.js</value>
</constructor-arg>
</bean>
</property>
</bean>
</property>
</bean>
</beans>