Package org.fluxtream.core

Examples of org.fluxtream.core.ApiData


   */
  @Override
  @Transactional(readOnly = false)
  public void cacheApiDataJSON(UpdateInfo updateInfo, String json,
      long start, long end) throws Exception {
    ApiData apiData = new ApiData(updateInfo, start, end);
    apiData.json = json;
        if (updateInfo.objectTypes==0)
            throw new RuntimeException("ObjectType=0! cacheApiDataJSON is called from an 'Autonomous' " +
                                       "Updater -> you need to call the cacheApiDataJSON method with the " +
                                       "extra 'objectTypes' parameter!");
View Full Code Here


   */
  @Override
  @Transactional(readOnly = false)
  public void cacheApiDataXML(UpdateInfo updateInfo, String xml, long start,
      long end) throws Exception {
    ApiData apiData = new ApiData(updateInfo, start, end);
    apiData.xml = xml;
    extractFacets(apiData, updateInfo.objectTypes, null);
  }
View Full Code Here

   */
  @Override
  @Transactional(readOnly = false)
  public void cacheApiDataJSON(UpdateInfo updateInfo, JSONObject jsonObject,
      long start, long end) throws Exception {
    ApiData apiData = new ApiData(updateInfo, start, end);
    apiData.jsonObject = jsonObject;
        final List<AbstractFacet> facets = extractFacets(apiData, updateInfo.objectTypes, updateInfo);
        fireDataReceivedEvent(updateInfo, updateInfo.objectTypes(), start, end, facets);
  }
View Full Code Here

     */
    @Override
    @Transactional(readOnly = false)
    public void cacheApiDataJSON(UpdateInfo updateInfo, String json,
                                 long start, long end, int objectTypes) throws Exception {
        ApiData apiData = new ApiData(updateInfo, start, end);
        apiData.json = json;
        final List<AbstractFacet> facets = extractFacets(apiData, objectTypes, updateInfo);
        final List<ObjectType> types = ObjectType.getObjectTypes(updateInfo.apiKey.getConnector(), objectTypes);
        fireDataReceivedEvent(updateInfo, types, start, end, facets);
    }
View Full Code Here

TOP

Related Classes of org.fluxtream.core.ApiData

Copyright © 2018 www.massapicom. 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.