Mura CMS 6.1

mura.content.file
Class fileManager

railo-context.Component
        extended by mura.cfobject
            extended by mura.content.file.fileManager

public class fileManager
extends cfobject

Constructor Summary
init(any fileDAO, any configBean, any settingsManager)
 
Method Summary
 any cleanFileCache([any siteID])
 string create(any fileObj, any contentid, any siteid, any filename, string contentType, string contentSubType, numeric fileSize, string moduleID, string fileExt, any fileObjSmall, any fileObjMedium, any fileID='[runtime expression]', any fileObjSource='', string credits='', string caption='', string alttext='', string remoteID='', string remoteURL='', string remotePubDate='', [any remoteSource=''], string remoteSourceURL='')
 any createHREFForImage([any siteID], [any fileID], [any fileExt], any size='undefined', any direct='[runtime expression]', boolean complete='false', [any height=''], [any width=''])
 any cropAndScale([any fileID], [any size], [any x], [any y], [any height], [any width], [any siteid])
 void deleteAll(string contentID)
 void deleteIfNotUsed(any fileID, any contentHistID)
 void deleteVersion(any fileID)
 any emulateUpload(string filePath, string destinationDir='[runtime expression]')
 any flip([any fileID], [any transpose='horizontal'])
 any getCustomImage(any Image, [any Height='AUTO'], [any Width='AUTO'], [any size=''], [any siteID=''])
 any isPostedFile([any fileField])
 struct Process([any file], [any siteID])
 any purgeDeleted([any siteid=''])
 query read(any fileID)
 query readAll(any fileID)
 query readMedium(any fileID)
 query readMeta(any fileID)
 query readSmall(any fileID)
 any rebuildImageCache([any siteID])
 any renderFile([string fileID], string method='inline', string size='')
 any renderMedium([string fileID], string method='inline')
 any renderMimeType(string mimeType='', any file='')
          deprecated in favor of streamFile
 any renderS3(string fileid, [string method='inline'], [string size=''], [string bucket='[runtime expression]'], [boolean debug='false'])
 any renderSmall([string fileID], string method='inline')
 any restoreVersion([any fileID])
 any rotate([any fileID], [any degrees='90'])
 any streamFile([any filePath], [any filename], [any mimetype], string method='inline', any lastModified='[runtime expression]', boolean deleteFile='false')
 any touchSourceImage([any fileID])
 any upload([any fileField])
 
Methods inherited from class mura.cfobject
commitTracePoint, deleteMethod, getAsJSON, getAsStruct, getBean, getConfigBean, getCurrentUser, getEventManager, getPlugin, getPluginManager, getServiceFactory, getValue, initTracePoint, injectMethod, invokeMethod, removeValue, setValue, valueExists
 
Methods inherited from class railo-context.Component
 

Constructor Detail

init

public init(any fileDAO, any configBean, any settingsManager)

Parameters:
fileDAO
configBean
settingsManager
Method Detail

cleanFileCache

public any cleanFileCache([any siteID])

Parameters:
siteID

create

public string create(any fileObj, any contentid, any siteid, any filename, string contentType, string contentSubType, numeric fileSize, string moduleID, string fileExt, any fileObjSmall, any fileObjMedium, any fileID='[runtime expression]', any fileObjSource='', string credits='', string caption='', string alttext='', string remoteID='', string remoteURL='', string remotePubDate='', [any remoteSource=''], string remoteSourceURL='')

Parameters:
fileObj
contentid
siteid
filename
contentType
contentSubType
fileSize
moduleID
fileExt
fileObjSmall
fileObjMedium
fileID
fileObjSource
credits
caption
alttext
remoteID
remoteURL
remotePubDate
remoteSource
remoteSourceURL

createHREFForImage

public any createHREFForImage([any siteID], [any fileID], [any fileExt], any size='undefined', any direct='[runtime expression]', boolean complete='false', [any height=''], [any width=''])

Parameters:
siteID
fileID
fileExt
size
direct
complete
height
width

cropAndScale

public any cropAndScale([any fileID], [any size], [any x], [any y], [any height], [any width], [any siteid])

Parameters:
fileID
size
x
y
height
width
siteid

deleteAll

public void deleteAll(string contentID)

Parameters:
contentID

deleteIfNotUsed

public void deleteIfNotUsed(any fileID, any contentHistID)

Parameters:
fileID
contentHistID

deleteVersion

public void deleteVersion(any fileID)

Parameters:
fileID

emulateUpload

public any emulateUpload(string filePath, string destinationDir='[runtime expression]')

Parameters:
filePath
destinationDir

flip

public any flip([any fileID], [any transpose='horizontal'])

Parameters:
fileID
transpose

getCustomImage

public any getCustomImage(any Image, [any Height='AUTO'], [any Width='AUTO'], [any size=''], [any siteID=''])

Parameters:
Image
Height
Width
size
siteID

isPostedFile

public any isPostedFile([any fileField])

Parameters:
fileField

Process

public struct Process([any file], [any siteID])

Parameters:
file
siteID

purgeDeleted

public any purgeDeleted([any siteid=''])

Parameters:
siteid

read

public query read(any fileID)

Parameters:
fileID

readAll

public query readAll(any fileID)

Parameters:
fileID

readMedium

public query readMedium(any fileID)

Parameters:
fileID

readMeta

public query readMeta(any fileID)

Parameters:
fileID

readSmall

public query readSmall(any fileID)

Parameters:
fileID

rebuildImageCache

public any rebuildImageCache([any siteID])

Parameters:
siteID

renderFile

public any renderFile([string fileID], string method='inline', string size='')

Parameters:
fileID
method
size

renderMedium

public any renderMedium([string fileID], string method='inline')

Parameters:
fileID
method

renderMimeType

public any renderMimeType(string mimeType='', any file='')
deprecated in favor of streamFile

Parameters:
mimeType
file

renderS3

public any renderS3(string fileid, [string method='inline'], [string size=''], [string bucket='[runtime expression]'], [boolean debug='false'])

Parameters:
fileid
method
size
bucket
debug

renderSmall

public any renderSmall([string fileID], string method='inline')

Parameters:
fileID
method

restoreVersion

public any restoreVersion([any fileID])

Parameters:
fileID

rotate

public any rotate([any fileID], [any degrees='90'])

Parameters:
fileID
degrees

streamFile

public any streamFile([any filePath], [any filename], [any mimetype], string method='inline', any lastModified='[runtime expression]', boolean deleteFile='false')

Parameters:
filePath
filename
mimetype
method
lastModified
deleteFile

touchSourceImage

public any touchSourceImage([any fileID])

Parameters:
fileID

upload

public any upload([any fileField])

Parameters:
fileField

Mura CMS 6.1