ALF-11259 Disable the VersionableAspect before updating the version label property on a node, when deleting the current version (plus test)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31631 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Nick Burch
2011-11-02 02:58:45 +00:00
parent 053f4e691a
commit 0484671e8f
3 changed files with 75 additions and 3 deletions

View File

@@ -35,6 +35,7 @@ import org.alfresco.repo.copy.DefaultCopyBehaviourCallback;
import org.alfresco.repo.dictionary.DictionaryDAO;
import org.alfresco.repo.dictionary.DictionaryListener;
import org.alfresco.repo.node.NodeServicePolicies;
import org.alfresco.repo.node.NodeServicePolicies.OnUpdatePropertiesPolicy;
import org.alfresco.repo.policy.Behaviour;
import org.alfresco.repo.policy.JavaBehaviour;
import org.alfresco.repo.policy.PolicyComponent;
@@ -219,7 +220,7 @@ public class VersionableAspect implements ContentServicePolicies.OnContentUpdate
onUpdatePropertiesBehaviour = new JavaBehaviour(this, "onUpdateProperties", Behaviour.NotificationFrequency.TRANSACTION_COMMIT);
this.policyComponent.bindClassBehaviour(
QName.createQName(NamespaceService.ALFRESCO_URI, "onUpdateProperties"),
OnUpdatePropertiesPolicy.QNAME,
ContentModel.ASPECT_VERSIONABLE,
onUpdatePropertiesBehaviour);