Package com.esri.gpt.catalog.arcims

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


      // determine the acl
      ImsMetadataAdminDao adminDao = new ImsMetadataAdminDao(getRequestContext());
      String acl = adminDao.queryAclByUUID(uuid);
     
      // determine the xml and update date
      GetDocumentRequest ims = new GetDocumentRequest(getRequestContext(),publisher);
      ims.executeGet(uuid);
      Timestamp updateDate = ims.getUpdateDate();
      String xml = ims.getXml();
     
      // build the schema
      MetadataDocument mdDoc = new MetadataDocument();
      Schema schema = mdDoc.prepareForView(getRequestContext(),xml);
     
View Full Code Here


                                   Publisher publisher,
                                   String uuid)
    throws ImsServiceException, SchemaException {
   
    try {
      GetDocumentRequest imsRequest = new GetDocumentRequest(context,publisher);
      imsRequest.executeGet(uuid);
      String sXml = imsRequest.getXml();
      Document dom = loadDom(sXml);
      String sEnclosedXml = lookForEnclosure(dom);
      if (sEnclosedXml.length() > 0) {
        return sEnclosedXml;
      } else {
View Full Code Here

  public Schema prepareForEdit(RequestContext context,
                               Publisher publisher,
                               String uuid)
    throws ImsServiceException, SchemaException {
    try {
      GetDocumentRequest imsRequest = new GetDocumentRequest(context,publisher);
      imsRequest.executeGet(uuid);
      String sXml = imsRequest.getXml();
      return evaluateSchema(context,sXml,true);   
    } catch (TransformerException e) {
      throw new SchemaException("Unable to transform document.",e);
    }
  }
View Full Code Here

TOP

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

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.