Package org.geoserver.catalog

Examples of org.geoserver.catalog.MetadataMap


    this.LOGGER = org.geotools.util.logging.Logging
        .getLogger("org.geoserver.ows");
    this.tileSetsParser = new TileSetsParser();
    this.LODSetsParser = new LODSetParser();
    resourceInfo = null;
    info = new MetadataMap();
  }
View Full Code Here


    this.catalog = catalog;
    this.resourceLoader = this.catalog.getResourceLoader();
    this.LOGGER = org.geotools.util.logging.Logging
        .getLogger("org.geoserver.ows");
    this.resourceInfo = null;
    info = new MetadataMap();
    if (searchTL) {
      File dir = this.resourceLoader.findOrCreateDirectory("tilesets");
      this.tileSetsParser = new TileSetsParser(dir, LOGGER);
      dir = this.resourceLoader.findOrCreateDirectory("lodsets");
      this.LODSetsParser = new LODSetParser(dir, LOGGER);
View Full Code Here

        for(Layer tempLayer:layers){
            if(tempLayer instanceof RasterLayer){
                String title = tempLayer.getTitle();
                LayerInfo layerInfo = catalog.getLayerByName(title);       
                if(layerInfo!=null){
                    MetadataMap metadata= layerInfo.getMetadata();
                    if(metadata.containsKey(EoLayerType.KEY)&&metadata.get(EoLayerType.KEY).equals(BAND_COVERAGE_VALUE)){  
                        layer=(RasterLayer) tempLayer;
                        break;
                    }
                }
            }
View Full Code Here

        return GeoServerApplication.get().getCatalog().getLayer(layerId);
    }

    public void setLayer(LayerInfo layer, String layerGroupName) {
        layerId = layer.getId();
        MetadataMap metadata = layer.getMetadata();
        layerType = metadata.get(EoLayerType.KEY, EoLayerType.class);
        if(layerType == EoLayerType.BAND_COVERAGE) {
            layerSubName = "bands";
        } else if(layerType == EoLayerType.BROWSE_IMAGE) {
            layerSubName = "browse";
        } else {
View Full Code Here

        }
        if (service.getExceptionFormats() == null) {
            ((CSWInfoImpl) service).setExceptionFormats(new ArrayList());
        }
        if (service.getMetadata() == null) {
            ((CSWInfoImpl) service).setMetadata(new MetadataMap());
        }
        if (service.getClientProperties() == null) {
            ((CSWInfoImpl) service).setClientProperties(new HashMap());
        }
        if (service.getVersions() == null) {
View Full Code Here

        writer.writeNamespace("geo", GEO_NS);
        writer.setDefaultNamespace(SITEMAP_NS);

        writer.setPrefix("geo", GEO_NS);
        for (LayerInfo info : catalog.getLayers()) {
            final MetadataMap metadata = info.getMetadata();
            final Boolean indexingEnabled = metadata.get(INDEXING_ENABLED, Boolean.class);
            if (null == indexingEnabled || Boolean.FALSE.equals(indexingEnabled)) {
                continue;
            }
            final String layerName = info.getResource().getPrefixedName();

            writeUrl(writer, metadata, layerName);
        }
        for (LayerGroupInfo info : catalog.getLayerGroups()) {
            final MetadataMap metadata = info.getMetadata();
            final Boolean indexingEnabled = metadata.get(INDEXING_ENABLED, Boolean.class);
            if (null == indexingEnabled || Boolean.FALSE.equals(indexingEnabled)) {
                continue;
            }
            final String layerName = info.getName();
View Full Code Here

     * @return the timeout, or -1 if infinite timeout.
     */
    public double getConnectionTimeout() {
        if(connectionTimeout == null) {
            // check the metadata map for backwards compatibility with 2.1.x series
            MetadataMap md = getMetadata();
            if(md == null) {
                return DEFAULT_CONNECTION_TIMEOUT;
            }
            Double timeout = md.get(KEY_CONNECTION_TIMEOUT, Double.class);
            if(timeout == null) {
                return DEFAULT_CONNECTION_TIMEOUT;
            }
            connectionTimeout = timeout;
        }
View Full Code Here

    }

    public int getResourceExpirationTimeout() {
        if(resourceExpirationTimeout == null) {
            // check the metadata map for backwards compatibility with 2.1.x series
            MetadataMap md = getMetadata();
            if(md == null) {
                return DEFAULT_RESOURCE_EXPIRATION_TIMEOUT;
            }
            Integer timeout = md.get(KEY_RESOURCE_EXPIRATION_TIMEOUT, Integer.class);
            if(timeout == null) {
                return DEFAULT_RESOURCE_EXPIRATION_TIMEOUT;
            }
            resourceExpirationTimeout = timeout;
        }
View Full Code Here

    }

    public int getMaxSynchronousProcesses() {
        if(maxSynchronousProcesses == null) {
            // check the metadata map for backwards compatibility with 2.1.x series
            MetadataMap md = getMetadata();
            if(md == null) {
                return DEFAULT_MAX_SYNCH;
            }
            Integer max = md.get(KEY_MAX_SYNCH, Integer.class);
            if(max == null) {
                return DEFAULT_MAX_SYNCH;
            }
            maxSynchronousProcesses = max;
        }
View Full Code Here

    }

    public int getMaxAsynchronousProcesses() {
        if(maxAsynchronousProcesses == null) {
            // check the metadata map for backwards compatibility with 2.1.x series
            MetadataMap md = getMetadata();
            if(md == null) {
                return DEFAULT_MAX_ASYNCH;
            }
            Integer max = md.get(KEY_MAX_ASYNCH, Integer.class);
            if(max == null) {
                return DEFAULT_MAX_ASYNCH;
            }
            maxAsynchronousProcesses = max;
        }
View Full Code Here

TOP

Related Classes of org.geoserver.catalog.MetadataMap

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.