public class DiscussableAspect extends Object implements NodeServicePolicies.OnAddAspectPolicy, CopyServicePolicies.OnCopyNodePolicy, CopyServicePolicies.OnCopyCompletePolicy, VersionServicePolicies.AfterVersionRevertPolicy
Policy.Arg
QNAME
ARG_0, ARG_1, QNAME
QNAME
QNAME
Constructor and Description |
---|
DiscussableAspect() |
Modifier and Type | Method and Description |
---|---|
void |
afterVersionRevert(org.alfresco.service.cmr.repository.NodeRef nodeRef,
Version version)
Called after the version has been reverted
|
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 |
onAddAspect(org.alfresco.service.cmr.repository.NodeRef discussableNodeRef,
org.alfresco.service.namespace.QName aspectTypeQName)
Ensure that the node has a fm:forum child node otherwise create one
|
void |
onCopyComplete(org.alfresco.service.namespace.QName classRef,
org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
org.alfresco.service.cmr.repository.NodeRef targetNodeRef,
boolean copyToNewNode,
Map<org.alfresco.service.cmr.repository.NodeRef,org.alfresco.service.cmr.repository.NodeRef> copyMap) |
void |
setDbNodeService(org.alfresco.service.cmr.repository.NodeService dbNodeService) |
void |
setFileFolderService(FileFolderService fileFolderService) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setPolicyComponent(PolicyComponent policyComponent) |
public void setPolicyComponent(PolicyComponent policyComponent)
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setDbNodeService(org.alfresco.service.cmr.repository.NodeService dbNodeService)
public final void setFileFolderService(FileFolderService fileFolderService)
public void init()
public 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
public void onAddAspect(org.alfresco.service.cmr.repository.NodeRef discussableNodeRef, org.alfresco.service.namespace.QName aspectTypeQName)
onAddAspect
in interface NodeServicePolicies.OnAddAspectPolicy
discussableNodeRef
- the node to which the aspect was addedaspectTypeQName
- the type of the aspectpublic void onCopyComplete(org.alfresco.service.namespace.QName classRef, org.alfresco.service.cmr.repository.NodeRef sourceNodeRef, org.alfresco.service.cmr.repository.NodeRef targetNodeRef, boolean copyToNewNode, Map<org.alfresco.service.cmr.repository.NodeRef,org.alfresco.service.cmr.repository.NodeRef> copyMap)
onCopyComplete
in interface CopyServicePolicies.OnCopyCompletePolicy
classRef
- the type of the node that was copiedsourceNodeRef
- the original nodetargetNodeRef
- the destination nodecopyMap
- a map containing all the nodes that have been created during the copypublic void afterVersionRevert(org.alfresco.service.cmr.repository.NodeRef nodeRef, Version version)
VersionServicePolicies.AfterVersionRevertPolicy
afterVersionRevert
in interface VersionServicePolicies.AfterVersionRevertPolicy
nodeRef
- the node that has been revertedversion
- the reverted versionCopyright © 2005–2017 Alfresco Software. All rights reserved.