|
|||||||||
| 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.DoNothingCopyBehaviourCallback
public class DoNothingCopyBehaviourCallback
Simple copy behaviour to prevent any copying.
This implementation is stateless and therefore thread-safe.
| 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 | |
|---|---|
DoNothingCopyBehaviourCallback()
|
|
| Method Summary | |
|---|---|
org.alfresco.util.Pair |
getAssociationCopyAction(org.alfresco.service.namespace.QName classQName,
CopyDetails copyDetails,
CopyBehaviourCallback.CopyAssociationDetails assocCopyDetails)
Determine the copy behaviour associated with a given peer association. |
CopyBehaviourCallback.ChildAssocCopyAction |
getChildAssociationCopyAction(org.alfresco.service.namespace.QName classQName,
CopyDetails copyDetails,
CopyBehaviourCallback.CopyChildAssociationDetails childAssocCopyDetails)
Determine if a copy should copy the child, the association only or do nothing with the given association. |
java.util.Map |
getCopyProperties(org.alfresco.service.namespace.QName classQName,
CopyDetails copyDetails,
java.util.Map properties)
Modify the properties that are copied across. |
static CopyBehaviourCallback |
getInstance()
|
boolean |
getMustCopy(org.alfresco.service.namespace.QName classQName,
CopyDetails copyDetails)
Determine if this type or aspect must be copied. |
| 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 DoNothingCopyBehaviourCallback()
| Method Detail |
|---|
public static CopyBehaviourCallback getInstance()
public boolean getMustCopy(org.alfresco.service.namespace.QName classQName,
CopyDetails copyDetails)
CopyBehaviourCallback
classQName - the name of the class that this is being invoked forcopyDetails - the source node's copy details for quick reference
public CopyBehaviourCallback.ChildAssocCopyAction getChildAssociationCopyAction(org.alfresco.service.namespace.QName classQName,
CopyDetails copyDetails,
CopyBehaviourCallback.CopyChildAssociationDetails childAssocCopyDetails)
CopyBehaviourCallbackThis is called regardless of whether 'cascade' copy has been selected by the client of the copy. Some type and aspect behaviour will mandate a copy of the child associations regardless of whether recursion is on.
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
public java.util.Map getCopyProperties(org.alfresco.service.namespace.QName classQName,
CopyDetails copyDetails,
java.util.Map properties)
CopyBehaviourCallback
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.
public org.alfresco.util.Pair getAssociationCopyAction(org.alfresco.service.namespace.QName classQName,
CopyDetails copyDetails,
CopyBehaviourCallback.CopyAssociationDetails assocCopyDetails)
CopyBehaviourCallback
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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||