@@ -0,0 +1,1321 @@
+package nl.opengeogroep.safetymaps.server.admin.stripes;%0A%0Aimport java.io.StringReader;%0Aimport net.sourceforge.stripes.action.*;%0Aimport net.sourceforge.stripes.validation.Validate;%0Aimport nl.opengeogroep.safetymaps.server.db.Cfg;%0A%0A/**%0A *%0A * @author Matthijs Laan%0A */%0A@StrictBinding%0A@UrlBinding(%22/action/api/edit%22)%0Apublic class EditActionBean  implements ActionBean %7B%0A    private ActionBeanContext context;%0A%0A    @Validate%0A    private String features;%0A%0A    @Override%0A    public ActionBeanContext getContext() %7B%0A        return context;%0A    %7D%0A%0A    @Override%0A    public void setContext(ActionBeanContext context) %7B%0A        this.context = context;%0A    %7D%0A%0A    public String getFeatures() %7B%0A        return features;%0A    %7D%0A%0A    public void setFeatures(String features) %7B%0A        this.features = features;%0A    %7D%0A%0A    @DefaultHandler%0A    public Resolution load() throws Exception %7B%0A        String edit = Cfg.getSetting(%22edit%22);%0A        if(edit == null) %7B%0A            edit = %22%7B%5C%22type%5C%22:%5C%22FeatureCollection%5C%22,%5C%22features%5C%22:%5B%5D%7D%22;%0A        %7D%0A        return new StreamingResolution(%22application/json%22, new StringReader(edit));%0A    %7D%0A%0A    public Resolution save() throws Exception %7B%0A        Cfg.updateSetting(%22edit%22, features, null);%0A        return new StreamingResolution(%22application/json%22, new StringReader(%22%7B%5C%22result%5C%22:true%7D%22));%0A    %7D%0A%7D%0A

add simple global saving of edits