Package org.geoserver.catalog.impl

Examples of org.geoserver.catalog.impl.ModificationProxy


            fireModified(object, propertyNames, oldValues, newValues);
            firePostModified(object);
            return;
        }

        ModificationProxy h = (ModificationProxy) Proxy.getInvocationHandler(object);

        // get the real object
        CatalogInfo real = (CatalogInfo) h.getProxyObject();

        // fire out what changed
        List propertyNames = h.getPropertyNames();
        List newValues = h.getNewValues();
        List oldValues = h.getOldValues();

        // TODO: protect this original object, perhaps with another proxy
        fireModified(real, propertyNames, oldValues, newValues);

        // commit to the original object
        h.commit();

        // resolve to do a sync on the object
        // syncIdWithName(real);

        // fire the post modify event
View Full Code Here


    public void remove(ServiceInfo service) {
        services.remove( service );
    }

    public void save(GeoServerInfo geoServer) {
        ModificationProxy proxy =
            (ModificationProxy) Proxy.getInvocationHandler( geoServer );
       
        List propertyNames = proxy.getPropertyNames();
        List oldValues = proxy.getOldValues();
        List newValues = proxy.getNewValues();
       
        for ( ConfigurationListener l : listeners ) {
            try {
                l.handleGlobalChange( geoServer, propertyNames, oldValues, newValues);
            }
            catch( Exception e ) {
                //log this
            }
        }
       
        proxy.commit();
       
        //fire post modification event
        fireGlobalPostModified();
    }
View Full Code Here

        //fire post modification event
        fireGlobalPostModified();
    }

    public void save(LoggingInfo logging) {
        ModificationProxy proxy =
            (ModificationProxy) Proxy.getInvocationHandler( logging );
       
        List propertyNames = proxy.getPropertyNames();
        List oldValues = proxy.getOldValues();
        List newValues = proxy.getNewValues();
       
        for ( ConfigurationListener l : listeners ) {
            try {
                l.handleLoggingChange( logging, propertyNames, oldValues, newValues);
            }
            catch( Exception e ) {
                //log this
            }
        }
       
        proxy.commit();
       
        //fire post modification event
        fireLoggingPostModified();
    }
View Full Code Here

            }
        }
    }
   
    public void save(ServiceInfo service) {
        ModificationProxy proxy =
            (ModificationProxy) Proxy.getInvocationHandler( service );
       
        List propertyNames = proxy.getPropertyNames();
        List oldValues = proxy.getOldValues();
        List newValues = proxy.getNewValues();
       
        for ( ConfigurationListener l : listeners ) {
            try {
                l.handleServiceChange( service, propertyNames, oldValues, newValues);
            }
            catch( Exception e ) {
                //log this
            }
        }
       
        proxy.commit();
       
        //fire post modification event
        firePostServiceModified(service);
    }
View Full Code Here

        resolve(global);
        this.global = global;
    }
   
    public void save(GeoServerInfo global) {
        ModificationProxy proxy =
            (ModificationProxy) Proxy.getInvocationHandler( global );
       
        List propertyNames = proxy.getPropertyNames();
        List oldValues = proxy.getOldValues();
        List newValues = proxy.getNewValues();
       
        geoServer.fireGlobalModified(global, propertyNames, oldValues, newValues);
       
        proxy.commit();
    }
View Full Code Here

    public void setLogging(LoggingInfo logging) {
        this.logging = logging;
    }

    public void save(LoggingInfo logging) {
        ModificationProxy proxy =
            (ModificationProxy) Proxy.getInvocationHandler( logging );
       
        List propertyNames = proxy.getPropertyNames();
        List oldValues = proxy.getOldValues();
        List newValues = proxy.getNewValues();
       
        geoServer.fireLoggingModified(logging, propertyNames, oldValues, newValues);

        proxy.commit();
    }
View Full Code Here

        service.setGeoServer(geoServer);
        services.add( service );
    }
   
    public void save(ServiceInfo service) {
        ModificationProxy proxy =
            (ModificationProxy) Proxy.getInvocationHandler( service );
       
        List propertyNames = proxy.getPropertyNames();
        List oldValues = proxy.getOldValues();
        List newValues = proxy.getNewValues();
       
        geoServer.fireServiceModified(service, propertyNames, oldValues, newValues);

        proxy.commit();
    }
View Full Code Here

        setId(global.getSettings());
        this.global = global;
    }
   
    public void save(GeoServerInfo global) {
        ModificationProxy proxy =
            (ModificationProxy) Proxy.getInvocationHandler( global );
       
        List propertyNames = proxy.getPropertyNames();
        List oldValues = proxy.getOldValues();
        List newValues = proxy.getNewValues();
       
        geoServer.fireGlobalModified(global, propertyNames, oldValues, newValues);
       
        proxy.commit();
    }
View Full Code Here

        settings.add(s);
    }

    @Override
    public void save(SettingsInfo settings) {
        ModificationProxy proxy =
            (ModificationProxy) Proxy.getInvocationHandler( settings );
       
        List propertyNames = proxy.getPropertyNames();
        List oldValues = proxy.getOldValues();
        List newValues = proxy.getNewValues();
       
        settings = (SettingsInfo) proxy.getProxyObject();
        geoServer.fireSettingsModified(settings, propertyNames, oldValues, newValues);

        proxy.commit();
    }
View Full Code Here

    public void setLogging(LoggingInfo logging) {
        this.logging = logging;
    }

    public void save(LoggingInfo logging) {
        ModificationProxy proxy =
            (ModificationProxy) Proxy.getInvocationHandler( logging );
       
        List propertyNames = proxy.getPropertyNames();
        List oldValues = proxy.getOldValues();
        List newValues = proxy.getNewValues();
       
        geoServer.fireLoggingModified(logging, propertyNames, oldValues, newValues);

        proxy.commit();
    }
View Full Code Here

TOP

Related Classes of org.geoserver.catalog.impl.ModificationProxy

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.