import org.sonar.core.resource.ResourceDao;
import org.sonar.core.resource.ResourceDto;
- import java.util.Arrays;
- import java.util.Collections;
- import java.util.Date;
- import java.util.List;
+ import java.util.*;
+import static org.sonar.api.utils.DateUtils.dateToLong;
+
/**
* @since 2.14
*/
}
private void disableOrphanResources(final ResourceDto project, final SqlSession session, final PurgeMapper purgeMapper, final PurgeListener purgeListener) {
- session.select("org.sonar.core.purge.PurgeMapper.selectResourceIdsToDisable", project.getId(), new ResultHandler() {
+ final List<IdUuidPair> componentIdUuids = new ArrayList<IdUuidPair>();
+ session.select("org.sonar.core.purge.PurgeMapper.selectComponentIdUuidsToDisable", project.getId(), new ResultHandler() {
@Override
public void handleResult(ResultContext resultContext) {
IdUuidPair componentIdUuid = (IdUuidPair) resultContext.getResultObject();