private void appendDeletedEntries(final Writer writer, final EntityInfoAggregator entityInfo, final List<Map<String, Object>> data, TombstoneCallback callback) throws EntityProviderException { JsonDeletedEntryEntityProducer deletedEntryProducer = new JsonDeletedEntryEntityProducer(properties); TombstoneCallbackResult callbackResult = callback.getTombstoneCallbackResult(); List<Map<String, Object>> deletedEntries = callbackResult.getDeletedEntriesData(); if (deletedEntries != null) { deletedEntryProducer.append(writer, entityInfo, deletedEntries, data.isEmpty()); } }
private void appendDeletedEntries(final Writer writer, final EntityInfoAggregator entityInfo, final List<Map<String, Object>> data, TombstoneCallback callback) throws EntityProviderException { JsonDeletedEntryEntityProducer deletedEntryProducer = new JsonDeletedEntryEntityProducer(properties); TombstoneCallbackResult callbackResult = callback.getTombstoneCallbackResult(); List<Map<String, Object>> deletedEntries = callbackResult.getDeletedEntriesData(); if (deletedEntries != null) { deletedEntryProducer.append(writer, entityInfo, deletedEntries, data.isEmpty()); } }
private void appendDeletedEntries(final XMLStreamWriter writer, final EntityInfoAggregator eia, final TombstoneCallback callback) throws EntityProviderException { TombstoneCallbackResult callbackResult = callback.getTombstoneCallbackResult(); List<Map<String, Object>> tombstoneData = callbackResult.getDeletedEntriesData(); if (tombstoneData != null) { TombstoneProducer tombstoneProducer = new TombstoneProducer(); tombstoneProducer.appendTombstones(writer, eia, properties, tombstoneData); } String deltaLink = callbackResult.getDeltaLink(); if (deltaLink != null) { try { writer.writeStartElement(FormatXml.ATOM_LINK); writer.writeAttribute(FormatXml.ATOM_REL, FormatXml.ATOM_DELTA_LINK); writer.writeAttribute(FormatXml.ATOM_HREF, deltaLink); writer.writeEndElement(); } catch (XMLStreamException e) { throw new EntityProviderProducerException(EntityProviderException.COMMON, e); } } }
private void appendDeltaLink(final TombstoneCallback callback, final JsonStreamWriter jsonStreamWriter) throws IOException { if (callback != null) { TombstoneCallbackResult callbackResult = callback.getTombstoneCallbackResult(); String deltaLink = callbackResult.getDeltaLink(); if (deltaLink != null) { jsonStreamWriter.separator().namedStringValue(FormatJson.DELTA, deltaLink); } } } }
private void appendDeltaLink(final TombstoneCallback callback, final JsonStreamWriter jsonStreamWriter) throws IOException { if (callback != null) { TombstoneCallbackResult callbackResult = callback.getTombstoneCallbackResult(); String deltaLink = callbackResult.getDeltaLink(); if (deltaLink != null) { jsonStreamWriter.separator().namedStringValue(FormatJson.DELTA, deltaLink); } } } }
private void appendDeletedEntries(final XMLStreamWriter writer, final EntityInfoAggregator eia, final TombstoneCallback callback) throws EntityProviderException { TombstoneCallbackResult callbackResult = callback.getTombstoneCallbackResult(); List<Map<String, Object>> tombstoneData = callbackResult.getDeletedEntriesData(); if (tombstoneData != null) { TombstoneProducer tombstoneProducer = new TombstoneProducer(); tombstoneProducer.appendTombstones(writer, eia, properties, tombstoneData); } String deltaLink = callbackResult.getDeltaLink(); if (deltaLink != null) { try { writer.writeStartElement(FormatXml.ATOM_LINK); writer.writeAttribute(FormatXml.ATOM_REL, FormatXml.ATOM_DELTA_LINK); writer.writeAttribute(FormatXml.ATOM_HREF, deltaLink); writer.writeEndElement(); } catch (XMLStreamException e) { throw new EntityProviderProducerException(EntityProviderException.COMMON, e); } } }
private void appendDeletedEntries(final XMLStreamWriter writer, final EntityInfoAggregator eia, final TombstoneCallback callback) throws EntityProviderException { TombstoneCallbackResult callbackResult = callback.getTombstoneCallbackResult(); List<Map<String, Object>> tombstoneData = callbackResult.getDeletedEntriesData(); if (tombstoneData != null) { TombstoneProducer tombstoneProducer = new TombstoneProducer(); tombstoneProducer.appendTombstones(writer, eia, properties, tombstoneData); } String deltaLink = callbackResult.getDeltaLink(); if (deltaLink != null) { try { writer.writeStartElement(FormatXml.ATOM_LINK); writer.writeAttribute(FormatXml.ATOM_REL, FormatXml.ATOM_DELTA_LINK); writer.writeAttribute(FormatXml.ATOM_HREF, deltaLink); writer.writeEndElement(); } catch (XMLStreamException e) { throw new EntityProviderException(EntityProviderException.COMMON, e); } } }