Package org.geoserver.catalog

Examples of org.geoserver.catalog.Catalog.save()


        Date modified = new Date();
        Metadata.modified(m, modified);
        Metadata.modified(ws, modified);

        cat.save(m);
        cat.save(ws);

        recent.add(LayerGroupInfo.class, m);
        return mapLayerList(m,req);
    }
View Full Code Here


        Date modified = new Date();
        Metadata.modified(m, modified);
        Metadata.modified(ws, modified);

        cat.save(m);
        cat.save(ws);

        recent.add(LayerGroupInfo.class, m);
        return mapLayerList(m,req);
    }
View Full Code Here

        Date modified = new Date();
        Metadata.modified(m, modified);
        Metadata.modified(ws, modified);

        cat.save(m);
        cat.save(ws);

        recent.add(LayerGroupInfo.class, m);
        return mapLayerList(m,req);
    }
View Full Code Here

        Date modified = new Date();
        Metadata.modified(m, modified);
        Metadata.modified(ws, modified);

        cat.save(m);
        cat.save(ws);

        recent.add(LayerGroupInfo.class, m);
        return mapLayerList(m,req);
    }
   
View Full Code Here

        int index = map.layers().indexOf(layer);
        boolean removed = map.getLayers().remove(layer);
        if( removed ){
            map.getStyles().remove(index);

            cat.save(map);
            recent.add(LayerGroupInfo.class, map);

            JSONObj delete = new JSONObj()
                .put("name", layer.getName())
                .put("removed", removed );
View Full Code Here

        cat.add(l.getDefaultStyle());
        cat.add(l.getResource());
        cat.add(l);

        Metadata.modified(ws, created);
        cat.save(ws);

        return IO.layer(new JSONObj(), l, req);
    }

    LayerInfo createLayerFromLayer(JSONObj from, WorkspaceInfo ws, Catalog cat) {
View Full Code Here

            }
        }

        Metadata.modified(layer, new Date());
        Catalog cat = geoServer.getCatalog();
        cat.save(resource);
        cat.save(layer);
        return IO.layer(new JSONObj(), layer, req);
    }

    @RequestMapping(value="/{wsName}/{name}/style", method = RequestMethod.PUT, consumes = YsldHandler.MIMETYPE)
View Full Code Here

        }

        Metadata.modified(layer, new Date());
        Catalog cat = geoServer.getCatalog();
        cat.save(resource);
        cat.save(layer);
        return IO.layer(new JSONObj(), layer, req);
    }

    @RequestMapping(value="/{wsName}/{name}/style", method = RequestMethod.PUT, consumes = YsldHandler.MIMETYPE)
    public @ResponseBody void style(@RequestBody byte[] rawStyle, @PathVariable String wsName,
View Full Code Here

        if (s.getId() == null) {
            cat.add(s);
        }
        else {
            cat.save(s);
        }

        Date mod = new Date();
        Metadata.modified(l, mod);
View Full Code Here

        LayerGroupInfo map = null;
        if (mapName != null) {
            map = findMap(wsName, mapName, cat);
        }

        cat.save(l);
        recent.add(LayerInfo.class, l, wsName);
        if (map != null) {
            Metadata.modified(map, mod);
            cat.save(map);
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.