final Ancestors ancestors = calculateAncestors(ce.getElement(), ce.getElementTimestamp(), ce.hasChildren(), cutoffDate, ancestorsToWrite);
if (ce.getElementTimestamp() != null) { doc.addField(IndexFields.F_INTERNAL_MODIFICATION_TIMESTAMP, Long.toString(ce.getElementTimestamp().getTime()));
throw new YaddaException("Element not found"); if (e.getElementTimestamp().after(finishDate)) { skipped++; updateStats(); childRelatedObjects.put(e.getExtId(), e.getElementTimestamp()); MetaStatus ms = e.isDeleted() ? new MetaStatus(e.getExtId(), e.getElementTimestamp()) : new MetaStatus(e.getElement(), e.getElementTimestamp()); ms.setTimestampsOfRelatedObjects(new HashMap<String, Date>(relatedObjects)); feedTarget(new WriteStatusRequest(e.getId(), ms));
CatalogElement e = iteratorFactory.readObject(nextId, fetchAncestors); if (e != null && target != null && (!onlyDeleted || e.isDeleted()) && e.getElementTimestamp().before(finishDate)) { target.process(e);
childRelatedObjects.put(catalogElement.getExtId(), catalogElement.getElementTimestamp()); MetaStatus ms = catalogElement.isDeleted() ? new MetaStatus(catalogElement.getExtId(), catalogElement.getElementTimestamp()) : new MetaStatus(catalogElement.getElement(), catalogElement.getElementTimestamp()); ms.setTimestampsOfRelatedObjects(new HashMap<String, Date>(relatedObjects)); feedTarget(new WriteStatusRequest(catalogElement.getId(), ms));
childRelatedObjects.put(e.getExtId(), e.getElementTimestamp()); MetaStatus ms = e.isDeleted() ? new MetaStatus(e.getExtId(), e.getElementTimestamp()) : new MetaStatus(e.getElement(), e.getElementTimestamp()); ms.setTimestampsOfRelatedObjects(new HashMap<String, Date>(relatedObjects)); feedTarget(new WriteStatusRequest(e.getId(), ms));