How to prevent garbage collection of binaries
We have a requirement that when all document records referencing a binary are deleted, the binary should still be preserved. However, according to Nuxeo documentation, Garbage Collection will remove these binaries. So my questions are:
- Is garbage collection run as a scheduled background job? If so, which background work does that. I browsed through Nuxeo's source-code but couldn't find it
- I checked the source-code of DocumentBlobManagerComponent which implements garbageCollectBinaries(boolean delete). There is an option to call garbageCollectBinaries(false) to prevent deletion but I couldn't find a contribution to override this. Can this be done without modifying the source code?
- I couldn't find the usage of garbargeCollectBinaries function. It is not being called from anywhere except SQLRepositoryStatus.java. Do we need to call it manually? If so, just not calling it may solve my problem.
Thanks for the help in advance
0 votes
1 answers
1313 views