Broadleaf Microservices
  • v1.0.0-latest-prod

Key Components

AssetSourceAware

Interface exposing the following attributes needed to produce a content URL:

  • applicationId

  • tenantId

  • url

  • provider

EntityAsset

Abstract class implementing AssetSourceAware. EntityAsset objects represent a relationship between an Asset and an entity, containing additional attributes to support assets of different DefaultAssetTypes

AssetContentUrlResolver

This is the service responsible for building a fully resolved content URL path that can be used to directly fetch the binary data from an AssetSourceAware object.

BroadleafProviderContentUrlResolver

Out-of-box Broadleaf provides an AssetContentUrlResolver that is prepared to handle the following cases:

  • When the asset is using the BROADLEAF asset provider, it will prepend the contentUrlPrefix defined in AssetProviderProperties to the original URL.

  • When using any other provider, it will duplicate the original URL.

AssetContentUrlSerializer

This service is responsible for writing the URL JSON field and for introducing a new contentUrl property on the serialized output.