public virtual void Process(GetChildIDsArgs args)
 {
     Assert.ArgumentNotNull(args, "args");
     Assert.ArgumentNotNull(args.ItemDefinition, "args.ItemDefinition");
     Assert.ArgumentNotNull(args.Context, "args.Context");
     //TODO: finish
     var ids = args.IDList;
     var itemId = args.ItemDefinition.ID;
     if (itemId == Sitecore.Strategy.Contacts.DataProviders.ItemIDs.SettingsRoot)
     {
         ids.Add(Sitecore.Strategy.Contacts.DataProviders.ItemIDs.ContactsFolder);
     }
     else if (itemId == Sitecore.Strategy.Contacts.DataProviders.ItemIDs.ContactsFolder)
     {
         ids.Add(Sitecore.Strategy.Contacts.DataProviders.ItemIDs.ContactFacetsFolder);
     }
     else if (itemId == Sitecore.Strategy.Contacts.DataProviders.ItemIDs.ContactFacetsFolder)
     {
         AddChildIDsForContactFacetsRootItem(ids, args.ItemDefinition, args.Context);
     }
     else if (IDTableHelper.IsFacetItem(itemId))
     {
         AddChildIDsForContactFacetItem(ids, args.ItemDefinition, args.Context);
     }
     else if (IDTableHelper.IsFacetMemberItem(itemId))
     {
         AddChildIDsForContactFacetMemberItem(ids, args.ItemDefinition, args.Context);
     }
 }
Beispiel #2
0
        public virtual void Process(GetChildIDsArgs args)
        {
            Assert.ArgumentNotNull(args, "args");
            Assert.ArgumentNotNull(args.ItemDefinition, "args.ItemDefinition");
            Assert.ArgumentNotNull(args.Context, "args.Context");
            //TODO: finish
            var ids    = args.IDList;
            var itemId = args.ItemDefinition.ID;

            if (itemId == Sitecore.Strategy.Contacts.DataProviders.ItemIDs.SettingsRoot)
            {
                ids.Add(Sitecore.Strategy.Contacts.DataProviders.ItemIDs.ContactsFolder);
            }
            else if (itemId == Sitecore.Strategy.Contacts.DataProviders.ItemIDs.ContactsFolder)
            {
                ids.Add(Sitecore.Strategy.Contacts.DataProviders.ItemIDs.ContactFacetsFolder);
            }
            else if (itemId == Sitecore.Strategy.Contacts.DataProviders.ItemIDs.ContactFacetsFolder)
            {
                AddChildIDsForContactFacetsRootItem(ids, args.ItemDefinition, args.Context);
            }
            else if (IDTableHelper.IsFacetItem(itemId))
            {
                AddChildIDsForContactFacetItem(ids, args.ItemDefinition, args.Context);
            }
            else if (IDTableHelper.IsFacetMemberItem(itemId))
            {
                AddChildIDsForContactFacetMemberItem(ids, args.ItemDefinition, args.Context);
            }
        }
 public virtual void Process(GetChildIDsArgs args)
 {
     Assert.ArgumentNotNull(args, "args");
     Assert.ArgumentNotNull(args.ItemDefinition, "args.ItemDefinition");
     var args2 = new IsHandledArgs(args.ItemDefinition.ID, args.Context);
     args2.IncludeAllIds = true;
     CorePipeline.Run("contactFacetDataProvider.isHandled", args2);
     if (!args2.IsHandled)
     {
         args.AbortPipeline();
     }
 }
        public virtual void Process(GetChildIDsArgs args)
        {
            Assert.ArgumentNotNull(args, "args");
            Assert.ArgumentNotNull(args.ItemDefinition, "args.ItemDefinition");
            var args2 = new IsHandledArgs(args.ItemDefinition.ID, args.Context);

            args2.IncludeAllIds = true;
            CorePipeline.Run("contactFacetDataProvider.isHandled", args2);
            if (!args2.IsHandled)
            {
                args.AbortPipeline();
            }
        }
 public override IDList GetChildIDs(ItemDefinition itemDefinition, CallContext context)
 {
     var args = new GetChildIDsArgs(itemDefinition, context);
     CorePipeline.Run("contactFacetDataProvider.getChildIDs", args);
     return args.IDList;
 }