public Object load() { return getGeoServerApplication().getGeoServer(); } };
/** Returns the catalog. */ public Catalog getCatalog() { return getGeoServer().getCatalog(); }
/** Convenience method for pages to get access to the geoserver configuration. */ protected GeoServer getGeoServer() { return getGeoServerApplication().getGeoServer(); }
/** * Returns the catalog. */ public Catalog getCatalog() { return getGeoServer().getCatalog(); }
/** * Convenience method for pages to get access to the geoserver * configuration. */ protected GeoServer getGeoServer() { return getGeoServerApplication().getGeoServer(); }
@Override protected GeoServer getGeoServer() { return super.getGeoServerApplication().getGeoServer(); }
public GeoServerInfo load() { return getGeoServerApplication().getGeoServer().getGlobal(); } };
@Override protected SettingsInfo load() { GeoServer gs = GeoServerApplication.get().getGeoServer(); return gs.getSettings(wsModel.getObject()); }
@Override protected SettingsInfo load() { GeoServer gs = GeoServerApplication.get().getGeoServer(); return gs.getSettings(wsModel.getObject()); } }
@Override protected ServiceInfo load() { return GeoServerApplication.get() .getGeoServer() .getService(wsModel.getObject(), serviceClass); } }
@Override protected ServiceInfo load() { return GeoServerApplication.get().getGeoServer().getService(wsModel.getObject(), serviceClass); } }
public Object load() { return getGeoServerApplication() .getGeoServer() .getGlobal() .getContact(); } };
public ContactInfo load() { return getGeoServerApplication().getGeoServer().getGlobal().getContact(); } };
private List<DataStoreInfo> getDataStores() { return getGeoServerApplication().getGeoServer().getCatalog().getDataStores(); } }
ServiceInfo create() { // create it GeoServer gs = GeoServerApplication.get().getGeoServer(); ServiceInfo newService = gs.getFactory().create(serviceClass); // initialize from global service ServiceInfo global = gs.getService(serviceClass); OwsUtils.copy(global, newService, serviceClass); newService.setWorkspace(wsModel.getObject()); // hack, but need id to be null so its considered unattached ((ServiceInfoImpl) newService).setId(null); return newService; } }
ServiceInfo create() { //create it GeoServer gs = GeoServerApplication.get().getGeoServer(); ServiceInfo newService = gs.getFactory().create(serviceClass); //initialize from global service ServiceInfo global = gs.getService(serviceClass); OwsUtils.copy(global,newService, serviceClass); newService.setWorkspace(wsModel.getObject()); //hack, but need id to be null so its considered unattached ((ServiceInfoImpl)newService).setId(null); return newService; } }
@Override protected void setUpInternal() throws Exception { wms = getGeoServerApplication().getGeoServer().getService(WMSInfo.class); login(); }
public void testValues() throws Exception { WFSInfo wfs = getGeoServerApplication().getGeoServer().getService(WFSInfo.class); login(); tester.startPage(WFSAdminPage.class); tester.assertModelValue("form:maxFeatures", wfs.getMaxFeatures()); tester.assertModelValue("form:keywords", wfs.getKeywords()); } }
@Test public void test() throws Exception { login(); WCSInfo wcs = getGeoServerApplication().getGeoServer().getService(WCSInfo.class); // start the page tester.startPage(new WCSAdminPage()); tester.assertRenderedPage(WCSAdminPage.class); // test that components have been filled as expected tester.assertComponent("form:keywords", KeywordsEditor.class); tester.assertModelValue("form:keywords", wcs.getKeywords()); } }
@Test public void testValues() throws Exception { WFSInfo wfs = getGeoServerApplication().getGeoServer().getService(WFSInfo.class); login(); tester.startPage(WFSAdminPage.class); tester.assertModelValue("form:maxFeatures", wfs.getMaxFeatures()); tester.assertModelValue( "form:maxNumberOfFeaturesForPreview", wfs.getMaxNumberOfFeaturesForPreview()); tester.assertModelValue("form:keywords", wfs.getKeywords()); }