setAnnotationLinks((java.util.Set<ome.model.annotations.ExperimenterGroupAnnotationLink>)value); } else if (field.equals(DESCRIPTION)) { setDescription((java.lang.String)value); } else if (field.equals(DETAILS)) { setDetails((ome.model.internal.Details)value);
orig.setDescription(group.getDescription());
@Override public Object mapFromContext(Object obj) { DirContextAdapter ctx = (DirContextAdapter) obj; ExperimenterGroup group = new ExperimenterGroup(); group.setName(get("name", ctx)); group.setDescription(get("description", ctx)); group.setLdap(true); group.putAt(LDAP_DN, ctx.getNameInNamespace()); if (attribute != null) { group.putAt(LDAP_ATTR, ctx.getAttributeSortedStringSet(attribute)); } group.putAt(LDAP_PROPS, new AttributeSet(ctx)); return group; }
protected ExperimenterGroup copyGroup(ExperimenterGroup g) { if (g.getName() == null) { throw new ValidationException("Group name may not be null."); } ExperimenterGroup copy = new ExperimenterGroup(); copy.setDescription(g.getDescription()); copy.setName(g.getName()); copy.setLdap(g.getLdap()); copy.setConfig(g.getConfig()); copy.getDetails().copy(sec.newTransientDetails(g)); copy.getDetails().setPermissions(g.getDetails().getPermissions()); // TODO see shallow copy comment on copy user return copy; }