public void updateExistingFolderTimes(Metadata m) { for (OMElement aele : m.getAssociations()) { String sourceId = m.getAssocSource(aele); if (!m.contains(sourceId)) { // folder not in submission if (new SubmissionStructure(m, mc).is_fol_to_de_hasmember(aele)) { // folder is in registry try { Fol f = delta.folCollection.getById(sourceId); // will look in delta and main table delta.labelFolderUpdated(f, new Hl7Date().now()); } catch (Exception e) { er.err(XdsErrorCode.Code.XDSRegistryError, "Internal Registry error - folder known to exist cannot be accessed", this, null); } } } } }
void evalHasMember(ErrorRecorder er, OMElement assoc) { String source = m.getAssocSource(assoc); String target = m.getAssocTarget(assoc); String type = m.getAssocType(assoc); if (source == null || target == null || type == null) return; if (is_ss_to_de_hasmember(assoc)) { er.detail(assocDescription(assoc) + ": is a SubmissionSet to DocmentEntry HasMember association"); } else if (is_ss_to_existing_de_hasmember(assoc)) { er.detail(assocDescription(assoc) + ": is a SubmissionSet to existing DocmentEntry HasMember (ByReference) association"); } else if (is_ss_to_folder_hasmember(assoc)) { er.detail(assocDescription(assoc) + ": is a SubmissionSet to Folder HasMember association"); } else if (is_ss_to_folder_hasmember_hasmember(assoc)) { er.detail(assocDescription(assoc) + ": is a SubmissionSet to Folder-HasMember HasMember association (adds existing DocumentEntry to existing Folder)"); } else if (is_fol_to_de_hasmember(assoc)) { er.detail(assocDescription(assoc) + ": is a Folder to DocumentEntry HasMember association"); } else { er.err(XdsErrorCode.Code.XDSRegistryMetadataError, assocDescription(assoc) + ": do not understand this HasMember association. " + "sourceObject is " + objectDescription(source) + " and targetObject is " + objectDescription(target), this, assocsRef); hasmember_error = true; } }