public class DoNothingCopyBehaviourCallback extends AbstractCopyBehaviourCallback
This implementation is stateless and therefore thread-safe.
CopyBehaviourCallback.AssocCopySourceAction, CopyBehaviourCallback.AssocCopyTargetAction, CopyBehaviourCallback.ChildAssocCopyAction, CopyBehaviourCallback.ChildAssocRecurseAction, CopyBehaviourCallback.CopyAssociationDetails, CopyBehaviourCallback.CopyChildAssociationDetails| Constructor and Description |
|---|
DoNothingCopyBehaviourCallback() |
| Modifier and Type | Method and Description |
|---|---|
Pair<CopyBehaviourCallback.AssocCopySourceAction,CopyBehaviourCallback.AssocCopyTargetAction> |
getAssociationCopyAction(QName classQName,
CopyDetails copyDetails,
CopyBehaviourCallback.CopyAssociationDetails assocCopyDetails)
Determine the copy behaviour associated with a given peer association.
|
CopyBehaviourCallback.ChildAssocCopyAction |
getChildAssociationCopyAction(QName classQName,
CopyDetails copyDetails,
CopyBehaviourCallback.CopyChildAssociationDetails childAssocCopyDetails)
Determine if a copy should copy the child, the association only or do nothing with
the given association.
|
Map<QName,Serializable> |
getCopyProperties(QName classQName,
CopyDetails copyDetails,
Map<QName,Serializable> properties)
Modify the properties that are copied across.
|
static CopyBehaviourCallback |
getInstance() |
boolean |
getMustCopy(QName classQName,
CopyDetails copyDetails)
Determine if this type or aspect must be copied.
|
getChildAssociationRecurseAction, isTopLevelCanBeRenamed, recordNodeRefsForRepointing, repointNodeRefs, throwExceptionForUnexpectedBehaviourpublic static CopyBehaviourCallback getInstance()
public boolean getMustCopy(QName classQName, CopyDetails copyDetails)
CopyBehaviourCallbackclassQName - the name of the class that this is being invoked forcopyDetails - the source node's copy details for quick referencepublic CopyBehaviourCallback.ChildAssocCopyAction getChildAssociationCopyAction(QName classQName, CopyDetails copyDetails, CopyBehaviourCallback.CopyChildAssociationDetails childAssocCopyDetails)
CopyBehaviourCallbackThis is called regardless of whether 'cascade' copy has been selected by the client of the copy. Some type and aspect behaviour will mandate a copy of the child associations regardless of whether recursion is on.
classQName - the name of the class that this is being invoked forcopyDetails - the source node's copy details for quick referencechildAssocCopyDetails - all other details relating to the child associationpublic Map<QName,Serializable> getCopyProperties(QName classQName, CopyDetails copyDetails, Map<QName,Serializable> properties)
CopyBehaviourCallbackclassQName - the name of the class that this is being invoked forcopyDetails - the source node's copy details for quick referenceproperties - the type- or aspect-specific properties that can be copied.
The map can be manipulated and returned as required.public Pair<CopyBehaviourCallback.AssocCopySourceAction,CopyBehaviourCallback.AssocCopyTargetAction> getAssociationCopyAction(QName classQName, CopyDetails copyDetails, CopyBehaviourCallback.CopyAssociationDetails assocCopyDetails)
CopyBehaviourCallbackgetAssociationCopyAction in interface CopyBehaviourCallbackgetAssociationCopyAction in class AbstractCopyBehaviourCallbackclassQName - the name of the class that this is being invoked forcopyDetails - the source node's copy details for quick referenceassocCopyDetails - all other details relating to the associationCopyBehaviourCallback.AssocCopySourceAction.COPY_REMOVE_EXISTING and
CopyBehaviourCallback.AssocCopyTargetAction.USE_COPIED_TARGETCopyright © 2005–2020 Alfresco Software. All rights reserved.