Package org.geoserver.catalog

Examples of org.geoserver.catalog.MetadataMap


        if(this.advertised != null) {
            return advertised;
        }
       
        // check the metadata map for backwards compatibility with 2.1.x series
        MetadataMap md = getMetadata();
        if(md == null) {
            return true;
        }
        Boolean metadataAdvertised = md.get(LayerInfoImpl.KEY_ADVERTISED, Boolean.class);
        if(metadataAdvertised == null) {
            metadataAdvertised = true;
        }
        return metadataAdvertised;
    }
View Full Code Here


                    break;
                }
            }

            //check to see if this is a virtual JDBC feature type
            MetadataMap mdm = featureType.getMetadata();
            boolean virtual = mdm != null && mdm.containsKey(FeatureTypeInfo.JDBC_VIRTUAL_TABLE);

            if(!virtual && !typeExists) {
                gtds.createSchema(buildFeatureType(featureType));
                // the attributes created might not match up 1-1 with the actual spec due to
                // limitations of the data store, have it re-compute them
View Full Code Here

        catalog.validate(featureTypeInfo, false).throwIfInvalid();
        catalog.save( featureTypeInfo );
        catalog.getResourcePool().clear(featureTypeInfo);
       
        Map<String, Serializable> parameters = featureTypeInfo.getStore().getConnectionParameters();
        MetadataMap mdm = featureTypeInfo.getMetadata();
        boolean virtual = mdm != null && mdm.containsKey(FeatureTypeInfo.JDBC_VIRTUAL_TABLE);
       
        if( !virtual && parameters.equals(parametersCheck)){
            LOGGER.info( "PUT FeatureType" + datastore + "," + featuretype + " updated metadata only");
        }
        else {
View Full Code Here

                break;
            }
        }
       
        //check to see if this is a virtual JDBC feature type
        MetadataMap mdm = featureType.getMetadata();
        boolean virtual = mdm != null && mdm.containsKey(FeatureTypeInfo.JDBC_VIRTUAL_TABLE);
       
        if(!virtual && !typeExists) {
            gtds.createSchema(buildFeatureType(featureType));
            // the attributes created might not match up 1-1 with the actual spec due to
            // limitations of the data store, have it re-compute them
View Full Code Here

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

            try {
                Object value = g.invoke( object, null );
                if ( value == null ) {
                    if ( Map.class.isAssignableFrom( type ) ) {
                        if ( MetadataMap.class.isAssignableFrom( type ) ) {
                            value = new MetadataMap();
                        }
                        else {
                            value = new HashMap();
                        }
                    }
View Full Code Here

            //ensure null list does not result
            if ( featureType.getAttributes() == null ){
                featureType.setAttributes(new ArrayList());
            }
            if( featureType.getMetadata() == null) {
                featureType.setMetadata(new MetadataMap());
            }
           
            callback.postEncodeFeatureType(featureType, writer, context);
        }
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.