Versions Compared

Key

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

...

Pipeline

Description

PipelineArgs

DFS.SyncAsset

This pipeline will fetch the asset from Digizuite DAM and save an item is triggered when you insert Digizuite assets into content fields. 

  1. First it tests if the requested asset is allready synchronized and exists in the asset silo.

 
  1. First we check security.

  2. If the media is in the cache we return that.

  3. The media was not in the cache, fetch the media from Digizuite DAM.

  4. We resize the image, if resizing parameters was added.

  5. Store the media in the cacheforceUpdate is true, then we skip this check.

  6. Fetch the asset from Digizuite.

  7. Save the asset as /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
};

...