03-05-2013 05:20 AM
04-07-2014 07:49 AM
behaviour.serviceRegistry
serviceRegistry.getAuthenticationService().getCurrentUserName();
<bean id="onEditErrorNode" 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://mynamespace}MY_ASPECT</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/error/scripts/fixerror.js</value>
</constructor-arg>
</bean>
</property>
<property name="notificationFrequency">
<value>TRANSACTION_COMMIT</value>
</property>
<property name="serviceRegistry" ref="ServiceRegistry"/>
</bean>
</property>
</bean>
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.