HSAdmin Backend Domains, E-Mail, Datenbanken
Purodha
2013-02-20 5ef8615a54803216a470ee3ce66b9aeeb47d7036
Parameter table creation restrictions (READONLY, WRITEONCE) better
distinguish between create/insert, and update.
3 files modified
8 ■■■■ changed files
hsarweb/src/de/hsadmin/web/AbstractModule.java 2 ●●● patch | view | raw | blame | history
hsarweb/src/de/hsadmin/web/vaadin/GenericForm.java 4 ●●●● patch | view | raw | blame | history
hsarweb/src/de/hsadmin/web/vaadin/TableComponentFactory.java 2 ●●● patch | view | raw | blame | history
hsarweb/src/de/hsadmin/web/AbstractModule.java
@@ -83,7 +83,7 @@
                                application.getMainWindow().removeWindow(childWindow);
                                try {
                                    Map<String, XmlrpcProperty> map = new HashMap<String, XmlrpcProperty>();
                                    genericForm.transferToHash(map, form);
                                    genericForm.transferToHash(map, form,false);
                                    ((InsertAble) thisModule).insertRow(map);
                                    componentFactory.loadData();
                                } catch (HsarwebException e) {
hsarweb/src/de/hsadmin/web/vaadin/GenericForm.java
@@ -141,7 +141,7 @@
        return idKey;
    }
    public void transferToHash(Map<String, XmlrpcProperty> map, Form form) throws HsarwebException {
    public void transferToHash(Map<String, XmlrpcProperty> map, Form form, boolean update) throws HsarwebException {
        Iterator<Component> iterator = form.getLayout().getComponentIterator();
        Object formData = form.getData();
        if (formData != null && formData instanceof Long) {
@@ -154,7 +154,7 @@
                String propName = (String) data;
                PropertyConfig property = module.getModuleConfig().getProperty(propName);
                PropertyFieldFactory fieldFactory = property.getPropFieldFactory();
                if (!fieldFactory.isReadOnly() && !fieldFactory.isWriteOnce()) {
                if (!fieldFactory.isReadOnly() && (!update || !fieldFactory.isWriteOnce())) {
                    map.put(propName, property.getPropFieldFactory().getValue(property, component));
                }
            }
hsarweb/src/de/hsadmin/web/vaadin/TableComponentFactory.java
@@ -231,7 +231,7 @@
                        application.getMainWindow().removeWindow(childWindow);
                        try {
                            Map<String, XmlrpcProperty> map = new HashMap<String, XmlrpcProperty>();
                            genericForm.transferToHash(map, form);
                            genericForm.transferToHash(map, form,true);
                            ((UpdateAble) module).updateRow(map);
                            loadData();
                        } catch (HsarwebException e) {