public interface CopyBehaviourCallback
Modifier and Type | Interface and Description |
---|---|
static class |
CopyBehaviourCallback.AssocCopySourceAction
Description of how the copy process should handle multiplicity of peer associations
at the source end of the association.
The order of this enum denotes the priority when mixing behaviour as well; that is to say that a 'ignore' behaviour will occur even if an 'copy' is also provided by the registered behaviour callbacks. |
static class |
CopyBehaviourCallback.AssocCopyTargetAction
Description of how the copy process should handle multiplicity of peer associations
at the target end of the association.
The order of this enum denotes the priority when mixing behaviour as well; that is to say that a 'ignore' behaviour will occur even if an 'copy' is also provided by the registered behaviour callbacks. |
static class |
CopyBehaviourCallback.ChildAssocCopyAction
Description of how the copy process should traverse a child association.
|
static class |
CopyBehaviourCallback.ChildAssocRecurseAction
Description of how the copy process should behave when copying an association.
|
static class |
CopyBehaviourCallback.CopyAssociationDetails
A simple bean class to convey information to the callback methods dealing with
copying of associations.
|
static class |
CopyBehaviourCallback.CopyChildAssociationDetails
A simple bean class to convey information to the callback methods dealing with
copying of child associations.
|
Modifier and Type | Method and Description |
---|---|
org.alfresco.util.Pair<CopyBehaviourCallback.AssocCopySourceAction,CopyBehaviourCallback.AssocCopyTargetAction> |
getAssociationCopyAction(org.alfresco.service.namespace.QName classQName,
CopyDetails copyDetails,
CopyBehaviourCallback.CopyAssociationDetails assocCopyDetails)
Determine the copy behaviour associated with a given peer association.
|
CopyBehaviourCallback.ChildAssocCopyAction |
getChildAssociationCopyAction(org.alfresco.service.namespace.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.
|
CopyBehaviourCallback.ChildAssocRecurseAction |
getChildAssociationRecurseAction(org.alfresco.service.namespace.QName classQName,
CopyDetails copyDetails,
CopyBehaviourCallback.CopyChildAssociationDetails childAssocCopyDetails)
Once the child association copy action has been chosen, the policy callback can
dictate whether or not to force further recursion.
|
Map<org.alfresco.service.namespace.QName,Serializable> |
getCopyProperties(org.alfresco.service.namespace.QName classQName,
CopyDetails copyDetails,
Map<org.alfresco.service.namespace.QName,Serializable> properties)
Modify the properties that are copied across.
|
boolean |
getMustCopy(org.alfresco.service.namespace.QName classQName,
CopyDetails copyDetails)
Determine if this type or aspect must be copied.
|
boolean |
isTopLevelCanBeRenamed(org.alfresco.service.namespace.QName classQName,
CopyDetails copyDetails)
Determine if this top-level node with type or aspect can be renamed during copy.
|
boolean getMustCopy(org.alfresco.service.namespace.QName classQName, CopyDetails copyDetails)
classQName
- the name of the class that this is being invoked forcopyDetails
- the source node's copy details for quick referenceboolean isTopLevelCanBeRenamed(org.alfresco.service.namespace.QName classQName, CopyDetails copyDetails)
classQName
- the name of the class that this is being invoked forcopyDetails
- the source node's copy details for quick referenceorg.alfresco.util.Pair<CopyBehaviourCallback.AssocCopySourceAction,CopyBehaviourCallback.AssocCopyTargetAction> getAssociationCopyAction(org.alfresco.service.namespace.QName classQName, CopyDetails copyDetails, CopyBehaviourCallback.CopyAssociationDetails assocCopyDetails)
CopyBehaviourCallback.ChildAssocCopyAction getChildAssociationCopyAction(org.alfresco.service.namespace.QName classQName, CopyDetails copyDetails, CopyBehaviourCallback.CopyChildAssociationDetails childAssocCopyDetails)
This 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 associationaction
to take
with the given child associationCopyBehaviourCallback.ChildAssocRecurseAction getChildAssociationRecurseAction(org.alfresco.service.namespace.QName classQName, CopyDetails copyDetails, CopyBehaviourCallback.CopyChildAssociationDetails childAssocCopyDetails)
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 associationrecursion
to perform after having copied the child associationgetChildAssociationCopyAction(QName, CopyDetails, CopyChildAssociationDetails)
Map<org.alfresco.service.namespace.QName,Serializable> getCopyProperties(org.alfresco.service.namespace.QName classQName, CopyDetails copyDetails, Map<org.alfresco.service.namespace.QName,Serializable> properties)
classQName
- 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.Copyright © 2005–2017 Alfresco Software. All rights reserved.