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.comments
RESTFul CRUD for Content Comments An incoming site identifier is required An incoming contentID or slug is required
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any
|
contentService
|
true
|
false
|
|
any
|
ormService
|
true
|
false
|
Method Summary | |
---|---|
any
|
create([any event], [any rc], [any prc])
Create a new comment. |
any
|
delete([any event], [any rc], [any prc])
Delete a comment. |
any
|
index([any event], [any rc], [any prc])
Display all comments for the requested content object. |
any
|
preHandler([any event], [any rc], [any prc], [any action], [any eventArguments])
Executes before all handler actions. |
any
|
show([any event], [any rc], [any prc])
Show a comment using an ID. |
any
|
update([any event], [any rc], [any prc])
Update an existing comment. |
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
- contentService@contentboxserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- CommentService@contentboxserializable
- trueMethod Detail |
---|
Create a new comment
create
in class
baseHandler
event
rc
prc
Delete a comment
delete
in class
baseHandler
event
rc
prc
Display all comments for the requested content object
index
in class
baseHandler
event
rc
prc
Executes before all handler actions
event
rc
prc
action
eventArguments
Show a comment using an ID
show
in class
baseHandler
event
rc
prc
Update an existing comment
update
in class
baseHandler
event
rc
prc