Class CMISVersioningFilter

    • Method Detail

      • test

        public boolean test​(DocumentModel previousDocument,
                            DocumentModel currentDocument)
        Specified by:
        test in interface BiPredicate<DocumentModel,​DocumentModel>
        Specified by:
        test in interface VersioningPolicyFilter
        previousDocument - the document before modification, could be null if event is aboutToCreate
        currentDocument - the document after modification
        whether or not this filter matches the current context, if all policy's filters match, then apply policy
      • enable

        public static void enable()
        Enables the filter for current thread, which will disable the automatic versioning.
      • disable

        public static void disable()
        Disables the filter for current thread.