Revision 6c7e59f3
Added by Katja Luther over 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/databaseAdmin/preferencePage/SpecimenAdminPreferences.java | ||
---|---|---|
132 | 132 |
if (isShowCollectingAreaInGeneralSectionPref != null){ |
133 | 133 |
this.isShowCollectingAreaInGeneralSection = Boolean.valueOf(isShowCollectingAreaInGeneralSectionPref.getValue()); |
134 | 134 |
} |
135 |
|
|
135 | 136 |
key = CdmPreference.NewKey(PreferenceSubject.NewDatabaseInstance(), PreferencePredicate.DeterminationOnlyForFieldUnits); |
136 | 137 |
CdmPreference isDeterminationOnlyForFieldUnitsPref = service.find(key); |
137 | 138 |
if (isDeterminationOnlyForFieldUnitsPref != null){ |
... | ... | |
160 | 161 |
|
161 | 162 |
@Override |
162 | 163 |
public boolean performOk() { |
164 |
ICdmRepository controller = CdmStore.getCurrentApplicationConfiguration(); |
|
165 |
if (controller != null){ |
|
166 |
IPreferenceService service = controller.getPreferenceService(); |
|
167 |
|
|
168 |
CdmPreference pref = CdmPreference.NewDatabaseInstance(PreferencePredicate.ShowCollectingAreasInGeneralSection, Boolean.toString(this.isShowCollectingAreaInGeneralSection)); |
|
169 |
pref.setAllowOverride(true); |
|
170 |
service.set(pref); |
|
171 |
|
|
172 |
pref = CdmPreference.NewDatabaseInstance(PreferencePredicate.DeterminationOnlyForFieldUnits, Boolean.toString(this.isDeterminationOnlyForFieldUnits)); |
|
173 |
pref.setAllowOverride(true); |
|
174 |
service.set(pref); |
|
163 | 175 |
|
176 |
pref = CdmPreference.NewDatabaseInstance(PreferencePredicate.ShowTaxonAssociations, Boolean.toString(this.isShowTaxonAssociation)); |
|
177 |
pref.setAllowOverride(true); |
|
178 |
service.set(pref); |
|
164 | 179 |
|
180 |
pref = CdmPreference.NewDatabaseInstance(PreferencePredicate.ShowLifeForm, Boolean.toString(this.isShowLifeForm)); |
|
181 |
pref.setAllowOverride(true); |
|
182 |
service.set(pref); |
|
183 |
|
|
184 |
|
|
185 |
} |
|
165 | 186 |
return true; |
166 | 187 |
} |
167 | 188 |
|
Also available in: Unified diff
specimen admin prefs need to be saved