Profiles.Edit.Utilities.DataIO.UpdateLiteral C# (CSharp) Méthode

UpdateLiteral() public méthode

public UpdateLiteral ( Int64 subjectid, Int64 predicateid, Int64 oldobjectid, Int64 newobjectid, XmlDocument PropertyListXML ) : bool
subjectid Int64
predicateid Int64
oldobjectid Int64
newobjectid Int64
PropertyListXML XmlDocument
Résultat bool
        public bool UpdateLiteral(Int64 subjectid, Int64 predicateid, Int64 oldobjectid, Int64 newobjectid, XmlDocument PropertyListXML)
        {
            ActivityLog(PropertyListXML, subjectid);
            SessionManagement sm = new SessionManagement();

            bool error = false;

            try
            {
                StoreTripleRequest str = new StoreTripleRequest();
                str.Subject = new StoreTripleParam();
                str.Subject.Value = subjectid;
                str.Subject.ParamOrdinal = 0;

                str.Predicate = new StoreTripleParam();
                str.Predicate.Value = predicateid;
                str.Predicate.ParamOrdinal = 1;

                str.Object = new StoreTripleParam();
                str.Object.Value = newobjectid;
                str.Object.ParamOrdinal = 2;

                str.OldObject = new StoreTripleParam();
                str.OldObject.Value = oldobjectid;
                str.OldObject.ParamOrdinal = 3;

                error = this.GetStoreTriple(str);

            }
            catch (Exception e)
            {
                Framework.Utilities.DebugLogging.Log(e.Message + e.StackTrace);
                throw new Exception(e.Message);
            }

            return error;
        }