/** * Main constructor. */ public ExperimenterGroup (Long id, boolean loaded) { setId(id); if (loaded) { getDetails().setContext(this); } else { if (this.id == null) { throw new ApiUsageException("Id cannot be null for a proxy"); } unload(); } }
@Override public boolean acceptFilter(ome.util.Filter __filter){ try { this.id = (Long) __filter.filter(ID, this.id); this.version = (Integer) __filter.filter(VERSION, this.version); this.name = (java.lang.String) __filter.filter(NAME, this.name ); this.ldap = (java.lang.Boolean) __filter.filter(LDAP, this.ldap ); this.groupExperimenterMap = (java.util.Set<ome.model.meta.GroupExperimenterMap>) __filter.filter(GROUPEXPERIMENTERMAP, this.groupExperimenterMap ); this.config = (java.util.List<ome.model.internal.NamedValue>) __filter.filter(CONFIG, this.config ); this.annotationLinksCountPerOwner = (java.util.Map<Long, Long>) __filter.filter(ANNOTATIONLINKSCOUNTPEROWNER, this.annotationLinksCountPerOwner ); this.annotationLinks = (java.util.Set<ome.model.annotations.ExperimenterGroupAnnotationLink>) __filter.filter(ANNOTATIONLINKS, this.annotationLinks ); this.description = (java.lang.String) __filter.filter(DESCRIPTION, this.description ); this.details = (ome.model.internal.Details) __filter.filter(DETAILS, this.details ); return true; } catch (RuntimeException re) { // ticket:1183 - Caused by Utils.trueClass(Annotation.class) if (re.getCause() instanceof InstantiationException) { this.unload(); return true; } else { throw re; } } }