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

Afficher le fichier Open project: sdl/DD4T.TridionTemplates Class Usage Examples

Protected Properties

Свойство Type Description
engine Engine
log TemplatingLogger
package Package

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode Description
ConstructFileName ( Component mmComp, string variantId ) : string

Method Details

BinaryPublisher() public méthode

public BinaryPublisher ( Package package, Engine engine ) : System
package Package
engine Engine
Résultat System

BinaryPublisher() public méthode

public BinaryPublisher ( Package package, Engine engine, string targetStructureGroup ) : System
package Package
engine Engine
targetStructureGroup string
Résultat System

GetECLUrl() protected méthode

protected GetECLUrl ( string uri ) : string
uri string
Résultat string

GetReferencePath() protected méthode

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
Résultat string

PublishBinariesInRichTextField() public méthode

public PublishBinariesInRichTextField ( string xhtml, BuildProperties buildProperties ) : string
xhtml string
buildProperties BuildProperties
Résultat string

PublishItem() protected méthode

protected PublishItem ( System.Item item, TcmUri itemUri ) : void
item System.Item
itemUri TcmUri
Résultat void

PublishMultimediaComponent() public méthode

public PublishMultimediaComponent ( string uri, BuildProperties buildProperties ) : string
uri string
buildProperties BuildProperties
Résultat string

Property Details

engine protected_oe property

protected Engine engine
Résultat Engine

log protected_oe property

protected TemplatingLogger log
Résultat TemplatingLogger

package protected_oe property

protected Package package
Résultat Package