Allow reindexation without purging expired entries
Description
public void reindexSync(URI contextURI, boolean purgeAllBeforeReindex) needs an additional boolean parameter, e.g. purgeExpiredEntriesAfterReindex, to skip the purging thread. This should then be used for the full reindexation that is initiated by RepositoryManagerImpl, e.g. when a new version is detected. In that case we don’t have anything in the repo, but the purging thread is still used (which it shouldn’t be).
An alternative could be the introducation of an enum to provide a purging strategy to use, e.g. PurgingStrategy.BEFORE_REINDEX, AFTER_REINDEX, NO_PURGE.
public void reindexSync(URI contextURI, boolean purgeAllBeforeReindex) needs an additional boolean parameter, e.g. purgeExpiredEntriesAfterReindex, to skip the purging thread. This should then be used for the full reindexation that is initiated by RepositoryManagerImpl, e.g. when a new version is detected. In that case we don’t have anything in the repo, but the purging thread is still used (which it shouldn’t be).
An alternative could be the introducation of an enum to provide a purging strategy to use, e.g. PurgingStrategy.BEFORE_REINDEX, AFTER_REINDEX, NO_PURGE.