Interface VersioningPolicyFilter

    • Method Detail

      • test

        boolean test​(DocumentModel previousDocument,
                     DocumentModel currentDocument)
        Specified by:
        test in interface BiPredicate<DocumentModel,​DocumentModel>
        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