/// <summary> /// Determine whether a dependent object of the Identity SIF Object already exists in the target system. /// </summary> /// <param name="dependentObjectName">SIF type of the dependent object.</param> /// <param name="objectKeyValue">SIF RefId for the dependent object.</param> /// <returns></returns> protected override bool DoesObjectExistInTargetSystem(string dependentObjectName, string objectKeyValue) { bool exists = false; SifRefIdMetadata sifRefIdMetadata = new SifRefIdMetadata(objectKeyValue); if ("StudentPersonal".Equals(dependentObjectName) && StudentPersonalSubscriber.receivedSifRefIds.Contains(sifRefIdMetadata.Value)) { if (log.IsDebugEnabled) log.Debug("StudentPersonal with a SifRefId of " + sifRefIdMetadata.Value + " exists in the target system."); exists = true; } return exists; }
public static ICollection <SifRefIdMetadata> ParseSifUniqueId(string sifUniqueId) { ICollection <SifRefIdMetadata> parsedValues = new Collection <SifRefIdMetadata>(); if (sifUniqueId != null) { foreach (string keyValue in sifUniqueId.Split('|')) { string[] values = keyValue.Split('='); if (values.Length == 2) { SifRefIdMetadata sifRefIdMetada = new SifRefIdMetadata() { XPath = values[0], Value = values[1] }; parsedValues.Add(sifRefIdMetada); } } } return(parsedValues); }