contentbox.model.subscriptions

Class Subscriber

railo-context.Component
        extended by contentbox.model.subscriptions.Subscriber
Class Attributes:
  • entityname : cbSubscriber
  •  
  • cacheuse : read-write
  •  
  • table : cb_subscribers
  •  
  • synchronized : false
  •  
  • cachename : cbSubscriber
  •  
  • accessors : false
  •  
  • persistent : true
  •  

    ContentBox - A Modular Content Platform Copyright 2012 by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com Apache License, Version 2.0 Copyright Since [2012] [Luis Majano and Ortus Solutions,Corp] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. I am a Subscriber Entity

    Property Summary
    type property default serializable required
    any createdDate


    • notnull = true
    • ormtype = timestamp
    • update = false
    • index = idx_createdDate
    true false
    any subscriberEmail


    • notnull = true
    • index = idx_subscriberEmail
    • length = 255
    true false
    any subscriberID


    • fieldtype = id
    • generator = native
    • setter = no
    true false
    any subscriberToken


    • notnull = true
    true false
    array subscriptions


    • inverse = true
    • fieldtype = one-to-many
    • cascade = all-delete-orphan
    • orderby = createdDate
    • batchsize = 25
    • singularname = subscription
    • fkcolumn = FK_subscriberID
    • cfc = contentbox.model.subscriptions.BaseSubscription
    • lazy = extra
    true false
    Constructor Summary
    init()
          constructor.
    Method Summary
    any addSubscription(any subscription)
    string getCreatedDate()
    string getSubscriberEmail()
    string getSubscriberID()
    string getSubscriberToken()
    string getSubscriptions()
    struct getSubscriptionsByContentType()
         Returns a slim representation of subscriptions by type.
    boolean hasSubscription([any subscription])
    boolean isLoaded()
         is loaded?.
    void preInsert()
         PUBLIC ********************************************.
    boolean removeSubscription(any subscription)
    any setCreatedDate(any createdDate)
    any setSubscriberEmail(any subscriberEmail)
    any setSubscriberToken(any subscriberToken)
    any setSubscriptions(array subscriptions)
     
    Methods inherited from class railo-context.Component
    None

    Constructor Detail

    init

    public init()

    constructor


    Property Detail

    createdDate

    property any createdDate

    Attributes:
    required - false
    notnull - true
    ormtype - timestamp
    update - false
    index - idx_createdDate
    serializable - true

    subscriberEmail

    property any subscriberEmail

    Attributes:
    required - false
    notnull - true
    index - idx_subscriberEmail
    length - 255
    serializable - true

    subscriberID

    property any subscriberID

    Attributes:
    required - false
    fieldtype - id
    generator - native
    serializable - true
    setter - no

    subscriberToken

    property any subscriberToken

    Attributes:
    required - false
    notnull - true
    serializable - true

    subscriptions

    property array subscriptions

    Attributes:
    required - false
    inverse - true
    fieldtype - one-to-many
    cascade - all-delete-orphan
    orderby - createdDate
    batchsize - 25
    singularname - subscription
    fkcolumn - FK_subscriberID
    serializable - true
    cfc - contentbox.model.subscriptions.BaseSubscription
    lazy - extra

    Method Detail

    addSubscription

    public any addSubscription(any subscription)

    Parameters:
    subscription

    getCreatedDate

    public string getCreatedDate()


    getSubscriberEmail

    public string getSubscriberEmail()


    getSubscriberID

    public string getSubscriberID()


    getSubscriberToken

    public string getSubscriberToken()


    getSubscriptions

    public string getSubscriptions()


    getSubscriptionsByContentType

    public struct getSubscriptionsByContentType()

    Returns a slim representation of subscriptions by type


    hasSubscription

    public boolean hasSubscription([any subscription])

    Parameters:
    subscription

    isLoaded

    public boolean isLoaded()

    is loaded?


    preInsert

    public void preInsert()

    PUBLIC ********************************************


    removeSubscription

    public boolean removeSubscription(any subscription)

    Parameters:
    subscription

    setCreatedDate

    public any setCreatedDate(any createdDate)

    Parameters:
    createdDate

    setSubscriberEmail

    public any setSubscriberEmail(any subscriberEmail)

    Parameters:
    subscriberEmail

    setSubscriberToken

    public any setSubscriberToken(any subscriberToken)

    Parameters:
    subscriberToken

    setSubscriptions

    public any setSubscriptions(array subscriptions)

    Parameters:
    subscriptions