Package org.fao.geonet.kernel.harvest.harvester

Examples of org.fao.geonet.kernel.harvest.harvester.AbstractHarvester.invoke()


            AbstractHarvester ah = hmHarvesters.get(id);
            if (ah == null) {
                return OperResult.NOT_FOUND;
            }
            return ah.invoke();
        } else {
            if(Log.isDebugEnabled(Geonet.HARVEST_MAN)) {
                Log.debug(Geonet.HARVEST_MAN, "GeoNetwork is running in read-only mode: skipping invocation of harvester with id: "+ id);
            }
            return null;
View Full Code Here


        customizeParams(params);
        final String harvesterUuid = _harvestManager.addHarvesterReturnUUID(params);
        AbstractHarvester _harvester = _harvestManager.getHarvester(harvesterUuid);
        _harvester.init(params, context);

        _harvester.invoke();
        final Element result = _harvester.getResult();
        assertEqualsText(""+getExpectedAdded(), result, "added");
        assertEqualsText(""+ getExpectedTotalFound(), result, "total");
        assertEqualsText(""+ getExpectedBadFormat(), result, "badFormat");
        assertEqualsText(""+ getExpectedDoesNotValidate(), result, "doesNotValidate");
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.