public override DirectoryRequest[] GetUpdate() { var result = base.GetUpdate(); ModifyRequest mr = (ModifyRequest)result[result.Length - 1]; SetAttribute(mr.Modifications, BIZRULE, BizRule); SetAttribute(mr.Modifications, BIZRULELANGUAGE, BizRuleLanguage.ToString()); SetAttribute(mr.Modifications, BIZRULEPATH, BizRuleImportedPath); Changes.Clear(); return(result); }
protected override System.DirectoryServices.Protocols.AddRequest CreateNewThis() { AddRequest ar = base.CreateNewThis(); if (!string.IsNullOrEmpty(BizRule)) { ar.Attributes.Add(CreateAttribute(BIZRULE, BizRule)); ar.Attributes.Add(CreateAttribute(BIZRULELANGUAGE, BizRuleLanguage.ToString())); ar.Attributes.Add(CreateAttribute(BIZRULEPATH, BizRuleImportedPath)); } return(ar); }
public override XmlElement ToXml() { XmlElement e = base.ToXml(); SetAttribute(e, NAME, Name); SetAttribute(e, DESCRIPTION, Description); SetAttribute(e, BIZRULEPATH, BizRuleImportedPath); SetElement(e, BIZRULELANGUAGE, BizRuleLanguage == AzAlternative.BizRuleLanguage.Undefined ? null : BizRuleLanguage.ToString()); SetElement(e, BIZRULE, BizRule); return(e); }
public override XmlElement ToXml(XmlElement parent) { XmlElement e = parent.OwnerDocument.CreateElement(ELEMENTNAME); SetAttribute(e, GUID, Key); SetAttribute(e, NAME, Name); SetAttribute(e, DESCRIPTION, Description); SetAttribute(e, BIZRULEPATH, BizRuleImportedPath); SetElement(e, BIZRULELANGUAGE, BizRuleLanguage == AzAlternative.BizRuleLanguage.Undefined ? null : BizRuleLanguage.ToString()); SetElement(e, BIZRULE, BizRule); parent.AppendChild(e); return(e); }