Fix so that Project Space policy code is moved to emailserver:aliasable onAddAspect - fixes 2 bugs and allows creation of project from any Project template

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@7876 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2008-01-08 19:16:24 +00:00
parent c1fa7ba626
commit ace73cf22c
3 changed files with 30 additions and 43 deletions

View File

@@ -4,19 +4,20 @@
<!-- Project bean definitions -->
<beans>
<!-- Project behaviour registration -->
<bean id="app_projectfolder_onCreateNode" class="org.alfresco.repo.policy.registration.ClassPolicyRegistration" parent="policyRegistration">
<bean id="emailserver_aliasable_onAddAspect" class="org.alfresco.repo.policy.registration.ClassPolicyRegistration" parent="policyRegistration">
<property name="policyName">
<value>{http://www.alfresco.org}onCreateNode</value>
<value>{http://www.alfresco.org}onAddAspect</value>
</property>
<property name="className">
<value>{http://www.alfresco.org/model/application/1.0}projectfolder</value>
<value>{http://www.alfresco.org/model/emailserver/1.0}aliasable</value>
</property>
<property name="behaviour">
<bean class="org.alfresco.repo.jscript.ScriptBehaviour" parent="scriptBehaviour">
<property name="notificationFrequency"><value>TRANSACTION_COMMIT</value></property>
<property name="location">
<bean class="org.alfresco.repo.jscript.ClasspathScriptLocation">
<constructor-arg>
<value>alfresco/module/projects/script/onCreateNode_app_projectfolder.js</value>
<value>alfresco/module/projects/script/onAddAspect_emailserver_aliasable.js</value>
</constructor-arg>
</bean>
</property>