Beispiel #1
0
        public void postChanges(CswNbtNode Node)
        {
            Node.removeTemp();

            if (null != Node.ObjClass && false == SkipEvents)
            {
                Node.ObjClass.beforePromoteNode(OverrideUniqueValidation: OverrideUniqueValidation);
                Node.ObjClass.beforeWriteNode(IsCopy, OverrideUniqueValidation, Creating);
            }

            // AllowAuditing should be false here, so that we record the audit event as an INSERT instead of an UPDATE
            Node.requestWrite(ForceUpdate, IsCopy, OverrideUniqueValidation, Creating, AllowAuditing, SkipEvents);

            if (null != Node.ObjClass && false == SkipEvents)
            {
                Node.ObjClass.afterPromoteNode();
                Node.ObjClass.afterWriteNode(OverrideMailReportEvents);
            }

            Node.setModificationState(CswEnumNbtNodeModificationState.Posted);

            // This audit will record as an INSERT
            Node.Audit();
        }