/** * Disables the aspect behaviour for this node * * @return Returns <tt>true</tt> */ @Override public boolean getMustCopy(QName classQName, CopyDetails copyDetails) { NodeRef targetNodeRef = copyDetails.getTargetNodeRef(); behaviourFilter.disableBehaviour(targetNodeRef, RuleModel.ASPECT_RULES); // Always copy return true; }
/** Re-enable aspect behaviour for the source node */ public void onCopyComplete( QName classRef, NodeRef sourceNodeRef, NodeRef destinationRef, boolean copyToNewNode, Map<NodeRef, NodeRef> copyMap) { behaviourFilter.enableBehaviour(destinationRef, RuleModel.ASPECT_RULES); }