Package it.geosolutions.geostore.services.dto

Examples of it.geosolutions.geostore.services.dto.ShortAttribute


    }

    protected static void copyResourceAttribs(Resource resource, RESTResource rr) {
        List<ShortAttribute> list = new ArrayList<ShortAttribute>();
        for (Attribute attribute : resource.getAttribute()) {
            ShortAttribute shatt = new ShortAttribute(attribute);
            list.add(shatt);
        }
        rr.setAttribute(list);
    }
View Full Code Here


                dstGeostore.insert(statsData);
               
                // Add attribute Published=true to srcGeostore, usefull for staging admin application
              LOGGER.info("Adding attribute published=true to resource " + srcStatsData.getName());
              RESTResource statsDataTmp = FlowUtil.copyResource(srcStatsData);
              ShortAttribute published = new ShortAttribute(UNREDDLayerUpdate.Attributes.PUBLISHED.getName(), "true", DataType.STRING);
             
              //DamianoG workaround for search in list due to ShortAttribute don't override equals method
              boolean flag = true;
              for(ShortAttribute el : statsDataTmp.getAttribute()){
                if(el.toString().equals(published.toString())){
                  flag = false;
                  break;
                }
              }
             
View Full Code Here

TOP

Related Classes of it.geosolutions.geostore.services.dto.ShortAttribute

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.