Package org.fao.geonet.kernel.harvest

Examples of org.fao.geonet.kernel.harvest.HarvestManager.invoke()


    HarvestManager hm = gc.getBean(HarvestManager.class);

    String id = params.getChildText("id");

    // Invoke: synchronous "run" of harvester
    Common.OperResult result = hm.invoke(id);

    // Construct result
    return new Element(Jeeves.Elem.RESPONSE)
        .addContent(new Element("id").setText(id).setAttribute(new Attribute("status", result.toString())));
  }
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.