public void setStoresModel(DualListModel<StoreData> storesModel) { this.storesModel = storesModel; log.debug("target size : " + storesModel.getTarget().size()); List<String> ids = new ArrayList<String>(); for (StoreData data : storesModel.getTarget()) ids.add(data.getUuid()); if (ids.size() > 0) getUserForm().getUser().setStoreIds(ids); }
public void setSelectedUserStores(DualListModel<StoreData> storesModel) { getUserForm().setSelectedUserStoresModel(storesModel); List<String> ids = new ArrayList<String>(); for (StoreData data : getUserForm().getSelectedUserStoresModel().getTarget()) ids.add(data.getUuid()); if (ids.size() > 0) getUserForm().getSelectedUser().setStoreIds(ids); }