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 |
|---|---|
java.util.Map |
getCopyProperties(org.alfresco.service.namespace.QName classQName,
CopyDetails copyDetails,
java.util.Map properties)
Prevents copying off the
cm:name property. |
boolean |
getMustCopy(org.alfresco.service.namespace.QName classQName,
CopyDetails copyDetails)
Disallows copying of the {@link ASPECT_ALIASABLE aspect.
|
getAssociationCopyAction, getChildAssociationCopyAction, getInstancegetChildAssociationRecurseAction, isTopLevelCanBeRenamed, recordNodeRefsForRepointing, repointNodeRefs, throwExceptionForUnexpectedBehaviourpublic AliasableAspectCopyBehaviourCallback()
public boolean getMustCopy(org.alfresco.service.namespace.QName classQName,
CopyDetails copyDetails)
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 java.util.Map getCopyProperties(org.alfresco.service.namespace.QName classQName,
CopyDetails copyDetails,
java.util.Map 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 - 2013 Alfresco Software, Inc. All Rights Reserved.