public void filterCandidateActions(List<CandidateElement> candidateElements) {
if (candidateActions == null) {
return;
}
Iterator<CandidateCrawlAction> iter = candidateActions.iterator();
CandidateCrawlAction currentAction;
while (iter.hasNext()) {
currentAction = iter.next();
if (!candidateElements.contains(currentAction.getCandidateElement())) {
iter.remove();
LOGGER.info("filtered candidate action: " + currentAction.getEventType().name()
+ " on " + currentAction.getCandidateElement().getGeneralString());
}
}
}