lucee.Component
contentbox.models.media.CFContentMediaProvider
ContentBox - A Modular Content Platform Copyright since 2012 by Ortus Solutions, Corp www.ortussolutions.com/products/contentbox --- Deliver file via cfcontent
| Property Summary | ||||
|---|---|---|---|---|
| type | property | default | serializable | required |
any
|
fileUtils
|
true
|
false
|
|
any
|
log
|
true
|
false
|
|
any
|
mediaService
|
true
|
false
|
|
| Constructor Summary | |
|---|---|
|
init()
Constructor. |
|
| Method Summary | |
|---|---|
any
|
deliverMedia(any mediaPath)
Deliver the media. |
any
|
getDescription()
Get the description of this provider. |
any
|
getDisplayName()
Get the display name of a provider. |
string
|
getFileUtils()
|
string
|
getLog()
|
string
|
getMediaService()
|
any
|
getName()
The internal name of the provider. |
private any
|
getRealMediaPath(any mediaPath)
PRIVATE ********************************************. |
boolean
|
mediaExists(any mediaPath)
Validate if a media requested exists. |
any
|
setFileUtils(any fileUtils)
|
any
|
setLog(any log)
|
any
|
setMediaService(any mediaService)
|
| Methods inherited from class lucee.Component |
|---|
| None |
| Constructor Detail |
|---|
Constructor
| Property Detail |
|---|
access - publicrequired - falsereturntype - anyinject - FileUtils@cbserializable - trueaccess - publicrequired - falsereturntype - anyinject - logbox:logger:{this}serializable - trueaccess - publicrequired - falsereturntype - anyinject - mediaService@cbserializable - true| Method Detail |
|---|
Deliver the media
deliverMedia
in interface
IMediaProvider
mediaPath - the media path to deliver back to the userGet the description of this provider
getDescription
in interface
IMediaProvider
Get the display name of a provider
getDisplayName
in interface
IMediaProvider
The internal name of the provider
getName
in interface
IMediaProvider
PRIVATE ********************************************
mediaPathValidate if a media requested exists
mediaExists
in interface
IMediaProvider
mediaPath - the media path to verify if it existsfileUtilslogmediaService