public void postChanges(CswNbtNode Node)
        {
            if (null != Node.ObjClass && false == SkipEvents)
            {
                Node.ObjClass.beforeWriteNode(IsCopy, OverrideUniqueValidation, Creating);
            }

            Node.SessionId = _CswNbtResources.Session.SessionId;

            Node.requestWrite(ForceUpdate, IsCopy, OverrideUniqueValidation, Creating, AllowAuditing, SkipEvents);

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

            Node.setModificationState(CswEnumNbtNodeModificationState.Posted);
        }
Beispiel #2
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();
        }
        public void postChanges(CswNbtNode Node)
        {
            if (CswEnumNbtNodeModificationState.Modified == Node.ModificationState || ForceUpdate)
            {
                if (null != Node.ObjClass && false == SkipEvents)
                {
                    Node.ObjClass.beforeWriteNode(IsCopy, OverrideUniqueValidation, Creating);
                }

                Node.requestWrite(ForceUpdate, IsCopy, OverrideUniqueValidation, Creating, AllowAuditing && (false == Node.IsTemp), SkipEvents);

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

                Node.setModificationState(CswEnumNbtNodeModificationState.Posted);

                //if( AllowAuditing && ( false == Node.IsTemp ) )
                //{
                //    Node.Audit();
                //}
            }
        }