As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
public void beforeDeleteNode(NodeRef node) { if ( nodeService.hasAspect(node, MYASPECT) ) doSomething(); }
InvalidNodeRefException: Node does not exist: workspace://SpacesStore/6ea81fbd-f911-4884-a2a7-dea408a86c04
public void initialize() { this.policyComponent.bindClassBehaviour( QName.createQName(NamespaceService.ALFRESCO_URI,"beforeDeleteNode"), QName.createQName("http://www.somecorp.co.jp/", "standardDocument"), new JavaBehaviour(this,"beforeDeleteNode",NotificationFrequency.TRANSACTION_COMMIT)); }
<bean id="deletePublishedContentPolicy" class="jp.co.somecorp.workflows.DeletePublishedContentPolicy" init-method="initialize"> <property name="policyComponent" ref="policyComponent"/> <property name="nodeService" ref="nodeService"/> <property name="fileFolderService" ref="fileFolderService"/> </bean>