Class NoVersioningPolicyFilter

    • Constructor Detail

      • NoVersioningPolicyFilter

        public NoVersioningPolicyFilter()
    • Method Detail

      • test

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