As mentioned on
SAK-27732, it would be useful to be able to getAllDeletedResources (and getDeletedResources) older than a specific date to improve the performance of the cleanup job. There is already a column in the database for it, so I propose a new api method
public List getAllDeletedResources(String id, Time olderThan);
Which would query into getDeletedResources and get all deleted resources older than a specific date that should make these queries much more efficient. Default would just return all.