Examples of GeoServerInfoImpl


Examples of org.geoserver.config.impl.GeoServerInfoImpl

       
       
        this.catalog = getCatalog();
        geosConfig = new GeoServerImpl();

        geosInfo = new GeoServerInfoImpl(geosConfig);
        geosInfo.setContact(new ContactInfoImpl());
        geosConfig.setGlobal(geosInfo);

        wmsInfo = new WMSInfoImpl();
        geosConfig.add(wmsInfo);
View Full Code Here

Examples of org.geoserver.config.impl.GeoServerInfoImpl

     */
    @Before
    public void setUp() throws Exception {
        geosConfig = new GeoServerImpl();

        geosInfo = new GeoServerInfoImpl(geosConfig);
        geosInfo.setContact(new ContactInfoImpl());
        geosConfig.setGlobal(geosInfo);

        wmsInfo = new WMSInfoImpl();
        geosConfig.add(wmsInfo);
View Full Code Here

Examples of org.geoserver.config.impl.GeoServerInfoImpl

            ((ServiceInfoImpl)entity).setGeoServer(geoServer);
        }
        else if (entity instanceof GeoServerInfoImpl) {
            //contact is mapped as a component... and hibernate assumes that all null values
            // means a null object... i don't think this is configurable but coudl be wrong
            GeoServerInfoImpl global = (GeoServerInfoImpl) entity;
            if (global.getContact() == null) {
                global.setContact(geoServer.getFactory().createContact());
            }
          
        }
    }
View Full Code Here

Examples of org.geoserver.config.impl.GeoServerInfoImpl

                return null;
            }
            OwsUtils.resolveCollections(info);
            if (info instanceof GeoServerInfo) {

                GeoServerInfoImpl global = (GeoServerInfoImpl) info;
                if (global.getMetadata() == null) {
                    global.setMetadata(new MetadataMap());
                }
                if (global.getClientProperties() == null) {
                    global.setClientProperties(new HashMap<Object, Object>());
                }
                if (global.getCoverageAccess() == null) {
                    global.setCoverageAccess(new CoverageAccessInfoImpl());
                }
                if (global.getJAI() == null) {
                    global.setJAI(new JAIInfoImpl());
                }
            }
            if (info instanceof ServiceInfo) {
                ((ServiceInfo)info).setGeoServer(geoServer);
            }
View Full Code Here

Examples of org.geoserver.config.impl.GeoServerInfoImpl

        catalog.setResourcePool(resourcePool);

        mockGeoServer = new GeoServerImpl();
        mockGeoServer.setCatalog(catalog);

        GeoServerInfoImpl geoserverInfo = new GeoServerInfoImpl(mockGeoServer);
        geoserverInfo.setId("geoserver");
        mockGeoServer.setGlobal(geoserverInfo);

        WMSInfoImpl wmsInfo = new WMSInfoImpl();
        wmsInfo.setId("wms");
        wmsInfo.setName("WMS");
View Full Code Here

Examples of org.geoserver.config.impl.GeoServerInfoImpl

            ((ServiceInfoImpl)entity).setGeoServer(geoServer);
        }
        else if (entity instanceof GeoServerInfoImpl) {
            //contact is mapped as a component... and hibernate assumes that all null values
            // means a null object... i don't think this is configurable but coudl be wrong
            GeoServerInfoImpl global = (GeoServerInfoImpl) entity;
            if (global.getContact() == null) {
                global.setContact(geoServer.getFactory().createContact());
            }
          
        }
    }
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.