@Override
public void purge(final Repository repository, final long age)
throws IOException
{
ResourceStoreRequest req = new ResourceStoreRequest(getTrashPath(repository, RepositoryItemUid.PATH_ROOT));
// NEXUS-4642 shall not delete the directory, since causes a problem if this has been symlinked to another
// directory.
// walker and walk and changes for age
if (repository.getLocalStorage().containsItem(repository, req)) {
req.setRequestGroupLocalOnly(true);
req.setRequestLocalOnly(true);
DefaultWalkerContext ctx = new DefaultWalkerContext(repository, req, new AffirmativeStoreWalkerFilter());
ctx.getProcessors().add(new WastebasketWalker(age));
getWalker().walk(ctx);
}
}