Class DefaultCMSVersionGCDao
- java.lang.Object
-
- de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
-
- de.hybris.platform.cms2.servicelayer.daos.impl.AbstractCMSItemDao
-
- de.hybris.platform.cms2.servicelayer.daos.impl.DefaultCMSVersionGCDao
-
- All Implemented Interfaces:
CMSVersionGCDao
,Dao
public class DefaultCMSVersionGCDao extends AbstractCMSItemDao implements CMSVersionGCDao
Default implementation ofCMSVersionGCDao
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService
-
-
Constructor Summary
Constructors Constructor Description DefaultCMSVersionGCDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchResult<CMSVersionModel>
findAllExcludedBy(java.util.Collection<CMSVersionModel> excludedVersions, PageableData pageableData)
Returns all cms versions omitting the excludedVersionsjava.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-
Methods inherited from class de.hybris.platform.cms2.servicelayer.daos.impl.AbstractCMSItemDao
buildQuery, findSortQuery, getCmsSortQueryDataRegistry, setCmsSortQueryDataRegistry
-
Methods inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelService
-
-
-
-
Method Detail
-
findRetainableVersions
public java.util.List<CMSVersionModel> findRetainableVersions(java.util.Date maxAgeDate)
Description copied from interface:CMSVersionGCDao
Returns all cms versions that are either marked as retain TRUE or have a valid non-null label and were created after maxAgeDate- Specified by:
findRetainableVersions
in interfaceCMSVersionGCDao
- Parameters:
maxAgeDate
- the max age that a cms version should be retained. If maxAgeDate is null then this param is ignored.- Returns:
- The list of retainable cms versions
-
findAllExcludedBy
public SearchResult<CMSVersionModel> findAllExcludedBy(java.util.Collection<CMSVersionModel> excludedVersions, PageableData pageableData)
Description copied from interface:CMSVersionGCDao
Returns all cms versions omitting the excludedVersions- Specified by:
findAllExcludedBy
in interfaceCMSVersionGCDao
- Parameters:
excludedVersions
- the cms versions to exclude from the resulting listpageableData
- the pagination object- Returns:
- the search result object containing the resulting list and the pagination object.
-
-