Examples of prepareForView()


Examples of com.esri.gpt.catalog.schema.MetadataDocument.prepareForView()

   */
  protected Node extractItemInfo(String metadata) throws AgpPublishException {
    try {
      // find the right schema
      MetadataDocument document = new MetadataDocument();
      Schema schema = document.prepareForView(requestContext, metadata);

      // get transformation file
      String toEsriItemInfoXslt = schema.getToEsriItemInfoXslt();
      if (toEsriItemInfoXslt.isEmpty()) {
        throw new AgpPublishException("Schema: " + schema.getKey() + " has no transformation to ItemInformation.");
View Full Code Here

Examples of com.esri.gpt.catalog.schema.MetadataDocument.prepareForView()

      Timestamp updateDate = ims.getUpdateDate();
      String xml = ims.getXml();
     
      // build the schema
      MetadataDocument mdDoc = new MetadataDocument();
      Schema schema = mdDoc.prepareForView(getRequestContext(),xml);
     
      // publish
      publishDocument(uuid,updateDate,schema,acl);
     
      return xml;
View Full Code Here

Examples of com.esri.gpt.catalog.schema.MetadataDocument.prepareForView()

  }
  String metadataXml = this.getMetadataText(uuid, catalogUri);
  this.getSearchResult().setCurrentMetadataXmlInView(metadataXml);
  this.setNavigationOutcome(NAV_RESULTS2VIEWDETAILS);
  MetadataDocument document = new MetadataDocument();
  Schema schema = document.prepareForView(context,metadataXml);
  if ((detailsPanelGroup != null) && (schema != null)) {
    setResourceUrl(schema.getMeaning().getResourceUrl());
   
    // check for a configured XSLT to generate the details page,
    // otherwise, generate the details page from the defined schema
View Full Code Here

Examples of com.esri.gpt.catalog.schema.MetadataDocument.prepareForView()

    String sXml = Val.chkStr(Val.removeBOM(xml));
    if (sXml.length() == 0) {
      throw new UnrecognizedSchemaException("Unrecognized metadata schema.");
    } else {
      MetadataDocument document = new MetadataDocument();
      Schema schema = document.prepareForView(context,sXml);
      return schema;
    }
  } 
 
  /**
 
View Full Code Here

Examples of com.esri.gpt.catalog.schema.MetadataDocument.prepareForView()

          throw new ServletException("400: IOException while reading request body.");
        }
        xml = Val.chkStr(Val.removeBOM(xml));
        if (xml.length() > 0) {
          MetadataDocument document = new MetadataDocument();
          Schema schema = document.prepareForView(context,xml);
          if (schema != null) {
            definition = schema.getGxeEditorDefinition();
          }
        }
       
View Full Code Here

Examples of com.esri.gpt.catalog.schema.MetadataDocument.prepareForView()

              }
              String sXml = Val.chkStr(this.readXml(uuid));
              if (sXml.length() > 0) {
                info.numRequiringUpdate++;
                MetadataDocument mdDoc = new MetadataDocument();
                Schema schema = mdDoc.prepareForView(this.context,sXml);
                this.adapter.publishDocument(uuid,tsDbModified,schema,sDbAcl);
                info.numDocsUpdated++;
              }
            } catch (SchemaException se) {
             
View Full Code Here

Examples of com.esri.gpt.catalog.schema.MetadataDocument.prepareForView()

         
          try {
            String sXml = Val.chkStr(dao.readXml(uuid));
            if (sXml.length() > 0) {
              MetadataDocument mdDoc = new MetadataDocument();
              Schema schema = mdDoc.prepareForView(context,sXml);
              adapter.publishDocument(uuid,tsDbModified,schema,sDbAcl);
            }
          } catch (SchemaException se) {
           
            // don't allow the entire process to fail over one bad xml
View Full Code Here

Examples of com.esri.gpt.catalog.schema.MetadataDocument.prepareForView()

   */
  protected void onRecordUpdated(String xml) {
    if (!this.isActive()) return;
    try {
      MetadataDocument mdDoc = new MetadataDocument();
      Schema schema = mdDoc.prepareForView(requestContext,xml);
      xml = mdDoc.prepareForFullViewing(xml);
      publish(schema,xml);
    } catch (Exception e) {
      LOGGER.log(Level.SEVERE,"Publication to remote service failed.",e);
    }
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.