/// <summary>
        ///     Checks for a circular reference in the base layout chain
        /// </summary>
        /// <param name="args">the pipeline arguments</param>
        public void Process(SaveBaseLayoutArgs args)
        {
            Assert.ArgumentNotNull(args, "args");
            if (args.NewBaseLayoutItem == null) return;

            if (_validator.CreatesCircularBaseLayoutReference(args.Item, args.NewBaseLayoutItem))
            {
                args.Successful = false;
                args.AddMessage("Selecting this base layout would create a circular reference in the base layout chain.");
                args.AbortPipeline();
            }
        }
        /// <summary>
        ///     Checks for a versioning conflict with the base layout.
        ///     It is not allowed to have an item apply a shared layout delta over a
        ///     versioned layout value on a base layout.
        /// </summary>
        /// <param name="args">the pipeline arguments</param>
        public void Process(SaveBaseLayoutArgs args)
        {
            Assert.ArgumentNotNull(args, "args");
            if (args.NewBaseLayoutItem == null) return;

            if (_validator.CreatesVersioningConflict(args.Item, args.NewBaseLayoutItem))
            {
                args.Successful = false;
                args.AddMessage(
                    "Selecting this base layout would create apply a shared layout delta over a versioned layout value.");
                args.AbortPipeline();
            }
        }
Beispiel #3
0
        /// <summary>
        ///     Checks for a circular reference in the base layout chain
        /// </summary>
        /// <param name="args">the pipeline arguments</param>
        public void Process(SaveBaseLayoutArgs args)
        {
            Assert.ArgumentNotNull(args, "args");
            if (args.NewBaseLayoutItem == null)
            {
                return;
            }

            if (_validator.CreatesCircularBaseLayoutReference(args.Item, args.NewBaseLayoutItem))
            {
                args.Successful = false;
                args.AddMessage("Selecting this base layout would create a circular reference in the base layout chain.");
                args.AbortPipeline();
            }
        }
        /// <summary>
        ///     Checks for a versioning conflict with the base layout.
        ///     It is not allowed to have an item apply a shared layout delta over a
        ///     versioned layout value on a base layout.
        /// </summary>
        /// <param name="args">the pipeline arguments</param>
        public void Process(SaveBaseLayoutArgs args)
        {
            Assert.ArgumentNotNull(args, "args");
            if (args.NewBaseLayoutItem == null)
            {
                return;
            }

            if (_validator.CreatesVersioningConflict(args.Item, args.NewBaseLayoutItem))
            {
                args.Successful = false;
                args.AddMessage(
                    "Selecting this base layout would create apply a shared layout delta over a versioned layout value.");
                args.AbortPipeline();
            }
        }