contentbox.modules.contentbox-admin.handlers

Class versions

lucee.Component
    extended by coldbox.system.FrameworkSupertype
      extended by coldbox.system.EventHandler
        extended by coldbox.system.RestHandler
          extended by contentbox.modules.contentbox-admin.handlers.baseHandler
            extended by contentbox.modules.contentbox-admin.handlers.versions

Manage content versions

Class Attributes:
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Property Summary
    type property default serializable required
    any JSONPrettyPrint


    • access = public
    • returntype = any
    • inject = JSONPrettyPrint@JSONPrettyPrint
    true false
    any authorService


    • access = public
    • returntype = any
    • inject = authorService@contentbox
    true false
    any contentService


    • access = public
    • returntype = any
    • inject = contentService@contentbox
    true false
    any contentVersionService


    • access = public
    • returntype = any
    • inject = contentVersionService@contentbox
    true false
    Method Summary
    any diff([any event], [any rc], [any prc])
         Diff different versions.
    any index([any event], [any rc], [any prc])
         Versions History Index.
    any pager([any event], [any rc], [any prc], any contentID, [numeric max='10'], [boolean viewFullHistory='true'])
         Pager Viewlet for version records.
    any quickLook([any event], [any rc], [any prc])
         Version quick look.
    any remove([any event], [any rc], [any prc])
         Remove permanently a version.
    any rollback([any event], [any rc], [any prc])
         Rollback a version.
     
    Methods inherited from class contentbox.modules.contentbox-admin.handlers.baseHandler
    getMaxRows, getPageOffset
     
    Methods inherited from class coldbox.system.RestHandler
    aroundHandler, onAnyOtherException, onAuthenticationFailure, onAuthorizationFailure, onEntityNotFoundException, onError, onExpectationFailed, onInvalidHTTPMethod, onInvalidRoute, onMissingAction, onValidationException
     
    Methods inherited from class coldbox.system.EventHandler
    _actionExists, _actionMetadata, _privateInvoker, init, onHandlerDIComplete
     
    Methods inherited from class coldbox.system.FrameworkSupertype
    announce, announceInterception, async, back, externalView, forAttribute, getCache, getCachebox, getColdBoxSetting, getController, getDateTimeHelper, getEnv, getFlash, getFlow, getInstance, getIsoTime, getJsonUtil, getLog, getLogBox, getModuleConfig, getModuleSettings, getRenderer, getRequestCollection, getRequestContext, getRootWireBox, getSetting, getSystemProperty, getSystemSetting, getUserSessionIdentifier, getWirebox, ifNull, ifPresent, inDebugMode, includeUDF, isDevelopment, isProduction, isTesting, layout, listen, loadApplicationHelpers, locateDirectoryPath, locateFilePath, persistVariables, populate, populateModel, relocate, renderExternalView, renderLayout, renderview, runEvent, runRoute, setCachebox, setController, setEnv, setFlash, setFlow, setJsonUtil, setLog, setLogBox, setSetting, setWirebox, settingExists, throwIf, throwUnless, toJson, unless, view, when
     
    Methods inherited from class lucee.Component
    None

    Property Detail

    JSONPrettyPrint

    property any JSONPrettyPrint

    Attributes:
    access - public
    required - false
    returntype - any
    inject - JSONPrettyPrint@JSONPrettyPrint
    serializable - true

    authorService

    property any authorService

    Attributes:
    access - public
    required - false
    returntype - any
    inject - authorService@contentbox
    serializable - true

    contentService

    property any contentService

    Attributes:
    access - public
    required - false
    returntype - any
    inject - contentService@contentbox
    serializable - true

    contentVersionService

    property any contentVersionService

    Attributes:
    access - public
    required - false
    returntype - any
    inject - contentVersionService@contentbox
    serializable - true

    Method Detail

    diff

    public any diff([any event], [any rc], [any prc])

    Diff different versions

    Parameters:
    event
    rc
    prc

    index

    public any index([any event], [any rc], [any prc])

    Versions History Index

    Parameters:
    event
    rc
    prc

    pager

    public any pager([any event], [any rc], [any prc], any contentID, [numeric max='10'], [boolean viewFullHistory='true'])

    Pager Viewlet for version records

    Parameters:
    event
    rc
    prc
    contentID - The contentID to iterate records on
    max - The maximum records to show
    viewFullHistory - View full history or partial paginated results

    quickLook

    public any quickLook([any event], [any rc], [any prc])

    Version quick look

    Parameters:
    event
    rc
    prc

    remove

    public any remove([any event], [any rc], [any prc])

    Remove permanently a version

    Parameters:
    event
    rc
    prc

    rollback

    public any rollback([any event], [any rc], [any prc])

    Rollback a version

    Parameters:
    event
    rc
    prc