|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.version.VersionableAspect
public class VersionableAspect
Class containing behaviour for the versionable aspect
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.alfresco.repo.policy.Policy |
|---|
Policy.Arg |
| Field Summary |
|---|
| Fields inherited from interface org.alfresco.repo.content.ContentServicePolicies.OnContentUpdatePolicy |
|---|
QNAME |
| Fields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnAddAspectPolicy |
|---|
QNAME |
| Fields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnRemoveAspectPolicy |
|---|
QNAME |
| Fields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnDeleteNodePolicy |
|---|
QNAME |
| Fields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnUpdatePropertiesPolicy |
|---|
ARG_0, ARG_1, ARG_2, QNAME |
| Fields inherited from interface org.alfresco.repo.copy.CopyServicePolicies.OnCopyNodePolicy |
|---|
ARG_0, ARG_1, QNAME |
| Fields inherited from interface org.alfresco.repo.policy.Policy |
|---|
NAMESPACE |
| Constructor Summary | |
|---|---|
VersionableAspect()
|
|
| Method Summary | |
|---|---|
void |
afterCreateVersion(org.alfresco.service.cmr.repository.NodeRef versionableNode,
Version version)
Called after the version has been created |
CopyBehaviourCallback |
getCopyCallback(org.alfresco.service.namespace.QName classRef,
CopyDetails copyDetails)
Called for all types and aspects before copying a node. |
void |
init()
Initialise the versionable aspect policies |
void |
onAddAspect(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName aspectTypeQName)
On add aspect policy behaviour |
void |
onContentUpdate(org.alfresco.service.cmr.repository.NodeRef nodeRef,
boolean newContent)
On content update policy behaviour If applicable and "cm:autoVersion" is TRUE then version the node on content update (even if no property updates) |
void |
onDeleteNode(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef,
boolean isNodeArchived)
Called after a node is deleted. |
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 |
onUpdateProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef,
java.util.Map before,
java.util.Map after)
On update properties policy behaviour If applicable and "cm:autoVersionOnUpdateProps" is TRUE then version the node on properties update (even if no content updates) |
void |
setExcludedOnUpdateProps(java.util.List excludedOnUpdateProps)
|
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Set the node service |
void |
setPolicyComponent(PolicyComponent policyComponent)
Set the policy component |
void |
setVersionService(VersionService versionService)
Set the version service |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VersionableAspect()
| Method Detail |
|---|
public void setPolicyComponent(PolicyComponent policyComponent)
policyComponent - the policy componentpublic void setVersionService(VersionService versionService)
versionService - the version servicepublic void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService - the node servicepublic void setExcludedOnUpdateProps(java.util.List excludedOnUpdateProps)
public void init()
public void onDeleteNode(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef,
boolean isNodeArchived)
NodeServicePolicies.OnDeleteNodePolicy
onDeleteNode in interface NodeServicePolicies.OnDeleteNodePolicychildAssocRef - the primary parent-child association of the deleted nodeisNodeArchived - indicates whether the node has been archived rather than purgedNodeServicePolicies.OnDeleteNodePolicy.onDeleteNode(org.alfresco.service.cmr.repository.ChildAssociationRef, boolean)
public CopyBehaviourCallback getCopyCallback(org.alfresco.service.namespace.QName classRef,
CopyDetails copyDetails)
CopyServicePolicies.OnCopyNodePolicy
getCopyCallback in interface CopyServicePolicies.OnCopyNodePolicyclassRef - the type or aspect qualified namecopyDetails - the details of the impending copy
VersionableAspectCopyBehaviourCallbackCopyServicePolicies
public void onAddAspect(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName aspectTypeQName)
onAddAspect in interface NodeServicePolicies.OnAddAspectPolicynodeRef - aspectTypeQName -
public void onRemoveAspect(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName aspectTypeQName)
NodeServicePolicies.OnRemoveAspectPolicy
onRemoveAspect in interface NodeServicePolicies.OnRemoveAspectPolicynodeRef - the node from which the aspect will be removedaspectTypeQName - the type of the aspectNodeServicePolicies.OnRemoveAspectPolicy.onRemoveAspect(org.alfresco.service.cmr.repository.NodeRef, org.alfresco.service.namespace.QName)
public void onContentUpdate(org.alfresco.service.cmr.repository.NodeRef nodeRef,
boolean newContent)
onContentUpdate in interface ContentServicePolicies.OnContentUpdatePolicynodeRef - the node reference
public void onUpdateProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef,
java.util.Map before,
java.util.Map after)
onUpdateProperties in interface NodeServicePolicies.OnUpdatePropertiesPolicynodeRef - reference to the updated nodebefore - the node's properties before the changeafter - the node's properties after the change
public void afterCreateVersion(org.alfresco.service.cmr.repository.NodeRef versionableNode,
Version version)
VersionServicePolicies.AfterCreateVersionPolicy
afterCreateVersion in interface VersionServicePolicies.AfterCreateVersionPolicyversionableNode - the node that has been versionedversion - the created versionVersionServicePolicies.OnCreateVersionPolicy.onCreateVersion(org.alfresco.service.namespace.QName, org.alfresco.service.cmr.repository.NodeRef, java.util.Map, org.alfresco.repo.policy.PolicyScope)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||