Package com.esri.gpt.catalog.publication

Examples of com.esri.gpt.catalog.publication.PublicationRequest.publish()


    PublicationRequest publishRequest = new PublicationRequest(context,
        publisher, xml);
    publishRequest.getPublicationRecord().setSourceFileName(sourceUri);
    publishRequest.getPublicationRecord().setPublicationMethod(
        MmdEnums.PublicationMethod.batch.toString());
    publishRequest.publish();

    boolean bReplaced = publishRequest.getPublicationRecord()
        .getWasDocumentReplaced();
    StringBuffer sb = new StringBuffer();
    sb.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
View Full Code Here


          Publisher publisher = createPublisherOfRepository();

          PublicationRequest publicationRequest = createPublicationRequest(publisher, content, sourceUri);

          publicationRequest.publish();
        }
      } catch (Exception ex) {
        LOGGER.log(Level.INFO, "Unable to create resource definition.", ex);
      }
    }
View Full Code Here

          pubRecord.setApprovalStatus(MmdEnums.ApprovalStatus.draft.toString());
        }
       
        this.determineSourceUri(request,context,pubRequest);
        try {
          pubRequest.publish();
          if (!pubRecord.getWasDocumentReplaced()) {
            response.setStatus(HttpServletResponse.SC_CREATED);
          }
//        } catch (ValidationException e) {
//          String sMsg = e.toString();
View Full Code Here

   
    // TODO: need a sourceUri
    //this.determineSourceUri(request,context,pubRequest);
   
    try {
      pubRequest.publish();
      if (pubRecord.getWasDocumentUnchanged()) {
      } else if (pubRecord.getWasDocumentReplaced()) {
        tSummary.setTotalUpdated(tSummary.getTotalUpdated() + 1);
      } else {
        tSummary.setTotalInserted(tSummary.getTotalInserted() + 1);
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.