Examples of addHarvesterReturnId()


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

  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 as harvester owner
        String id = hm.addHarvesterReturnId(params, context.getUserSession().getUserId());

    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.