public class AliasableAspectCopyBehaviourCallback extends DefaultCopyBehaviourCallback
CopyBehaviourCallback.AssocCopySourceAction, CopyBehaviourCallback.AssocCopyTargetAction, CopyBehaviourCallback.ChildAssocCopyAction, CopyBehaviourCallback.ChildAssocRecurseAction, CopyBehaviourCallback.CopyAssociationDetails, CopyBehaviourCallback.CopyChildAssociationDetails
Constructor and Description |
---|
AliasableAspectCopyBehaviourCallback() |
Modifier and Type | Method and Description |
---|---|
Map<org.alfresco.service.namespace.QName,Serializable> |
getCopyProperties(org.alfresco.service.namespace.QName classQName,
CopyDetails copyDetails,
Map<org.alfresco.service.namespace.QName,Serializable> properties)
Prevents copying off the
cm:name property. |
boolean |
getMustCopy(org.alfresco.service.namespace.QName classQName,
CopyDetails copyDetails)
Disallows copying of the
EmailServerModel.ASPECT_ALIASABLE aspect. |
getAssociationCopyAction, getChildAssociationCopyAction, getInstance, getTrait
getChildAssociationRecurseAction, isTopLevelCanBeRenamed, recordNodeRefsForRepointing, repointNodeRefs, throwExceptionForUnexpectedBehaviour
public AliasableAspectCopyBehaviourCallback()
public boolean getMustCopy(org.alfresco.service.namespace.QName classQName, CopyDetails copyDetails)
EmailServerModel.ASPECT_ALIASABLE
aspect.getMustCopy
in interface CopyBehaviourCallback
getMustCopy
in class DefaultCopyBehaviourCallback
classQName
- the name of the class that this is being invoked forcopyDetails
- the source node's copy details for quick referencepublic Map<org.alfresco.service.namespace.QName,Serializable> getCopyProperties(org.alfresco.service.namespace.QName classQName, CopyDetails copyDetails, Map<org.alfresco.service.namespace.QName,Serializable> properties)
cm:name
property.getCopyProperties
in interface CopyBehaviourCallback
getCopyProperties
in class DefaultCopyBehaviourCallback
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.