|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.copy.AbstractCopyBehaviourCallback
org.alfresco.repo.copy.DefaultCopyBehaviourCallback
public class DefaultCopyBehaviourCallback
The default behaviour that a type of aspect implements if there is no associated
<behaviour.
This implementation is stateless and therefore thread-safe.
The default behaviour is:
| 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 | |
|---|---|
DefaultCopyBehaviourCallback()
|
|
| Method Summary | |
|---|---|
org.alfresco.util.Pair |
getAssociationCopyAction(org.alfresco.service.namespace.QName classQName,
CopyDetails copyDetails,
CopyBehaviourCallback.CopyAssociationDetails assocCopyDetails)
Default behaviour: * AssocCopySourceAction#COPY_REMOVE_EXISTING* AssocCopyTargetAction#USE_COPIED_OTHERWISE_ORIGINAL_TARGET |
CopyBehaviourCallback.ChildAssocCopyAction |
getChildAssociationCopyAction(org.alfresco.service.namespace.QName classQName,
CopyDetails copyDetails,
CopyBehaviourCallback.CopyChildAssociationDetails childAssocCopyDetails)
Default behaviour: Cascade if we are copying children AND the association is primary |
java.util.Map |
getCopyProperties(org.alfresco.service.namespace.QName classQName,
CopyDetails copyDetails,
java.util.Map properties)
Default behaviour: Copy all associated properties |
static CopyBehaviourCallback |
getInstance()
|
boolean |
getMustCopy(org.alfresco.service.namespace.QName classQName,
CopyDetails copyDetails)
Default behaviour: Always copy |
| Methods inherited from class org.alfresco.repo.copy.AbstractCopyBehaviourCallback |
|---|
getChildAssociationRecurseAction, recordNodeRefsForRepointing, repointNodeRefs, throwExceptionForUnexpectedBehaviour |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultCopyBehaviourCallback()
| Method Detail |
|---|
public static CopyBehaviourCallback getInstance()
public 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 reference
public org.alfresco.util.Pair getAssociationCopyAction(org.alfresco.service.namespace.QName classQName,
CopyDetails copyDetails,
CopyBehaviourCallback.CopyAssociationDetails assocCopyDetails)
AssocCopySourceAction#COPY_REMOVE_EXISTINGAssocCopyTargetAction#USE_COPIED_OTHERWISE_ORIGINAL_TARGET
getAssociationCopyAction in interface CopyBehaviourCallbackgetAssociationCopyAction in class AbstractCopyBehaviourCallbackclassQName - the name of the class that this is being invoked forcopyDetails - the source node's copy details for quick referenceassocCopyDetails - all other details relating to the association
CopyBehaviourCallback.AssocCopySourceAction.COPY_REMOVE_EXISTING and
CopyBehaviourCallback.AssocCopyTargetAction.USE_COPIED_TARGET
public CopyBehaviourCallback.ChildAssocCopyAction getChildAssociationCopyAction(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 association
copyChildren == true
public java.util.Map getCopyProperties(org.alfresco.service.namespace.QName classQName,
CopyDetails copyDetails,
java.util.Map 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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||