Examples of GeostoreAction


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

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

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

            SingleFileActionExecutor.execute(action, tmpFile);

            List ret = getShortResource
                    ? action.getShortResourceList()
                    : action.getResourceList();
            return ret == null ? Collections.EMPTY_LIST : ret;

        } catch(Exception e) {
            throw new GeoStoreException("Error while searching in GeoStore", e);
        } finally {
View Full Code Here

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

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

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

            SingleFileActionExecutor.execute(action, tmpFile);
            return null; // no id here
        } catch(Exception e) {
            LOGGER.error("Error while inserting in GeoStore: " + resource);
View Full Code Here

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

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

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

            SingleFileActionExecutor.execute(action, tmpFile);
        } catch (Exception ex) {
            throw new GeoStoreException("Exception while updating data", ex);
        } finally {
View Full Code Here

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

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

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

            SingleFileActionExecutor.execute(action, inputFile);
        } catch (Exception ex) {
            throw new GeoStoreException("Error while deleting resource " + id, ex);
        }
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.