Package org.geoserver.catalog

Examples of org.geoserver.catalog.CatalogBuilder.attach()


    if (localObject !=null){
      return localObject;
    }
   
    final CatalogBuilder builder = new CatalogBuilder(catalog);
    builder.attach(info);
   
    return info;
   
  }
 
View Full Code Here


    if (localObject !=null){
      return localObject;
    }
   
    final CatalogBuilder builder = new CatalogBuilder(catalog);
    builder.attach(info);
    return info;
  }

  /**
   * @param info
View Full Code Here

        LOGGER.info("No such style called \'"
            + info.getName()
            + "\' can be found: LOCALIZATION");
      }
      final CatalogBuilder builder = new CatalogBuilder(catalog);     
      builder.attach(info);
      return info;
    }
  }
 
  public static Set<StyleInfo> localizeStyles(final Set<StyleInfo> stileSet, final Catalog catalog){
View Full Code Here

    // STYLES
    createdObject.getStyles().addAll(localizeStyles(createdObject.getStyles(), catalog));
   
    final CatalogBuilder builder = new CatalogBuilder(catalog);
    builder.attach(createdObject);
    return createdObject;
  }
 
  public static MapInfo localizeMapInfo(final MapInfo info, final Catalog catalog) throws IllegalAccessException, InvocationTargetException {
    if (info==null || catalog==null)
View Full Code Here

    }
   
    info.getLayers().addAll(localizeLayers(info.getLayers(), catalog));
   
    final CatalogBuilder builder = new CatalogBuilder(catalog);
    builder.attach(info);
    return info;
  }
 
  public static LayerGroupInfo localizeLayerGroup(final LayerGroupInfo info, final Catalog catalog) throws IllegalAccessException, InvocationTargetException {
    if (info==null || catalog==null)
View Full Code Here

    // localize layers
    info.getStyles().addAll(localizeStyles(new HashSet<StyleInfo>(info.getStyles()), catalog));

    // attach to the catalog
    final CatalogBuilder builder = new CatalogBuilder(catalog);
    builder.attach(info);
    return info;
   
  }

  public static StoreInfo localizeStore(final StoreInfo info, final Catalog catalog) throws IllegalAccessException, InvocationTargetException {
View Full Code Here

    // let's using the created object (see getGridCoverageReader)
    BeanUtils.copyProperties(createdObject, info);

    createdObject.setWorkspace(localizeWorkspace(info.getWorkspace(), catalog));
   
    builder.attach(createdObject);
    return createdObject;
  }
 
  public static WMSStoreInfo localizeWMSStore(final WMSStoreInfo info,
      final Catalog catalog) throws IllegalAccessException, InvocationTargetException {
View Full Code Here

    // let's using the created object (see getGridCoverageReader)
    BeanUtils.copyProperties(createdObject, info);

    createdObject.setWorkspace(localizeWorkspace(info.getWorkspace(), catalog));
   
    builder.attach(createdObject);
    return createdObject;
  }
 
  public static CoverageStoreInfo localizeCoverageStore(final CoverageStoreInfo info,
      final Catalog catalog) throws IllegalAccessException, InvocationTargetException {
View Full Code Here

    // let's using the created object (see getGridCoverageReader)
    BeanUtils.copyProperties(createdObject, info);

    createdObject.setWorkspace(localizeWorkspace(info.getWorkspace(), catalog));
   
    builder.attach(createdObject);
    return createdObject;
  }
 
  public static ResourceInfo localizeResource(final ResourceInfo info, final Catalog catalog) throws IllegalAccessException, InvocationTargetException {
    if (info==null || catalog==null)
View Full Code Here

    createdObject.setStore(store);
   
//    WMSLayerObject.setAttributes(localizeAttributes(...)); TODO(should be already serialized)

    final CatalogBuilder builder = new CatalogBuilder(catalog);
    builder.attach(createdObject);
    return createdObject;
  }

  public static FeatureTypeInfo localizeFeatureType(final FeatureTypeInfo info, final Catalog catalog) throws IllegalAccessException, InvocationTargetException {
    if (info==null || catalog==null)
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.