Package com.esri.gpt.catalog.arcims

Examples of com.esri.gpt.catalog.arcims.PutMetadataRequest


*/
private void sendPublicationRequest(Schema schema)
  throws ImsServiceException, SQLException, CatalogIndexException   {
 
  // prepare the ArcIMS request 
  PutMetadataRequest imsRequest;
  imsRequest = new PutMetadataRequest(getRequestContext(),getPublisher());
  imsRequest.setLockTitle(getPublicationRecord().getLockTitle());
 
  PutMetadataInfo putInfo = new PutMetadataInfo();
  putInfo.setUuid(getPublicationRecord().getUuid());
  putInfo.setXml(getPublicationRecord().getSourceXml());
 
  putInfo.setFileIdentifier(schema.getMeaning().getFileIdentifier());
  putInfo.setName(getPublicationRecord().getAlternativeTitle().length()>0? getPublicationRecord().getAlternativeTitle(): schema.getMeaning().getTitle());
  putInfo.setThumbnailBinary(schema.getMeaning().getThumbnailBinary());
 
  //putInfo.setParentUuid(getPublisher().getFolderUuid());
  //putInfo.setEnvelope(schema.getMeaning().getEnvelope());
  //putInfo.setToEsriIsoXslt(schema.getToEsriXslt());
  //putInfo.setContentType(schema.getMeaning().getArcIMSContentType());
  //putInfo.setOnlink(schema.getMeaning().getWebsiteUrl());
  //putInfo.setServer(schema.getMeaning().getResourceUrl());
  //putInfo.setService(schema.getMeaning().getServiceName());
  //putInfo.setServiceType(schema.getMeaning().getResourceType());
 
  // send the request to ArcIMS, determine if the document was replaced
  if(this._record != null ) {
    this.getRequestContext().getObjectMap().put(MmdEnums.INCOMING_STATUS,
        this._record.getApprovalStatus());
  }
  imsRequest.executePut(putInfo);
  String sReplaced = PutMetadataRequest.ACTION_STATUS_REPLACED;
  boolean bReplaced = imsRequest.getActionStatus().equals(sReplaced);
  getPublicationRecord().setWasDocumentReplaced(bReplaced);
  if (!bReplaced && getPublicationRecord().getAutoApprove()) {
    String status = Val.chkStr(getPublicationRecord().getApprovalStatus());
    if (status.length() == 0) {
      getPublicationRecord().setApprovalStatus("approved");
View Full Code Here

TOP

Related Classes of com.esri.gpt.catalog.arcims.PutMetadataRequest

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.