lucee.Componentcborm.models.BaseORMService
cborm.models.VirtualEntityService
contentbox.models.content.ContentVersionService
ContentBox - A Modular Content Platform Copyright since 2012 by Ortus Solutions, Corp www.ortussolutions.com/products/contentbox --- Content version services
Constructor Summary | |
---|---|
init()
Constructor. |
Method Summary | |
---|---|
struct
|
findRelatedVersions(any contentID, [any max='0'], [any offset='0'])
Find all the versions related to the passed content Id. |
any
|
getActiveVersion(any contentId)
Get an active version according to content. |
numeric
|
getNumberOfVersions([string contentId=''], [boolean isActive])
Get the total version counts by content object and if the versions are active or not or all. |
Methods inherited from class cborm.models.VirtualEntityService |
---|
autoCast, convertIdValueToJavaType, convertValueToJavaType, count, countWhere, deleteAll, deleteByID, deleteByQuery, deleteWhere, evictCollection, executeQuery, exists, findAllWhere, findWhere, get, getAll, getEntityName, getKey, getOrFail, getPropertyNames, getTableName, idCast, list, new, newCriteria, onMissingMethod, setEntityName |
Methods inherited from class lucee.Component |
---|
None |
Constructor Detail |
---|
Constructor
Method Detail |
---|
Find all the versions related to the passed content Id
contentID
- The content id to get the versions formax
- Maximum records to getoffset
- The pagination offsetGet an active version according to content
contentId
- The content id to get the active version forGet the total version counts by content object and if the versions are active or not or all
contentId
- The content id to count onisActive
- If passed, it evaluated the total using active or non-active versions. If not passed, it does them all