Package com.esri.gpt.catalog.publication

Examples of com.esri.gpt.catalog.publication.EditorRequest


    msgBroker.addSuccessMessage("catalog.publication.success.validated");
   
  } else {
   
    // publish the document
    EditorRequest request = new EditorRequest(context,publisher,sXml);
    request.getPublicationRecord().setUuid(getOpenDocumentUuid());
    if (asDraft) {
      request.getPublicationRecord().setApprovalStatus(MmdEnums.ApprovalStatus.draft.toString());
    }
    request.publish();
    setOpenDocumentUuid(request.getPublicationRecord().getUuid());
    if (asDraft) {
      msgBroker.addSuccessMessage("catalog.publication.success.draftSaved");
    } else {
      if (request.getPublicationRecord().getWasDocumentReplaced()) {
        msgBroker.addSuccessMessage("catalog.publication.success.replaced");
      } else {
        msgBroker.addSuccessMessage("catalog.publication.success.created");
     
    }
View Full Code Here

TOP

Related Classes of com.esri.gpt.catalog.publication.EditorRequest

Copyright © 2018 www.massapicom. 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.