public override void Load(SearchResultEntry entry) { ChangeTrackingDisabled = true; base.Load(entry); switch (GetAttribute(entry.Attributes, GROUPTYPE)) { case "32": GroupType = AzAlternative.GroupType.LdapQuery; break; case "16": GroupType = AzAlternative.GroupType.Basic; break; default: throw new AzException("Unknown or unsupported group type"); } Members = new Collections.MemberCollection(Key); Exclusions = new Collections.MemberCollection(Key, true); Groups = new Collections.ApplicationGroupCollection(GetLinkedGroups(entry, false), true); ChangeTrackingDisabled = false; }
protected override void LoadInternal(XmlElement element) { base.LoadInternal(element); IsGlobalGroup = (element.ParentNode.Name == "AzAdminManager"); switch (GetAttribute(element, GROUPTYPE)) { case "LdapQuery": GroupType = AzAlternative.GroupType.LdapQuery; XmlElement e = element[LDAPQUERY]; if (e != null) { LdapQuery = e.InnerXml; } break; case "Basic": GroupType = AzAlternative.GroupType.Basic; break; default: throw new AzException("Unknown group type during load."); } Groups = new Collections.ApplicationGroupCollection(GetLinks(element, GROUP), true); Exclusions = new Collections.MemberCollection(Key, true); Members = new Collections.MemberCollection(Key); }
protected override void LoadInternal(XmlElement element) { base.LoadInternal(element); _DefinitionId = element[DEFINITION].InnerXml; Groups = new Collections.ApplicationGroupCollection(GetLinks(element, GROUP), true); Members = new Collections.MemberCollection(Key); }