public virtual void Process(GetItemVersionsArgs 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(GetItemVersionsArgs args) { Assert.ArgumentNotNull(args, "args"); Assert.ArgumentNotNull(args.Context, "args.Context"); var list = new VersionUriList(); foreach (var language in args.Context.DataManager.Database.Languages) { list.Add(language, Sitecore.Data.Version.First); } args.VersionUriList = list; }
public override VersionUriList GetItemVersions(ItemDefinition itemDefinition, CallContext context) { var args = new GetItemVersionsArgs(itemDefinition, context); CorePipeline.Run("contactFacetDataProvider.getItemVersions", args); return args.VersionUriList; }