Package it.geosolutions.geobatch.unredd.geostore

Examples of it.geosolutions.geobatch.unredd.geostore.GeostoreActionConfiguration


    public GeoStoreUtil(GeoStoreConfig config, File tempDir) {
        this(config.getUrl(), config.getUsername(), config.getPassword(), tempDir);
    }

    protected GeostoreActionConfiguration createConfiguration() {
        GeostoreActionConfiguration searchConfiguration = new GeostoreActionConfiguration("id", "name", " description");
        searchConfiguration.setUrl(getConfigUrl());
        searchConfiguration.setUser(getConfigUsername());
        searchConfiguration.setPassword(getConfigPassword());
//        searchConfiguration.setWorkingDirectory(runningWorkingDir); // really needed?
        return searchConfiguration;
    }
View Full Code Here


            tmpFile = File.createTempFile(fileNameHint, ".xml", tempDir);
           
            Marshaller m = JAXBMarshallerBuilder.getJAXBMarshaller(filter.getClass());
            m.marshal(filter, tmpFile);

            GeostoreActionConfiguration geoStoreCfg = createConfiguration();
            geoStoreCfg.setShortResource(getShortResource);
            geoStoreCfg.setOperation(GeostoreOperation.Operation.SEARCH);

            GeostoreAction action = new GeostoreAction(geoStoreCfg);
            action.setTempDir(tempDir);

            SingleFileActionExecutor.execute(action, tmpFile);
View Full Code Here

        try {
            tmpFile = File.createTempFile("Insert_"+hintName , ".xml", tempDir);
            Marshaller m = JAXBMarshallerBuilder.getJAXBMarshaller(resource.getClass());
            m.marshal(resource, tmpFile);

            GeostoreActionConfiguration geoStoreCfg = createConfiguration();
            geoStoreCfg.setShortResource(true);
            geoStoreCfg.setOperation(GeostoreOperation.Operation.INSERT);

            GeostoreAction action = new GeostoreAction(geoStoreCfg);
            action.setTempDir(tempDir);

            SingleFileActionExecutor.execute(action, tmpFile);
View Full Code Here

            resource.setData(data);           
            tmpFile = File.createTempFile("UpdateData", ".xml", tempDir);
            Marshaller m = JAXBMarshallerBuilder.getJAXBMarshaller(resource.getClass());
            m.marshal(resource, tmpFile);

            GeostoreActionConfiguration geoStoreCfg = createConfiguration();
            geoStoreCfg.setShortResource(true);
            geoStoreCfg.setOperation(GeostoreOperation.Operation.UPDATEDATA);

            GeostoreAction action = new GeostoreAction(geoStoreCfg);
            action.setTempDir(tempDir);

            SingleFileActionExecutor.execute(action, tmpFile);
View Full Code Here

            // this part creates the file to feed the GeoStoreAction
            File inputFile = File.createTempFile("Delete", ".xml", tempDir);
            Marshaller m = JAXBMarshallerBuilder.getJAXBMarshaller(resource.getClass());
            m.marshal(resource, inputFile);

            GeostoreActionConfiguration geoStoreCfg = createConfiguration();
            geoStoreCfg.setShortResource(true);
            geoStoreCfg.setOperation(GeostoreOperation.Operation.DELETE);

            GeostoreAction action = new GeostoreAction(geoStoreCfg);
            action.setTempDir(tempDir);

            SingleFileActionExecutor.execute(action, inputFile);
View Full Code Here

TOP

Related Classes of it.geosolutions.geobatch.unredd.geostore.GeostoreActionConfiguration

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.