mura.content.file

Class fileDAO

lucee.Component
    extended by mura.cfobject
      extended by mura.content.file.fileDAO

This provides file CRUD logic

Class Attributes:
  • output : false
  •  
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Constructor Summary
    init(any configBean, any settingsManager, any pluginManager, any fileWriter='')
    Method Summary
    any 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='', string exif='')
    any deleteAll(string contentID)
    any deleteCachedFile(string fileID)
    any deleteIfNotUsed(any fileID, any baseID)
    any deleteVersion(any fileID)
    any getS3()
    any purgeDeleted([any siteid=''])
    any read(any fileID)
    any readAll(any fileID)
    any readMedium(any fileID)
    any readMeta(any fileID)
    any readSmall(any fileID)
    any restoreVersion([any fileID])
     
    Methods inherited from class mura.cfobject
    commitTracePoint, convertTimezone, deleteMethod, get, getAsJSON, getAsStruct, getBean, getConfigBean, getCurrentUser, getEventManager, getFeed, getHTTPAttrs, getHTTPService, getJavaTimezone, getPlugin, getPluginManager, getQueryAttrs, getQueryService, getServiceFactory, getSession, getValue, hasCustomDatasource, initTracePoint, inject, injectMethod, invokeMethod, mixin, parseDateArg, removeValue, set, setValue, valueExists
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init(any configBean, any settingsManager, any pluginManager, any fileWriter='')

    Parameters:
    configBean
    settingsManager
    pluginManager
    fileWriter

    Method Detail

    create

    public any 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='', string exif='')

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

    deleteAll

    public any deleteAll(string contentID)

    Parameters:
    contentID

    deleteCachedFile

    public any deleteCachedFile(string fileID)

    Parameters:
    fileID

    deleteIfNotUsed

    public any deleteIfNotUsed(any fileID, any baseID)

    Parameters:
    fileID
    baseID

    deleteVersion

    public any deleteVersion(any fileID)

    Parameters:
    fileID

    getS3

    public any getS3()


    purgeDeleted

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

    Parameters:
    siteid

    read

    public any read(any fileID)

    Parameters:
    fileID

    readAll

    public any readAll(any fileID)

    Parameters:
    fileID

    readMedium

    public any readMedium(any fileID)

    Parameters:
    fileID

    readMeta

    public any readMeta(any fileID)

    Parameters:
    fileID

    readSmall

    public any readSmall(any fileID)

    Parameters:
    fileID

    restoreVersion

    public any restoreVersion([any fileID])

    Parameters:
    fileID