Package com.esri.gpt.catalog.publication

Examples of com.esri.gpt.catalog.publication.DeleteSourceUrisRequest.execute()


          boolean webharvesterCleanup = Val.chkBool(appCfg.getCatalogConfiguration().getParameters().getValue("webharvester.cleanup"), true);
          if (webharvesterCleanup) {
            LOGGER.info("[SYNCHRONIZER] Attempting to clean non-existend records from: "+unit);
            DeleteSourceUrisRequest deleteSourceUrisRequest = new DeleteSourceUrisRequest(context, unit.getPublisher(), iterable);
            try {
              deleteSourceUrisRequest.execute();
              LOGGER.info("[SYNCHRONIZER] Cleaned "+deleteSourceUrisRequest.getDeletedCount()+" records from: "+unit);
              return deleteSourceUrisRequest.getDeletedCount();
            } catch (Exception ex) {
              LOGGER.log(Level.SEVERE, "[SYNCHRONIZER] Error when attempting to clean non-existend records from: "+unit, ex);
            }
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.