mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
onCreateNode javascript policy added for app:projectfolder type
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@7580 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -38,6 +38,7 @@
|
|||||||
<import resource="classpath:alfresco/linkvalidation-service-context.xml"/>
|
<import resource="classpath:alfresco/linkvalidation-service-context.xml"/>
|
||||||
<import resource="classpath:alfresco/remote-services-context.xml"/>
|
<import resource="classpath:alfresco/remote-services-context.xml"/>
|
||||||
<import resource="classpath:alfresco/office-addin-context.xml"/>
|
<import resource="classpath:alfresco/office-addin-context.xml"/>
|
||||||
|
<import resource="classpath:alfresco/projects-context.xml"/>
|
||||||
<import resource="classpath*:alfresco/patch/*-context.xml" />
|
<import resource="classpath*:alfresco/patch/*-context.xml" />
|
||||||
<import resource="classpath*:alfresco/domain/*-context.xml" />
|
<import resource="classpath*:alfresco/domain/*-context.xml" />
|
||||||
|
|
||||||
|
@@ -0,0 +1 @@
|
|||||||
|
// add onCreateNode policy code for app:projectfolder here
|
26
config/alfresco/projects-context.xml
Normal file
26
config/alfresco/projects-context.xml
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
<?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}onCreateNode</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>
|
Reference in New Issue
Block a user