Project

General

Profile

« Previous | Next » 

Revision 198c9340

Added by Katja Luther almost 5 years ago

ref #8256: add table of all status preferences in preference page

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/PreferencesUtil.java
1723 1723
    public static void setPreferencesToDB(List<CdmPreference> preferences) {
1724 1724

  
1725 1725
        ICdmRepository controller;
1726
        try{
1726
        //try{
1727 1727
            if(CdmStore.isActive()){
1728 1728
                controller = CdmStore.getCurrentApplicationConfiguration();
1729 1729
                for (CdmPreference preference: preferences){
1730 1730
                    if (preference.getValue() == null && preference.isAllowOverride()){
1731 1731
                        controller.getPreferenceService().remove(preference.getKey());
1732

  
1732 1733
                    }else{
1733 1734
                        controller.getPreferenceService().set(preference);
1735

  
1734 1736
                    }
1735
                    CdmPreferenceCache.instance().put(preference);
1737

  
1736 1738
                }
1739
                CdmPreferenceCache.instance().getAllTaxEditorDBPreferences();
1740

  
1737 1741
            }
1738
        }catch(Exception e){
1742
        /*}catch(Exception e){
1739 1743
            e.printStackTrace();
1740
        }
1744
        }*/
1741 1745
    }
1742 1746

  
1743 1747
    /**

Also available in: Unified diff