Versions Compared

Key

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

...

Pipeline

Description

PipelineArgs

DFS.SyncAsset

This pipeline is triggered when you insert Digizuite assets into content on of the DAM for Sitecore custom fields. 

  1. First it tests if the requested asset is allready synchronized and exists in the asset silo. If the forceUpdate is true, then we skip this check.

  2. Fetch the asset from Digizuite.

  3. Save the asset as in /sitecore/media library/Digizuite/Assets.

List of processors

  • DFS.Connect.Pipelines.SyncAsset.ItemExists

  • DFS.Connect.Pipelines.SyncAsset.FetchAsset

  • DFS.Connect.Pipelines.SyncAsset.SaveItem

Code Block
languagec#
var arguments = new SyncAssetArgs
{
    AssetId = aid,
    Language = DfsLanguage.GetLanguage(language),
    ForceUpdate = true
};

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)
}