Package org.fao.geonet.kernel.harvest

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


  public Element exec(Element params, ServiceContext context) throws Exception {
    GeonetContext  gc = (GeonetContext) context.getHandlerContext(Geonet.CONTEXT_NAME);
    HarvestManager hm = gc.getBean(HarvestManager.class);

    // Add current user has harvester owner
        hm.update(params, context.getUserSession().getUserId());

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

    return new Element(Jeeves.Elem.RESPONSE).addContent(new Element("id").setText(id));
  }
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.