Package com.esri.gpt.agp.client

Examples of com.esri.gpt.agp.client.AgpItem


      // TODO: consider when to delete destination related items
     
      if ((srcRelItems != null) && (srcRelItems.size() > 0)) {
        for (AgpItem srcRelItem: srcRelItems.values()) {
         
          AgpItem destRelItem = this.itemHelper.makeDestinationItem(src,srcRelItem);
          boolean bRequiresUpdate = this.itemHelper.requiresUpdate(srcRelItem,dest,destRelItem);
          if (this.forceUpdates || bRequiresUpdate) {
            this.execPublishItem(srcRelItem,destRelItem);
          }
         
          boolean bAddRel = true;
          if ((destRelItems != null) && (destRelItems.size() > 0)) {
            // TODO: this isn't enough
            bAddRel = false;
          }
         
          if (bAddRel) {
            String sRelOwner = dest.getDestinationOwner();
            String sRelDestId = destRelItem.getProperties().getValue("id");
            this.execAddRelationship(dest.getConnection(),
                sRelOwner,sDestId,sRelDestId,sRelType);
          }
        }
      }
View Full Code Here


   */
  private void processWebMap(AgpItem sourceItem) throws Exception {
    AgpDestination dest = this.destination;
    String sId = sourceItem.getProperties().getValue("id");
    LOGGER.finer("Publishing web map: "+sId);
    AgpItem destItem = this.itemHelper.makeDestinationItem(this.source,sourceItem);
    boolean bRequiresUpdate = this.itemHelper.requiresUpdate(sourceItem,dest,destItem);
    if (this.forceUpdates || bRequiresUpdate) {
      this.execPublishItem(sourceItem,destItem);
      this.processMetadata(sourceItem,destItem);
      this.processRelatedItems(sourceItem,destItem);
View Full Code Here

   
      
    // determine if the item requires an update
    // process web maps at the end of the job
    // TODO: there will be problems if the item is no longer visible to this user
    AgpItem destItem = this.itemHelper.makeDestinationItem(src,sourceItem);
    boolean bRequiresUpdate = this.itemHelper.requiresUpdate(sourceItem,dest,destItem);
    if (this.forceUpdates || bRequiresUpdate) {
      if (sType.equalsIgnoreCase("Web Map")) {
        this.webMaps.add(sId);
      } else {
View Full Code Here

TOP

Related Classes of com.esri.gpt.agp.client.AgpItem

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.