private void initAdvancedModeFromLocalStorage(UnitVmModel model) { if (model.getIsAdvancedModeLocalStorageKey() == null) { return; } boolean isAdvancedMode = Boolean.parseBoolean(clientStorage.getLocalItem(model.getIsAdvancedModeLocalStorageKey())); model.getAdvancedMode().setEntity(isAdvancedMode); }
private void storeAdvancedModeToLocalStorage(UnitVmModel model) { if (model.getIsAdvancedModeLocalStorageKey() == null) { return; } clientStorage.setLocalItem( model.getIsAdvancedModeLocalStorageKey(), Boolean.toString(model.getAdvancedMode().getEntity())); }