Examples of TombstoneCallbackResult


Examples of org.apache.olingo.odata2.api.ep.callback.TombstoneCallbackResult

    this.resultsView = resultsView;
  }

  @Override
  public TombstoneCallbackResult getTombstoneCallbackResult() {
    TombstoneCallbackResult jpaTombstoneCallBackResult = new TombstoneCallbackResult();

    jpaTombstoneCallBackResult.setDeltaLink(buildToken());
    return jpaTombstoneCallBackResult;
  }
View Full Code Here

Examples of org.apache.olingo.odata2.api.ep.callback.TombstoneCallbackResult

    }
  }

  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);
View Full Code Here

Examples of org.apache.olingo.odata2.api.ep.callback.TombstoneCallbackResult

        entryProducer.append(writer, entityInfo, entryData, false);
      }

      if (callback != null) {
        JsonDeletedEntryEntityProducer deletedEntryProducer = new JsonDeletedEntryEntityProducer(properties);
        TombstoneCallbackResult callbackResult = callback.getTombstoneCallbackResult();
        List<Map<String, Object>> deletedEntries = callbackResult.getDeletedEntriesData();
        if (deletedEntries != null) {
          deletedEntryProducer.append(writer, entityInfo, deletedEntries);
        }
      }
View Full Code Here

Examples of org.apache.olingo.odata2.api.ep.callback.TombstoneCallbackResult

  }

  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);
      }
    }
  }
View Full Code Here

Examples of org.apache.olingo.odata2.api.ep.callback.TombstoneCallbackResult

    this.deltaLink = deltaLink;
  }

  @Override
  public TombstoneCallbackResult getTombstoneCallbackResult() {
    TombstoneCallbackResult result = new TombstoneCallbackResult();
    result.setDeletedEntriesData(deletedEntriesData);
    result.setDeltaLink(deltaLink);
    return result;
  }
View Full Code Here

Examples of org.apache.olingo.odata2.api.ep.callback.TombstoneCallbackResult

      this.deltaLink = deltaLink;
    }

    @Override
    public TombstoneCallbackResult getTombstoneCallbackResult() {
      TombstoneCallbackResult result = new TombstoneCallbackResult();
      result.setDeletedEntriesData(deletedEntriesData);
      result.setDeltaLink(deltaLink);
      return result;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.