C# Class DD4T.Templates.Base.Utils.BinaryPublisher

Mostra file Open project: sdl/DD4T.TridionTemplates Class Usage Examples

Protected Properties

Property Type Description
engine Engine
log TemplatingLogger
package Package

Public Methods

Method Description
BinaryPublisher ( Package package, Engine engine ) : System
BinaryPublisher ( Package package, Engine engine, string targetStructureGroup ) : System
PublishBinariesInRichTextField ( string xhtml, BuildProperties buildProperties ) : string
PublishMultimediaComponent ( string uri, BuildProperties buildProperties ) : string

Protected Methods

Method Description
GetECLUrl ( string uri ) : string
GetReferencePath ( System.Item item, string uri ) : string

Return the reference path for the binary which has just been published. This path is stored in the XML which is published to the broker, and may be used in the presentation engine to retrieve the binary. In this implementation, the reference path is the same as the publish path, but the method can be overridden to implement other logic. It could (for example) return the path to the binary through a CDN.

PublishItem ( System.Item item, TcmUri itemUri ) : void

Private Methods

Method Description
ConstructFileName ( Component mmComp, string variantId ) : string

Method Details

BinaryPublisher() public method

public BinaryPublisher ( Package package, Engine engine ) : System
package Package
engine Engine
return System

BinaryPublisher() public method

public BinaryPublisher ( Package package, Engine engine, string targetStructureGroup ) : System
package Package
engine Engine
targetStructureGroup string
return System

GetECLUrl() protected method

protected GetECLUrl ( string uri ) : string
uri string
return string

GetReferencePath() protected method

Return the reference path for the binary which has just been published. This path is stored in the XML which is published to the broker, and may be used in the presentation engine to retrieve the binary. In this implementation, the reference path is the same as the publish path, but the method can be overridden to implement other logic. It could (for example) return the path to the binary through a CDN.
protected GetReferencePath ( System.Item item, string uri ) : string
item System.Item The templating Item containing the multimedia component (including the publish path)
uri string The uri of the multimedia component
return string

PublishBinariesInRichTextField() public method

public PublishBinariesInRichTextField ( string xhtml, BuildProperties buildProperties ) : string
xhtml string
buildProperties BuildProperties
return string

PublishItem() protected method

protected PublishItem ( System.Item item, TcmUri itemUri ) : void
item System.Item
itemUri TcmUri
return void

PublishMultimediaComponent() public method

public PublishMultimediaComponent ( string uri, BuildProperties buildProperties ) : string
uri string
buildProperties BuildProperties
return string

Property Details

engine protected_oe property

protected Engine engine
return Engine

log protected_oe property

protected TemplatingLogger log
return TemplatingLogger

package protected_oe property

protected Package package
return Package