public string Export(IList <int> contentItemIds)
        {
            var context = new ExportActionContext();

            _specificContentStep.DataContentIds        = contentItemIds;
            _specificContentStep.VersionHistoryOptions = VersionHistoryOptions.Latest;
            context.RecipeDocument = _recipeBuilder.Build(new List <IRecipeBuilderStep> {
                _specificContentStep
            });
            return(_importExportService.WriteExportFile(context.RecipeDocument));
        }
Exemplo n.º 2
0
 public override void Execute(ExportActionContext context)
 {
     context.RecipeDocument = _recipeBuilder.Build(RecipeBuilderSteps);
 }