public static List <AdminType> GetAllAdminTypes(Innovator.Client.IOM.Innovator inn) { List <AdminType> adminTypes = new List <AdminType>(); string amlQuery = ArasMetaDataResources.GetArasMetaDataAml(ArasUtils.GetMajorVersion(inn)); Item result = inn.applyAML(amlQuery); if (!result.isError()) { int i = 0; foreach (System.Xml.XmlNode itemNode in result.nodeList) { Item adminItemType = result.getItemByIndex(i); AdminType adminType = new AdminType(inn, adminItemType); adminTypes.Add(adminType); i++; } } else { throw new ApplicationException(result.getErrorString()); } return(adminTypes); }
private string GetMetaAml() { return(ArasMetaDataResources.GetArasMetaDataAml(ArasUtils.GetMajorVersion(Inn))); }