Package com.esri.gpt.catalog.context

Examples of com.esri.gpt.catalog.context.CatalogIndexAdapter.deleteDocuments()


  if (uuids.size() > 0) {
    CatalogIndexAdapter indexAdapter = getCatalogIndexAdapter();
    if (indexAdapter != null) {
      String sMsg = "Deleting "+uuids.size()+" unreferenced documents from the catalog index.";
      LogUtil.getLogger().info(sMsg);
      indexAdapter.deleteDocuments(uuids.toArray(new String[0]));
     
      if (cswRemoteRepository.isActive()) {
        if (fids.size() > 0) cswRemoteRepository.onRecordsDeleted(fids);
      }
    }
View Full Code Here


          throw new CatalogIndexException("Error publishing document to index.");
        }
      }
     
    } else {
      indexAdapter.deleteDocuments(uuids.toArray(new String[0]));
     
      if (cswRemoteRepository.isActive()) {
        StringSet fids = queryFileIdentifiers(uuids);
        if (fids.size() > 0) cswRemoteRepository.onRecordsDeleted(fids);
      }
View Full Code Here

  CatalogIndexAdapter indexAdapter = getCatalogIndexAdapter();
  if (indexAdapter!=null) {
    StringSet uuids = new StringSet();
    uuids.add(record.getUuid());
    indexAdapter.deleteDocuments(uuids.toArray(new String[0]));
    if (cswRemoteRepository.isActive()) {
      StringSet fids = queryFileIdentifiers(uuids);
      if (fids.size() > 0) cswRemoteRepository.onRecordsDeleted(fids);
    }
  }
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.