public virtual void Process(GetParentIDArgs args)
        {
            Assert.ArgumentNotNull(args, "args");
            Assert.ArgumentNotNull(args.ItemDefinition, "args.ItemDefinition");
            Assert.ArgumentNotNull(args.Context, "args.Context");

            var itemId = args.ItemDefinition.ID;

            if (ContactFacetIdFactory.GetContactFacetIDProvider().IsFacetItem(itemId))
            {
                args.ParentId = ContactFacetIdFactory.GetContactFacetIDProvider().GetFacetParentId(itemId);
            }
            else if (ContactFacetIdFactory.GetContactFacetIDProvider().IsFacetMemberItem(itemId))
            {
                args.ParentId = ContactFacetIdFactory.GetContactFacetIDProvider().GetFacetMemberParentId(itemId);
            }
            else if (ContactFacetIdFactory.GetContactFacetIDProvider().IsFacetMemberValueItem(itemId))
            {
                args.ParentId = ContactFacetIdFactory.GetContactFacetIDProvider().GetFacetMemberValueParentId(itemId);
            }
            else
            {
                base.Process(args);
            }
        }
        public virtual void Process(GetParentIDArgs args)
        {
            Assert.ArgumentNotNull(args, "args");
            Assert.ArgumentNotNull(args.ItemDefinition, "args.ItemDefinition");
            Assert.ArgumentNotNull(args.Context, "args.Context");

            var itemId = args.ItemDefinition.ID;

            if (IDTableHelper.IsFacetItem(itemId))
            {
                args.ParentId = IDTableHelper.GetFacetParentId(itemId);
            }
            else if (IDTableHelper.IsFacetMemberItem(itemId))
            {
                args.ParentId = IDTableHelper.GetFacetMemberParentId(itemId);
            }
            else if (IDTableHelper.IsFacetMemberValueItem(itemId))
            {
                args.ParentId = IDTableHelper.GetFacetMemberValueParentId(itemId);
            }
            else
            {
                base.Process(args);
            }
        }
Example #3
0
        public virtual void Process(GetParentIDArgs args)
        {
            Assert.ArgumentNotNull(args, "args");
            Assert.ArgumentNotNull(args.ItemDefinition, "args.ItemDefinition");
            Assert.ArgumentNotNull(args.Context, "args.Context");

            var itemId = args.ItemDefinition.ID;

            if (IDTableHelper.IsFacetItem(itemId))
            {
                args.ParentId = IDTableHelper.GetFacetParentId(itemId);
            }
            else if (IDTableHelper.IsFacetMemberItem(itemId))
            {
                args.ParentId = IDTableHelper.GetFacetMemberParentId(itemId);
            }
            else if (IDTableHelper.IsFacetMemberValueItem(itemId))
            {
                args.ParentId = IDTableHelper.GetFacetMemberValueParentId(itemId);
            }
            else
            {
                base.Process(args);
            }
        }
 public virtual void Process(GetParentIDArgs args)
 {
     Assert.ArgumentNotNull(args, "args");
     Assert.ArgumentNotNull(args.ItemDefinition, "args.ItemDefinition");
     var args2 = new IsHandledArgs(args.ItemDefinition.ID, args.Context);
     CorePipeline.Run("contactFacetDataProvider.isHandled", args2);
     if (!args2.IsHandled)
     {
         args.AbortPipeline();
     }
 }
        public virtual void Process(GetParentIDArgs args)
        {
            Assert.ArgumentNotNull(args, "args");
            Assert.ArgumentNotNull(args.ItemDefinition, "args.ItemDefinition");
            var args2 = new IsHandledArgs(args.ItemDefinition.ID, args.Context);

            CorePipeline.Run("contactFacetDataProvider.isHandled", args2);
            if (!args2.IsHandled)
            {
                args.AbortPipeline();
            }
        }
 public virtual void Process(GetParentIDArgs args)
 {
     Assert.ArgumentNotNull(args, "args");
     Assert.ArgumentNotNull(args.ItemDefinition, "args.ItemDefinition");
     Assert.ArgumentNotNull(args.Context, "args.Context");
     if (! ID.IsNullOrEmpty(args.ParentId))
     {
         return;
     }
     var itemId = args.ItemDefinition.ID;
     if (! ParentIds.ContainsKey(itemId))
     {
         return;
     }
     args.ParentId = ParentIds[itemId];
 }
Example #7
0
        public virtual void Process(GetParentIDArgs args)
        {
            Assert.ArgumentNotNull(args, "args");
            Assert.ArgumentNotNull(args.ItemDefinition, "args.ItemDefinition");
            Assert.ArgumentNotNull(args.Context, "args.Context");
            if (!ID.IsNullOrEmpty(args.ParentId))
            {
                return;
            }
            var itemId = args.ItemDefinition.ID;

            if (!ParentIds.ContainsKey(itemId))
            {
                return;
            }
            args.ParentId = ParentIds[itemId];
        }
 public override ID GetParentID(ItemDefinition itemDefinition, CallContext context)
 {
     var args = new GetParentIDArgs(itemDefinition, context);
     CorePipeline.Run("contactFacetDataProvider.getParentID", args);
     return args.ParentId;
 }