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, getTraitgetChildAssociationRecurseAction, isTopLevelCanBeRenamed, recordNodeRefsForRepointing, repointNodeRefs, throwExceptionForUnexpectedBehaviourpublic AliasableAspectCopyBehaviourCallback()
public boolean getMustCopy(org.alfresco.service.namespace.QName classQName,
CopyDetails copyDetails)
EmailServerModel.ASPECT_ALIASABLE aspect.getMustCopy in interface CopyBehaviourCallbackgetMustCopy in class DefaultCopyBehaviourCallbackclassQName - 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 CopyBehaviourCallbackgetCopyProperties in class DefaultCopyBehaviourCallbackclassQName - 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–2018 Alfresco Software. All rights reserved.