Examples of save()


Examples of org.geoserver.config.GeoServer.save()

            @Override
            public void onSubmit() {
                GeoServer gs = (GeoServer)geoServerModel.getObject();
                GeoServerInfo global = gs.getGlobal();
                global.setContact((ContactInfo)contactModel.getObject());
                gs.save(global);
                setResponsePage(GeoServerHomePage.class);
            }
        });
        form.add(new Button("cancel") {
            @Override
View Full Code Here

Examples of org.geoserver.config.util.XStreamPersister.save()

                p.setCatalog( catalog );
                p.setReferenceByName(true);
                p.setExcludeIds();
               
                configurePersister(p,this);
                p.save( data, output );
            }
           
            @Override
            protected Object read(InputStream in)
                    throws IOException {
View Full Code Here

Examples of org.geoserver.config.util.XStreamServiceLoader.save()

        try {
            //TODO: handle workspace move, factor this class out into
            // separate persister class
            File directory = service.getWorkspace() != null
                ? dir(service.getWorkspace(), true) : null;
            loader.save( service, geoServer, directory);
        } catch (Throwable t) {
            throw new RuntimeException( t );
            //LOGGER.log(Level.SEVERE, "Error occurred while saving configuration", t);
        }
    }
View Full Code Here

Examples of org.geoserver.gwc.GWC.save()

        }

        tileLayerInfo.setName(name);

        if (tileLayerExists) {
            gwc.save(tileLayer);
        } else {
            gwc.add(tileLayer);
        }
    }
View Full Code Here

Examples of org.geowebcache.config.Configuration.save()

     * Adds a layer to the {@link CatalogConfiguration} and saves it.
     */
    public void add(GeoServerTileLayer tileLayer) {
        Configuration config = tld.addLayer(tileLayer);
        try {
            config.save();
        } catch (IOException e) {
            propagate(getRootCause(e));
        }
    }

View Full Code Here

Examples of org.geowebcache.config.XMLConfiguration.save()

            XMLConfiguration mainConfig = getXmlConfiguration();

            mainConfig.removeGridset(oldGridSetName);
            mainConfig.addOrReplaceGridSet(new XMLGridSet(newGridSet));
            mainConfig.save();
            getGridSetBroker().remove(oldGridSetName);
            getGridSetBroker().put(newGridSet);

            // tld.removeGridset(oldGridSetName);
            // tld.addGridSet(newGridSet);
View Full Code Here

Examples of org.gephi.project.api.ProjectPropertiesUI.save()

            JPanel panel = ui.getPanel();
            ui.load(project);
            DialogDescriptor dd = new DialogDescriptor(panel, NbBundle.getMessage(ProjectNode.class, "ProjectNode_projectProperties_dialogTitle"));
            Object result = DialogDisplayer.getDefault().notify(dd);
            if (result == NotifyDescriptor.OK_OPTION) {
                ui.save(project);
            }
        }
    }

    @Override
View Full Code Here

Examples of org.glassfish.ha.store.api.BackingStore.save()

        if (_logger.isLoggable(Level.FINEST)) {
            _logger.finest("In doValveSave metadata is " + simpleMetadata);
        }
        try {
            HASession haSess = (HASession)session;
            replicator.save(session.getIdInternal(), //id
                    simpleMetadata, haSess.isPersistent());

            if (_logger.isLoggable(Level.FINE)) {
                _logger.fine("Save succeeded.");
            }
View Full Code Here

Examples of org.globus.gsi.GlobusCredential.save()

                log.debug("new proxy file " + proxyloc + " is created.");
            }
            FileOutputStream fout = null;
            try {
                fout = new FileOutputStream(proxyfile);
                globusCred.save(fout);
            } finally {
                if (fout != null) {
                    fout.close();
                }
            }
View Full Code Here

Examples of org.glox4j.openpackaging.packages.GloxPackage.save()

   

    // All done..
    String outfile = outputdir + outputfilename;
    System.out.println("Writing " + outfile);
    gloxPackage.save(new java.io.File(outfile ));
   
    System.out.println("Done!");
   
  }
 
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.