Hi,
the current support for editing ftl templates in GeoServer is kinda
lacking, currently
the only way to add/manipulate them is to go on the file system, which is
blatantly
against our policy of not manually editing the contents of the data
directory.

While I have no funding to support GUI editing at the moment, I have a
mandate to
add template support in REST config.

Since the REST config tree structure follows closely the on disk structure
I was thinking
to add template support as an extra resource under each of the main ones,
for example:

/workspaces/templates/<templateX>.ftl
/workspaces/<ws>/templates/<templateX>.ftl
/workspaces/<ws>/datastores/<ds>/templates/<templateX>.ftl
/workspaces/<ws>/datastores/<ds>/featuretypes/<ft>/templates/<templateX>.ftl
/workspaces/<ws>/coveragestores/<cs>/coverages/templates/<templateX>.ftl
/workspaces/<ws>/coveragestores/<cs>/coverages/<c>/templates/<templateX>.ftl

Given that the template names are well known the only writing operations I
foresee
are PUT and DELETE against the template resources (e.g., no POST against
templates).

As for what to return on the various resources, we have two choices:
a) not returning defaults or inherited values, but just mimick the on disk
structure
b) apply full defaults and inherited values, so if you ask for a certain
template and
    it is not there we'll go look in the parent dirs and eventually return
the default values

a) seems clearer to me from an editor point of view, since you always know
what's
really there, and besides that, once you DELETE a resource it really
disappears
instead of reverting to a default.

Also wondering if this change warrants a small proposal.

Opinions?

Cheers
Andrea


-- 
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to