Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Pipeline

Description

PipelineArgs

DFS.SyncAssets

This pipeline is used in Administration DAM for Sitecore. Under the menu Broken links and Synchronization.

  1. Fetch a list of assets from Digizuite.

  2. Save the assets in /sitecore/media library/Digizuite/Assets.

List of processors

  • DFS.Connect.Pipelines.SyncAssets.FetchAssets

  • DFS.Connect.Pipelines.SyncAssets.SaveItems

Code Block
languagec#
var arguments = new SyncAssetsArgs
{
    FacetList = new List<FacetField>
    {
        new FacetField()
        {
            facetMode = "QueryOnly",
            recursive = true,
            searchKey = "assetId",
            values = assetIds
        }
    },
    Count = assetIds.Count,
    Language = DfsLanguage.GetLanguage(language)
}


Pipeline

Description

PipelineArgs

DFS.BatchSync

This pipeline is used in Administration DAM for Sitecore. Under the menu Synchronization. This pipeline is used to synchronize a large number of assets. It will run in a Sitecore job.

  1. This will call the pipeline DFS.BatchSyncAssets with a batch of 50 assets ( the batch number is configuable).

  2. Once all assets are done synchronizing we will rebuild the Sitecore index sitecore_master_index.

List of processors

  • DFS.Connect.Pipelines.BatchSyncAssets.BatchSyncAssets

  • DFS.Connect.Pipelines.BatchSyncAssets.RebuildIndex (<IndexName>sitecore_master_index</IndexName>)

Code Block
languagec#
var arguments = new SyncAssetsArgs
{
    FacetList = facetList,
    Language = language,
    Count = 1,
    Job = Job
}

Pipeline

Description

PipelineArgs

DFS.BatchSyncAssets

This pipeline is triggered by the pipeline DFS.BatchSync.

  1. Fetch a list of assets from Digizuite.

  2. Save the assets in /sitecore/media library/Digizuite/Assets, with the following disables around: SecurityDisabler, DatabaseCacheDisabler, EventDisabler and BulkUpdateContext to optimize the creation of alot of items in Sitecore.

List of processors

  • DFS.Connect.Pipelines.SyncAssets.FetchAssets

  • DFS.Connect.Pipelines.SyncAssets.SaveItemsWithDisablers

Code Block
languagec#
var arguments = new SyncAssetsArgs
{
    Count = batchLSize,
    Skip = x * batchLSize,
    FacetList = args.FacetList,
    Language = DfsLanguage.GetLanguage(args.Language)
}