lucee.Componentcoldbox.system.FrameworkSupertype
coldbox.system.EventHandler
coldbox.system.RestHandler
cborm.models.resources.BaseHandler
contentbox.modules.contentbox-api.modules.contentbox-api-v1.handlers.baseHandler
contentbox.modules.contentbox-api.modules.contentbox-api-v1.handlers.baseContentHandler
Base handler for content based API handlers
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any
|
HTMLHelper
|
true
|
false
|
|
any
|
authorService
|
true
|
false
|
|
any
|
categoryService
|
true
|
false
|
|
any
|
contentService
|
true
|
false
|
|
any
|
customFieldService
|
true
|
false
|
Method Summary | |
---|---|
any
|
preHandler([any event], [any rc], [any prc], [any action], [any eventArguments])
Executes before all handler actions. |
private any
|
save([any event], [any rc], [any prc], [struct populate='[runtime expression]'], [struct validate='[runtime expression]'], [string saveMethod='[runtime expression]'], [string contentType=''])
Shared method for create and update to be DRY. |
any
|
show([any event], [any rc], [any prc])
Show a content item using an incoming slug or id. |
Methods inherited from class contentbox.modules.contentbox-api.modules.contentbox-api-v1.handlers.baseHandler |
---|
autoCast, create, delete, getByIdOrSlugOrFail, getMaxRows, getPageOffset, getSiteByIdOrSlugOrFail, index, newCriteria, update |
Methods inherited from class cborm.models.resources.BaseHandler |
---|
None |
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 |
---|
access
- publicrequired
- falsereturntype
- anyinject
- HTMLHelper@coldboxserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- authorService@contentboxserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- categoryService@contentboxserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- ContentService@contentboxserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- customFieldService@contentboxserializable
- trueMethod Detail |
---|
Executes before all handler actions
event
rc
prc
action
eventArguments
Shared method for create and update to be DRY
event
rc
prc
populate
- Population argumentsvalidate
- Validation argumentssaveMethod
- The method to use for saving entitiescontentType
Show a content item using an incoming slug or id
show
in class
baseHandler
event
rc
prc