Exemplo n.º 1
0
        public ICsiRevisionedObject ChangeItemByIndex(int index)
        {
            ICsiRevisionedObject revisionedObject = (ICsiRevisionedObject) new CsiRevisionedObject(this.GetOwnerDocument(), "__listItem", (ICsiXmlElement)this);

            revisionedObject.SetAttribute("__listItemAction", "change");
            CsiXmlHelper.FindCreateSetValue((ICsiXmlElement)revisionedObject, "__index", XmlConvert.ToString(index));
            return(revisionedObject);
        }
Exemplo n.º 2
0
        public ICsiRevisionedObject AppendItem(string itemName, string revision, bool useROR)
        {
            ICsiRevisionedObject revisionedObject = (ICsiRevisionedObject) new CsiRevisionedObject(this.GetOwnerDocument(), "__listItem", (ICsiXmlElement)this);

            revisionedObject.SetAttribute("__listItemAction", "add");
            revisionedObject.SetRef(itemName, revision, useROR);
            return(revisionedObject);
        }
Exemplo n.º 3
0
        public void DeleteItemByRef(string itemName, string revision, bool useROR)
        {
            ICsiRevisionedObject revisionedObject = (ICsiRevisionedObject) new CsiRevisionedObject(this.GetOwnerDocument(), "__listItem", (ICsiXmlElement)this);

            revisionedObject.SetAttribute("__listItemAction", "delete");
            CsiXmlHelper.FindCreateSetValue2((ICsiXmlElement)revisionedObject, "__key", "__name", itemName, true);
            CsiXmlHelper.FindCreateSetValue2((ICsiXmlElement)revisionedObject, "__key", "__rev", revision, true);
            CsiXmlHelper.FindCreateSetValue2((ICsiXmlElement)revisionedObject, "__key", "__useROR", useROR ? "true" : "false");
        }