Package com.esri.gpt.catalog.harvest.repository

Examples of com.esri.gpt.catalog.harvest.repository.HrCompleteUpdateRequest.execute()


        throw new ServletException("409: Document was empty.");
      }
    } else {
      try {
        HrCompleteUpdateRequest req = new HrCompleteUpdateRequest(context, record);
        req.execute();
        response.setStatus(HttpServletResponse.SC_CREATED);
      } catch (HrAssertUrlException e) {
        throw new ServletException("409: Duplicated resource URL.");
      } catch (ValidationException e) {
        String sMsg = e.toString();
View Full Code Here


        getEditor().getRepository().setOwnerId(owner.getLocalID());
      }
      getEditor().prepareForUpdate();
      if (getEditor().validate(extractMessageBroker())) {
        HrCompleteUpdateRequest req = new HrCompleteUpdateRequest(context, getEditor().getRepository());
        boolean creating = req.execute();

        extractMessageBroker().addSuccessMessage(
                creating ? "catalog.harvest.manage.message.create.2" : "catalog.harvest.manage.message.update.2");
      }
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.