예제 #1
0
 public static void PopulateAORAgAggregatorProperties(DERMS.AOR_AGAggregator cimAORAgAggregator, ResourceDescription rd)
 {
     if ((cimAORAgAggregator != null) && (rd != null))
     {
         DERMSConveter.PopulateIdentifiedObjectProperties(cimAORAgAggregator, rd);
     }
 }
예제 #2
0
        private void ImportAORAgAggregators()
        {
            SortedDictionary <string, object> cimAORAgAggregators = concreteModel.GetAllObjectsOfType("DERMS.AOR_AGAggregator");

            if (cimAORAgAggregators == null)
            {
                return;
            }

            foreach (KeyValuePair <string, object> cimAggregatorPair in cimAORAgAggregators)
            {
                DERMS.AOR_AGAggregator cimAOR_AGAggregator = cimAggregatorPair.Value as DERMS.AOR_AGAggregator;

                ResourceDescription rd = CreateAORAgAggregatorResourceDescription(cimAOR_AGAggregator);
                if (rd != null)
                {
                    delta.AddDeltaOperation(DeltaOpType.Insert, rd, true);
                    report.Report.Append("AOR_AGAggregator ID = ").Append(cimAOR_AGAggregator.ID).Append(" SUCCESSFULLY converted to GID = ").AppendLine(rd.Id.ToString());
                }
                else
                {
                    report.Report.Append("AOR_AGAggregator ID = ").Append(cimAOR_AGAggregator.ID).AppendLine(" FAILED to be converted");
                }
            }
            report.Report.AppendLine();
        }
예제 #3
0
        private ResourceDescription CreateAORAgAggregatorResourceDescription(DERMS.AOR_AGAggregator cimAOR_AGAggregator)
        {
            ResourceDescription rd = null;

            if (cimAOR_AGAggregator != null)
            {
                long gid = ModelCodeHelper.CreateGlobalId(0, (short)DMSType.AOR_AGAGGREGATOR, importHelper.CheckOutIndexForDMSType(DMSType.AOR_AGAGGREGATOR));
                rd = new ResourceDescription(gid);
                importHelper.DefineIDMapping(cimAOR_AGAggregator.ID, gid);

                ////populate ResourceDescription
                DERMSConveter.PopulateAORAgAggregatorProperties(cimAOR_AGAggregator, rd);
            }
            return(rd);
        }