コード例 #1
0
 /**
  * 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;
 }
コード例 #2
0
 /** 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);
 }