public Set<String> getRecipients() { return entity.getRecipients(); }
@Override @NoProxy public boolean removeRecipient(final String val) { Set<String> rs = getRecipients(); if (rs == null) { return false; } return rs.remove(val); }
public Set<String> getMasterCollection() { return getTarget().getRecipients(); } };
@Override @NoProxy public void addRecipient(final String val) { Set<String> rs = getRecipients(); if (rs == null) { rs = new TreeSet<>(); setRecipients(rs); } if (!rs.contains(val)) { rs.add(val); } }
@Override @NoProxy @NoDump public int getNumRecipients() { Set<String> rs = getRecipients(); if (rs == null) { return 0; } return rs.size(); }
public Set<String> getRecipients() { Set<String> c = super.getRecipients(); if (c == null) { c = new OverrideSet<String>(BwEvent.ProxiedFieldIndex.pfiRecipients, ref, this) { public void setOverrideCollection(Set<String> val) { ref.setRecipients(val); setChangeFlag(true); } public Set<String> getOverrideCollection() { return ref.getRecipients(); } public void copyIntoOverrideCollection() { Set<String> mstr = getMasterCollection(); if (mstr != null) { Set<String> over = getOverrideCollection(); over.addAll(mstr); } } public Set<String> getMasterCollection() { return getTarget().getRecipients(); } }; super.setRecipients(c); } return c; }
public void setRecipients(Set<String> val) { if (val instanceof OverrideSet) { val = ((OverrideSet<String>)val).getOverrideCollection(); } int res = doSet(ProxiedFieldIndex.pfiRecipients, false, getTarget().getRecipients(), ref.getRecipients(), val); if (res == setRefNull) { ref.setRecipients(null); } if (res == setRefVal) { ref.setRecipients(val); } }
if (ev.getRecipients() != null) { ev.getRecipients().clear();
ts.append("recipients", getRecipients());