public void save(LayerGroupInfo layerGroup) { ModificationProxy h = (ModificationProxy) Proxy.getInvocationHandler(layerGroup); // figure out what changed List<String> propertyNames = h.getPropertyNames(); List<Object> newValues = h.getNewValues(); List<Object> oldValues = h.getOldValues(); beforeSaved(layerGroup, propertyNames, oldValues, newValues); layerGroups.update(layerGroup); commitProxy(layerGroup); afterSaved(layerGroup, propertyNames, oldValues, newValues); }
public void save(StoreInfo store) { ModificationProxy h = (ModificationProxy) Proxy.getInvocationHandler(store); // figure out what changed List<String> propertyNames = h.getPropertyNames(); List<Object> newValues = h.getNewValues(); List<Object> oldValues = h.getOldValues(); beforeSaved(store, propertyNames, oldValues, newValues); stores.update(store); commitProxy(store); afterSaved(store, propertyNames, oldValues, newValues); }
public void save(NamespaceInfo namespace) { ModificationProxy h = (ModificationProxy) Proxy.getInvocationHandler(namespace); // figure out what changed List<String> propertyNames = h.getPropertyNames(); List<Object> newValues = h.getNewValues(); List<Object> oldValues = h.getOldValues(); beforeSaved(namespace, propertyNames, oldValues, newValues); namespaces.update(namespace); commitProxy(namespace); afterSaved(namespace, propertyNames, oldValues, newValues); }
public void save(StyleInfo style) { ModificationProxy h = (ModificationProxy) Proxy.getInvocationHandler(style); // figure out what changed List<String> propertyNames = h.getPropertyNames(); List<Object> newValues = h.getNewValues(); List<Object> oldValues = h.getOldValues(); beforeSaved(style, propertyNames, oldValues, newValues); styles.update(style); commitProxy(style); afterSaved(style, propertyNames, oldValues, newValues); }
public void save(ResourceInfo resource) { ModificationProxy h = (ModificationProxy) Proxy.getInvocationHandler(resource); // figure out what changed List<String> propertyNames = h.getPropertyNames(); List<Object> newValues = h.getNewValues(); List<Object> oldValues = h.getOldValues(); beforeSaved(resource, propertyNames, oldValues, newValues); resources.update(resource); layers.update(resource); commitProxy(resource); afterSaved(resource, propertyNames, oldValues, newValues); }
public void save(WorkspaceInfo workspace) { // need to synch up the default store lookup ModificationProxy h = (ModificationProxy) Proxy.getInvocationHandler(workspace); WorkspaceInfo ws = (WorkspaceInfo) h.getProxyObject(); if (!workspace.getName().equals(ws.getName())) { DataStoreInfo ds = defaultStores.remove(ws.getName()); if (ds != null) { defaultStores.put(workspace.getName(), ds); } } // figure out what changed List<String> propertyNames = h.getPropertyNames(); List<Object> newValues = h.getNewValues(); List<Object> oldValues = h.getOldValues(); beforeSaved(workspace, propertyNames, oldValues, newValues); workspaces.update(workspace); commitProxy(workspace); afterSaved(workspace, propertyNames, oldValues, newValues); }