Hi,I implement interface CopyServicePolicies.OnCopyNodePolicy. When I try to copy document, document was copied successfilly, but size of copy is 0 and when I try to open it I recieve the error message:
The node's content is missing:
node: workspace://SpacesStore/ea5ad157-d489-4e94-84aa-7d7f3531d8dd
reader: null
Please contact your system administrator.
My code near:Binding behavior:
this.policyComponent.bindClassBehaviour(QName.createQName(
NamespaceService.ALFRESCO_URI, "onCopyNode"),
ContentModel.TYPE_CONTENT,
new JavaBehaviour(this, "onCopyNode"));
Handler:
public void onCopyNode(QName classRef, NodeRef sourceNodeRef,
StoreRef destinationStoreRef, boolean copyToNewNode,
PolicyScope copyDetails) {
log.debug("onCopyNode()");
log.debug("copyToNewNode = " + copyToNewNode);
}