Uploaded image for project: 'Alfresco'
  1. Alfresco
  2. ALF-22006

VersionServicePolicies cannot be disabled on a specific node

    Details

    • Triage:
      ACE
    • Resolution Time Custom Field:
      5 weeks, 4 days, 19 hours, 53 minutes, 7 seconds

      Description

      Hi,

      It is not possible to disable policies/behaviors of the VersionService for a specific nodeRef, they can only be disabled for a QName type or aspect of the node.

      Version relative behaviors are defined in VersionServicePolicies and relate to creating and reverting versions on a node: BeforeCreateVersionPolicy, AfterCreateVersionPolicy, OnCreateVersionPolicy, OnRevertVersionPolicy, AfterVersionRevertPolicy

      The current issue is to be able to disable versioning in a policy (i.e. throw an Exception on specific conditions in BeforeCreateVersionPolicy) but sometimes reallow it on particular nodes by disabling the policy.

      For example: policyBehaviourFilter.disableBehaviour(TYPE_QNAME) will disable any version relative behavior for all nodes (therefore including the desired nodeRef) but it will not work by passing the particular nodeRef with policyBehaviourFilter.disableBehaviour(nodeRef, TYPE_QNAME).

      Regards

      Nicolas

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                closedissues Closed Issues
                Reporter:
                nicolasbarithel Nicolas Barithel
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: