예제 #1
0
 protected void ExportContextItems(List <ContextItem> contextItems, string isoIDRef, string groupName, string prefix = "")
 {
     if (contextItems.Any())
     {
         List <string> errors = UniqueIDMapper.ExportContextItems(contextItems, isoIDRef, groupName, prefix);
         foreach (string error in errors)
         {
             TaskDataMapper.AddError(error);
         }
     }
 }
예제 #2
0
        protected List <ContextItem> ImportContextItems(string isoIDRef, string linkGroupDescription, ISOElement element = null)
        {
            //Read any data from the LinkList
            List <ContextItem> output = UniqueIDMapper.ImportContextItemsFromLinkList(isoIDRef, linkGroupDescription);

            if (element != null)
            {
                //Add any proprietary attributes on the element
                output.AddRange(UniqueIDMapper.ImportContextItemsFromProprietaryAttributes(element));
            }
            return(output);
        }
예제 #3
0
 protected bool ImportIDs(CompoundIdentifier id, string isoIDRef)
 {
     id.UniqueIds.AddRange(UniqueIDMapper.ImportUniqueIDs(isoIDRef));
     return(TaskDataMapper.InstanceIDMap.Add(id.ReferenceId, isoIDRef));
 }
예제 #4
0
 protected List <ContextItem> ImportContextItems(string isoIDRef, string linkGroupDescription)
 {
     return(UniqueIDMapper.ImportContextItems(isoIDRef, linkGroupDescription));
 }