Examples of GeostoreActionConfiguration


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

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

            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

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

        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

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

            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

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

            // 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
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.