public class WorkingCopyAspect extends Object implements CopyServicePolicies.OnCopyNodePolicy, NodeServicePolicies.OnRemoveAspectPolicy, NodeServicePolicies.BeforeArchiveNodePolicy, NodeServicePolicies.OnRestoreNodePolicy
Policy.Arg
ARG_0, ARG_1, QNAME
QNAME
QNAME
QNAME
Constructor and Description |
---|
WorkingCopyAspect() |
Modifier and Type | Method and Description |
---|---|
void |
beforeArchiveNode(org.alfresco.service.cmr.repository.NodeRef workingCopyNodeRef)
beforeArchiveNode policy behaviour
|
void |
beforeDeleteWorkingCopy(org.alfresco.service.cmr.repository.NodeRef nodeRef)
beforeDeleteNode policy behaviour
|
CopyBehaviourCallback |
getCopyCallback(org.alfresco.service.namespace.QName classRef,
CopyDetails copyDetails)
Called for all types and aspects before copying a node.
|
void |
init()
Initialise method
|
void |
onDeleteCmisCreatedCheckoutWorkingCopyAssociation(org.alfresco.service.cmr.repository.AssociationRef nodeAssocRef)
onDeleteAssociation policy behaviour If the node has the aspect ASPECT_CMIS_CREATED_CHECKEDOUT and ASSOC_WORKING_COPY_LINK association is deleted, delete the node.
|
void |
onRemoveAspect(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName aspectTypeQName)
Called after an aspect has been removed from a node
|
void |
onRestoreNode(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef)
onRestoreNode policy behaviour
|
void |
setCheckOutCheckInService(CheckOutCheckInService checkOutCheckInService) |
void |
setLockService(LockService lockService)
Set the lock service
|
void |
setNodeDAO(NodeDAO nodeDAO)
Set the node dao
|
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Set the node service
|
void |
setPolicyBehaviourFilter(BehaviourFilter policyBehaviourFilter) |
void |
setPolicyComponent(PolicyComponent policyComponent)
Sets the policy component
|
public void setPolicyComponent(PolicyComponent policyComponent)
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setNodeDAO(NodeDAO nodeDAO)
public void setLockService(LockService lockService)
public void setCheckOutCheckInService(CheckOutCheckInService checkOutCheckInService)
checkOutCheckInService
- the service dealing with working copiespublic void setPolicyBehaviourFilter(BehaviourFilter policyBehaviourFilter)
policyBehaviourFilter
- BehaviourFilterpublic void init()
public void beforeDeleteWorkingCopy(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef
- the node reference about to be deletedpublic void onDeleteCmisCreatedCheckoutWorkingCopyAssociation(org.alfresco.service.cmr.repository.AssociationRef nodeAssocRef)
nodeAssocRef
- ASSOC_WORKING_COPY_LINK association where the source is the checkedOut node and the target is the workingCopypublic void beforeArchiveNode(org.alfresco.service.cmr.repository.NodeRef workingCopyNodeRef)
beforeArchiveNode
in interface NodeServicePolicies.BeforeArchiveNodePolicy
nodeRef
- the node reference about to be archivedpublic void onRestoreNode(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef)
onRestoreNode
in interface NodeServicePolicies.OnRestoreNodePolicy
nodeRef
- the node reference that was restoredpublic void onRemoveAspect(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName aspectTypeQName)
NodeServicePolicies.OnRemoveAspectPolicy
onRemoveAspect
in interface NodeServicePolicies.OnRemoveAspectPolicy
nodeRef
- the node from which the aspect will be removedaspectTypeQName
- the type of the aspectpublic CopyBehaviourCallback getCopyCallback(org.alfresco.service.namespace.QName classRef, CopyDetails copyDetails)
CopyServicePolicies.OnCopyNodePolicy
getCopyCallback
in interface CopyServicePolicies.OnCopyNodePolicy
classRef
- the type or aspect qualified namecopyDetails
- the details of the impending copyCopyServicePolicies
Copyright © 2005–2017 Alfresco Software. All rights reserved.