Package it.geosolutions.unredd.geostore.model

Examples of it.geosolutions.unredd.geostore.model.UNREDDChartScript.addReverseAttribute()


  public  static RESTResource createChartScriptResource(String name, String statsdef, String script){

        UNREDDChartScript chartScript = new UNREDDChartScript();
        chartScript.setAttribute(UNREDDChartScript.Attributes.SCRIPTPATH, script);
        chartScript.addReverseAttribute(ReverseAttributes.STATSDEF, statsdef);

    RESTResource res = chartScript.createRESTResource();
    res.setName(name);

    return res;
View Full Code Here


        File testScript = loadFile("configuration/script/testScript.groovy");
        LOGGER.info("Test groovy script is " + testScript);

        UNREDDChartScript chartScript = new UNREDDChartScript();
        chartScript.setAttribute(Attributes.SCRIPTPATH, testScript.getAbsolutePath());
        chartScript.addReverseAttribute(ReverseAttributes.STATSDEF, "area_admin1_fc13"); // any one is good

        RESTResource chartScriptRes = chartScript.createRESTResource();
        chartScriptRes.setName("testChartScript");
//        long chartScriptId = geostoreClient.insert(chartScriptRes);
        long chartScriptId = gstcu.insert(chartScriptRes);
View Full Code Here

        File testScript = loadFile("configuration/script/testScript.groovy");
        LOGGER.info("Test groovy script is " + testScript);

        UNREDDChartScript chartScript = new UNREDDChartScript();
        chartScript.setAttribute(Attributes.SCRIPTPATH, testScript.getAbsolutePath());
        chartScript.addReverseAttribute(ReverseAttributes.STATSDEF, STATSDEFNAME);

        RESTResource chartScriptRes = chartScript.createRESTResource();
        chartScriptRes.setName("testChartScript");
        gstcu.insert(chartScriptRes);
//        Resource fullChartScript = gstcu.getGeoStoreClient().getResource(chartScriptId);
View Full Code Here

            File testScript = loadFile("configuration/script/testScript.groovy");
            LOGGER.info("Test groovy script is " + testScript);

            UNREDDChartScript chartScript = new UNREDDChartScript();
            chartScript.setAttribute(Attributes.SCRIPTPATH, testScript.getAbsolutePath());
            chartScript.addReverseAttribute(ReverseAttributes.STATSDEF, "area_admin1_fc13"); // any one is good

            RESTResource chartScriptRes = chartScript.createRESTResource();
            chartScriptRes.setName("testChartScript");
            gstcu.insert(chartScriptRes);
        }
View Full Code Here

            File testScript = loadFile("configuration/script/testScript.groovy");
            LOGGER.info("Test groovy script is " + testScript);

            UNREDDChartScript chartScript = new UNREDDChartScript();
            chartScript.setAttribute(Attributes.SCRIPTPATH, testScript.getAbsolutePath());
            chartScript.addReverseAttribute(ReverseAttributes.STATSDEF, STATSDEFNAME);

            RESTResource chartScriptRes = chartScript.createRESTResource();
            chartScriptRes.setName("testChartScript");
            gstcu.insert(chartScriptRes);
        }
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.