mura.content.approval

Class approvalRequestBean

lucee.Component
    extended by mura.cfobject
      extended by mura.bean.bean
        extended by mura.bean.beanORM
          extended by mura.content.approval.approvalRequestBean

This provides approval chain request functionality

Class Attributes:
  • bundleable : true
  •  
  • entityname : approvalRequest
  •  
  • table : tapprovalrequests
  •  
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Property Summary
    type property default serializable required
    any actions


    • access = public
    • fieldtype = one-to-many
    • returntype = any
    • cascade = delete
    • orderby = created asc
    • singularname = action
    • cfc = approvalAction
    true false
    any approvalChain


    • access = public
    • fieldtype = one-to-one
    • returntype = any
    • fkcolumn = chainID
    • cfc = approvalChain
    true false
    any content


    • access = public
    • fieldtype = one-to-one
    • returntype = any
    • fkcolumn = contentHistID
    • cfc = content
    true false
    mura.content.approval.timestamp created


    • access = public
    • returntype = any
    true false
    any group


    • access = public
    • fieldtype = many-to-one
    • returntype = any
    • loadkey = userid
    • fkcolumn = groupID
    • cfc = user
    true false
    any requestID


    • access = public
    • fieldtype = id
    • returntype = any
    true false
    any site


    • access = public
    • fieldtype = many-to-one
    • returntype = any
    • fkcolumn = siteID
    • cfc = site
    true false
    String status


    • access = public
    • returntype = any
    Pending true false
    any user


    • access = public
    • fieldtype = many-to-one
    • returntype = any
    • fkcolumn = userID
    • cfc = user
    true false
    Constructor Summary
    init()
    Method Summary
    any approve([any comments])
    any cancel([any comments])
    any reject([any comments])
    any save()
    any sendActionMessage([any contentBean], [any actionType])
     
    Methods inherited from class mura.bean.beanORM
    addQueryParam, checkSchema, clone, delete, fromBundle, getBundleable, getCache, getCacheKey, getCacheName, getCacheSiteID, getColumns, getCustomDatasource, getDbType, getDbUtility, getDiscriminatorColumn, getDiscriminatorValue, getFeed, getIterator, getLoadSQL, getManageSchema, getPrimaryKey, getQueryAttrs, getQueryParamType, getQueryService, getReadOnly, getSaveErrors, getSite, getUseCache, getUseTrash, hasColumn, hasCustomDatasource, loadBy, postCreate, postDelete, postInsert, postLoad, postUpdate, preCreate, preDelete, preInsert, preLoad, preUpdate, purgeCache, set, setDbUtility, setPropAsIDColumn, setSaveErrors, toBundle, updateMappingsByIDLists, validate
     
    Methods inherited from class mura.bean.bean
    addObject, allowDelete, allowQueryParams, allowRead, allowSave, compare, exists, get, getAll, getAllValues, getEntityName, getErrors, getHasManyPropArray, getHasOnePropArray, getInstanceName, getIsHistorical, getListView, getOrderBy, getProperties, getSynthedFunctions, getTable, getValidations, getValue, has, hasErrors, hasProperty, hasTable, isComparable, OnMissingMethod, parseDateArg, removeObject, setAddedObjectValues, setAllValues, setErrors, setlastUpdateBy, setValidations, setValue, synthArgs, translatePropKey, valueExists
     
    Methods inherited from class mura.cfobject
    commitTracePoint, convertTimezone, deleteMethod, getAsJSON, getAsStruct, getBean, getConfigBean, getCurrentUser, getEventManager, getHTTPAttrs, getHTTPService, getJavaTimezone, getPlugin, getPluginManager, getServiceFactory, getSession, initTracePoint, inject, injectMethod, invokeMethod, mixin, removeValue
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init()


    Property Detail

    actions

    property any actions

    Attributes:
    access - public
    required - false
    fieldtype - one-to-many
    returntype - any
    cascade - delete
    orderby - created asc
    singularname - action
    serializable - true
    cfc - approvalAction

    approvalChain

    property any approvalChain

    Attributes:
    access - public
    required - false
    fieldtype - one-to-one
    returntype - any
    fkcolumn - chainID
    serializable - true
    cfc - approvalChain

    content

    property any content

    Attributes:
    access - public
    required - false
    fieldtype - one-to-one
    returntype - any
    fkcolumn - contentHistID
    serializable - true
    cfc - content

    created

    property mura.content.approval.timestamp created

    Attributes:
    access - public
    required - false
    returntype - any
    serializable - true

    group

    property any group

    Attributes:
    access - public
    required - false
    fieldtype - many-to-one
    returntype - any
    loadkey - userid
    fkcolumn - groupID
    serializable - true
    cfc - user

    requestID

    property any requestID

    Attributes:
    access - public
    required - false
    fieldtype - id
    returntype - any
    serializable - true

    site

    property any site

    Attributes:
    access - public
    required - false
    fieldtype - many-to-one
    returntype - any
    fkcolumn - siteID
    serializable - true
    cfc - site

    status

    property String status = [Pending]

    Attributes:
    access - public
    required - false
    returntype - any
    serializable - true

    user

    property any user

    Attributes:
    access - public
    required - false
    fieldtype - many-to-one
    returntype - any
    fkcolumn - userID
    serializable - true
    cfc - user

    Method Detail

    approve

    public any approve([any comments])

    Parameters:
    comments

    cancel

    public any cancel([any comments])

    Parameters:
    comments

    reject

    public any reject([any comments])

    Parameters:
    comments

    save

    public any save()

    Overrides:
    save in class beanORM

    sendActionMessage

    public any sendActionMessage([any contentBean], [any actionType])

    Parameters:
    contentBean
    actionType