public interface AlienProcessor
Alien nodes cannot be deleted through the transfer service, instead they are "pruned"
This class owns the aspect trx:alien (TransferModel.ASPECT_ALIEN)
Modifier and Type | Method and Description |
---|---|
void |
afterMoveAlien(org.alfresco.service.cmr.repository.ChildAssociationRef newAssocRef)
Called when an alien node has been moved from one parent to another.
|
void |
beforeDeleteAlien(org.alfresco.service.cmr.repository.NodeRef deletedNodeRef,
org.alfresco.service.cmr.repository.ChildAssociationRef oldRef)
Called before deleting an alien node.
|
boolean |
isAlien(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Has the node been invaded by aliens ?
|
void |
onCreateChild(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef,
String repositoryId,
boolean isNewNode)
Called before creating a child of a transferred node.
|
void |
pruneNode(org.alfresco.service.cmr.repository.NodeRef parentNodeRef,
String fromRepositoryId)
Prune the given node of aliens from the specified repositoryId.
|
void pruneNode(org.alfresco.service.cmr.repository.NodeRef parentNodeRef, String fromRepositoryId)
So any children that are only invaded by the specified repository are deleted.
Folders which are invaded by more than one repository will remain.
parentNodeRef
- the root to prunefromRepositoryId
- the repositoryId to prune.boolean isAlien(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef
- the node to checkvoid onCreateChild(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef, String repositoryId, boolean isNewNode)
When a new node is created as a child of a Transferred or Alien node then the new node needs to be marked as an alien.
Then the tree needs to be walked upwards to mark all parent transferred nodes as alien.
childAssocRef
- the association ref to the new noderepositoryId
- - the repositoryId of the system who owns the new node.isNewNode
- - is this a new nidevoid afterMoveAlien(org.alfresco.service.cmr.repository.ChildAssociationRef newAssocRef)
If the new parent is transferred or alien may make the new parent an alien.
The alien node may also stop being an alien node.
void beforeDeleteAlien(org.alfresco.service.cmr.repository.NodeRef deletedNodeRef, org.alfresco.service.cmr.repository.ChildAssociationRef oldRef)
The tree needs to be walked upwards to take account of the removed alien node.
deletedNodeRef
- node about to be deletedoldRef
- null if the deleted node is still "in place" and readable else the old ref prior to
the node being moved.Copyright © 2005–2017 Alfresco Software. All rights reserved.