Interface OrphanVersionRemovalFilter

    • Method Detail

      • getRemovableVersionIds

        List<StringgetRemovableVersionIds​(CoreSession session,
                                            ShallowDocumentModel deletedLiveDoc,
                                            List<String> versionUUIDs)
        This method will be called by the OrphanVersionRemoverListener. The method should return the List<String> versionUUIDs that can be deleted.

        A "dummy" implementation will return the same list as the one received as parameter.

        Parameters:
        session - the CoreSession
        deletedLiveDoc - the Shallow DocumentModel that was deleted
        versionUUIDs - the UUIDs of the versions associated to the deleted document
        Returns:
        the "filtered" list of versions that can be removed