public void firePostModified( CatalogInfo object, List<String> propertyNames, List oldValues, List newValues) { delegate.firePostModified(object, propertyNames, oldValues, newValues); }
public void firePostModified( CatalogInfo object, List<String> propertyNames, List oldValues, List newValues) { delegate.firePostModified(object, propertyNames, oldValues, newValues); }
public void firePostModified( CatalogInfo object, List<String> propertyNames, List oldValues, List newValues) { delegate.firePostModified(object, propertyNames, oldValues, newValues); }
protected void afterSaved( CatalogInfo object, List propertyNames, List oldValues, List newValues) { CatalogInfo real = ModificationProxy.unwrap(object); // fire the post modify event getCatalog().firePostModified(real, propertyNames, oldValues, newValues); }
catalog.firePostModified(ModificationProxy.unwrap(localizedObject)); catalog.firePostModified(ModificationProxy.unwrap(localizedObject)); catalog.firePostModified(ModificationProxy.unwrap(localizedObject)); catalog.firePostModified(ModificationProxy.unwrap(localizedObject)); catalog.firePostModified(ModificationProxy.unwrap(localizedObject)); catalog.firePostModified(ModificationProxy.unwrap(localizedObject)); catalog.firePostModified(ModificationProxy.unwrap(localizedObject)); catalog.firePostModified(ModificationProxy.unwrap(localizedObject));
catalog.firePostModified(ModificationProxy.unwrap(localizedObject)); catalog.firePostModified(ModificationProxy.unwrap(localizedObject)); catalog.firePostModified(ModificationProxy.unwrap(localizedObject)); catalog.firePostModified(ModificationProxy.unwrap(localizedObject)); catalog.firePostModified(ModificationProxy.unwrap(localizedObject)); catalog.firePostModified(ModificationProxy.unwrap(localizedObject)); catalog.firePostModified(ModificationProxy.unwrap(localizedObject)); catalog.firePostModified(ModificationProxy.unwrap(localizedObject));
/** * Tests that already cached icons are recreated if related SLD is newer (using Catalog events). */ @Test public void testCachedLegendURLUpdatedSize2() throws Exception { GeoServerResourceLoader loader = GeoServerExtensions.bean(GeoServerResourceLoader.class); Resource sldResource = loader.get(Paths.path("styles", "Bridges.sld")); File sampleFile = getSampleFile("Bridges"); long lastTime = sampleFile.lastModified(); long lastLength = sampleFile.length(); long previousTime = sldResource.lastmodified(); sldResource.file().setLastModified(lastTime + 1000); catalog.firePostModified( catalog.getStyleByName("Bridges"), new ArrayList<String>(), new ArrayList(), new ArrayList()); TransformerBase tr = createTransformer(); tr.setIndentation(2); Document dom = WMSTestSupport.transform(req, tr); NodeList legendURLs = XPATH.getMatchingNodes(getLegendURLXPath("cite:Bridges"), dom); assertEquals(1, legendURLs.getLength()); Element legendURL = (Element) legendURLs.item(0); assertTrue(legendURL.hasAttribute("width")); assertEquals("20", legendURL.getAttribute("width")); assertTrue(legendURL.hasAttribute("height")); assertEquals("20", legendURL.getAttribute("height")); assertFalse(getSampleFile("Bridges").length() == lastLength); sldResource.file().setLastModified(previousTime); }