public class DefaultCMSVersionGCDao extends AbstractCMSItemDao implements CMSVersionGCDao
CMSVersionGCDaoflexibleSearchService, modelService| Constructor and Description |
|---|
DefaultCMSVersionGCDao() |
| Modifier and Type | Method and Description |
|---|---|
SearchResult<CMSVersionModel> |
findAllExcludedBy(java.util.Collection<CMSVersionModel> excludedVersions,
PageableData pageableData)
Returns all cms versions omitting the excludedVersions
|
java.util.List<CMSVersionModel> |
findRetainableVersions(java.util.Date maxAgeDate)
Returns all cms versions that are either marked as retain TRUE or have a valid non-null label and were created after maxAgeDate
|
buildQuery, findSortQuery, getCmsSortQueryDataRegistry, setCmsSortQueryDataRegistrygetAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelServicepublic java.util.List<CMSVersionModel> findRetainableVersions(java.util.Date maxAgeDate)
CMSVersionGCDaofindRetainableVersions in interface CMSVersionGCDaomaxAgeDate - the max age that a cms version should be retained. If maxAgeDate is null then this param is ignored.public SearchResult<CMSVersionModel> findAllExcludedBy(java.util.Collection<CMSVersionModel> excludedVersions, PageableData pageableData)
CMSVersionGCDaofindAllExcludedBy in interface CMSVersionGCDaoexcludedVersions - the cms versions to exclude from the resulting listpageableData - the pagination objectCopyright © 2018 SAP SE. All Rights Reserved.