Package org.alfresco.email.server
Class AliasableAspectCopyBehaviourCallback
java.lang.Object
org.alfresco.repo.copy.AbstractCopyBehaviourCallback
org.alfresco.repo.copy.DefaultCopyBehaviourCallback
org.alfresco.email.server.AliasableAspectCopyBehaviourCallback
- All Implemented Interfaces:
CopyBehaviourCallback,Extensible
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.alfresco.repo.copy.CopyBehaviourCallback
CopyBehaviourCallback.AssocCopySourceAction, CopyBehaviourCallback.AssocCopyTargetAction, CopyBehaviourCallback.ChildAssocCopyAction, CopyBehaviourCallback.ChildAssocRecurseAction, CopyBehaviourCallback.CopyAssociationDetails, CopyBehaviourCallback.CopyChildAssociationDetails -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCopyProperties(QName classQName, CopyDetails copyDetails, Map<QName, Serializable> properties) Prevents copying off thecm:nameproperty.booleangetMustCopy(QName classQName, CopyDetails copyDetails) Disallows copying of theEmailServerModel.ASPECT_ALIASABLEaspect.Methods inherited from class org.alfresco.repo.copy.DefaultCopyBehaviourCallback
getAssociationCopyAction, getChildAssociationCopyAction, getInstance, getTraitMethods inherited from class org.alfresco.repo.copy.AbstractCopyBehaviourCallback
getChildAssociationRecurseAction, isTopLevelCanBeRenamed, recordNodeRefsForRepointing, repointNodeRefs, throwExceptionForUnexpectedBehaviour
-
Constructor Details
-
AliasableAspectCopyBehaviourCallback
public AliasableAspectCopyBehaviourCallback()
-
-
Method Details
-
getMustCopy
Disallows copying of theEmailServerModel.ASPECT_ALIASABLEaspect.- Specified by:
getMustCopyin interfaceCopyBehaviourCallback- Overrides:
getMustCopyin classDefaultCopyBehaviourCallback- Parameters:
classQName- the name of the class that this is being invoked forcopyDetails- the source node's copy details for quick reference- Returns:
- Returns true always
-
getCopyProperties
public Map<QName,Serializable> getCopyProperties(QName classQName, CopyDetails copyDetails, Map<QName, Serializable> properties) Prevents copying off thecm:nameproperty.- Specified by:
getCopyPropertiesin interfaceCopyBehaviourCallback- Overrides:
getCopyPropertiesin classDefaultCopyBehaviourCallback- Parameters:
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.- Returns:
- Returns all the properties passes in
-