public void addOrUpdateRightholder(PartySummaryBean rightholder) { if (rightholder != null && rightHolderList != null) { if (rightHolderList.contains(rightholder)) { rightHolderList.set(rightHolderList.indexOf(rightholder), rightholder); } else { rightHolderList.addAsNew(rightholder); } } }
@NoDuplicates(message = ClientMessage.CHECK_NODUPLI_RIGHTHOLDERLIST, payload = Localized.class) @Size(min = 1, message = ClientMessage.CHECK_SIZE_FILTERRIGHTHOLDER, payload = Localized.class) public ObservableList<PartySummaryBean> getFilteredRightHolderList() { return rightHolderList.getFilteredList(); }
public void removeSelectedRightHolder() { if (selectedRightHolder != null && rightHolderList != null) { rightHolderList.safeRemove(selectedRightHolder, EntityAction.DELETE); } }