Class
CommentSubscription
lucee.Component
contentbox.models.BaseEntityMethods
contentbox.models.subscriptions.BaseSubscription
contentbox.models.subscriptions.CommentSubscription
ContentBox - A Modular Content Platform
Copyright since 2012 by Ortus Solutions, Corp
www.ortussolutions.com/products/contentbox
---
I am a Comment Subscription Entity
Class Attributes:
entityname
: cbCommentSubscription
cacheuse
: read-write
joincolumn
: subscriptionID
table
: cb_commentSubscriptions
synchronized
: false
cachename
: cbCommentSubscription
accessors
: false
persistent
: true
Property Summary
type
property
default
serializable
required
any
commentSubscriptionService
access = public
returntype = any
inject = provider:commentSubscriptionService@contentbox
persistent = false
true
false
any
relatedContent
access = public
fieldtype = many-to-one
returntype = any
fetch = join
notnull = true
orderby = Title ASC
fkcolumn = FK_contentID
cfc = contentbox.models.content.BaseContent
lazy = true
true
false
Constructor Summary
init ()
Methods inherited from class contentbox.models.subscriptions.BaseSubscription
getCreatedDate , getIsDeleted , getModifiedDate , getSubscriber , getSubscriberSnapshot , getSubscriptionID , getSubscriptionToken , getType , hasSubscriber , setCreatedDate , setIsDeleted , setModifiedDate , setSubscriber , setSubscriptionID , setSubscriptionToken , setType
Methods inherited from class lucee.Component
None
init
public init ()
commentSubscriptionService
property any
commentSubscriptionService
Attributes:
access
- public
required
- false
returntype
- any
inject
- provider:commentSubscriptionService@contentbox
persistent
- false
serializable
- true
relatedContent
property any
relatedContent
Attributes:
access
- public
required
- false
fieldtype
- many-to-one
returntype
- any
fetch
- join
notnull
- true
orderby
- Title ASC
fkcolumn
- FK_contentID
serializable
- true
cfc
- contentbox.models.content.BaseContent
lazy
- true
getCommentSubscriptionService
public string getCommentSubscriptionService ()
getRelatedContent
public string getRelatedContent ()
getRelatedContentSnapshot
public struct getRelatedContentSnapshot ()
Build a snapshot of the related content
hasRelatedContent
public boolean hasRelatedContent ([any relatedContent])
Parameters:
relatedContent
isExtantSubscription
public boolean isExtantSubscription ()
preInsert
public void preInsert ()
Before insertion verify if we have a token, else generate one.
Overrides:
preInsert
in class
BaseEntityMethods
setCommentSubscriptionService
public any setCommentSubscriptionService (any commentSubscriptionService)
Parameters:
commentSubscriptionService
setRelatedContent
public any setRelatedContent (any relatedContent)
Parameters:
relatedContent