private Attributes storeTo(StoreDuplicate sd, BasicAttributes attrs) { attrs.put("objectclass", "dcmStoreDuplicate"); storeNotNull(attrs, "dcmStoreDuplicateCondition", sd.getCondition()); storeNotNull(attrs, "dcmStoreDuplicateAction", sd.getAction()); return attrs; }
private StoreDuplicate findMatching(List<StoreDuplicate> sds, StoreDuplicate sd) { for (StoreDuplicate other : sds) if (other.getCondition() == sd.getCondition()) return other; return null; }
private String dnOf(StoreDuplicate sd, String aeDN) { StringBuilder sb = new StringBuilder(); sb.append("dcmStoreDuplicateCondition=").append(sd.getCondition()); sb.append(',').append(aeDN); return sb.toString(); }