Class DefaultCMSVersionDao
java.lang.Object
de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
de.hybris.platform.cms2.servicelayer.daos.impl.DefaultCMSVersionDao
- All Implemented Interfaces:
CMSVersionDao,Dao
Default implementation of
CMSVersionDao-
Field Summary
Fields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindAllByItemUidAndItemCatalogVersion(String itemUid, CatalogVersionModel itemCatalogVersion) Finds allCMSVersionModelfor a givenCMSItemModelfindByItemUidAndLabel(String itemUid, String label, CatalogVersionModel itemCatalogVersion) Finds theCMSVersionModelfor an item identified by its itemUid containing the given labelFinds theCMSVersionModeluniquely identified by its uidfindPageVersionedByTransactionId(String transactionId) Finds the page associated to a transaction ID.Methods inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelService
-
Constructor Details
-
DefaultCMSVersionDao
public DefaultCMSVersionDao()
-
-
Method Details
-
findByUid
Description copied from interface:CMSVersionDaoFinds theCMSVersionModeluniquely identified by its uid- Specified by:
findByUidin interfaceCMSVersionDao- Parameters:
uid- theCMSVersionModeluid- Returns:
- the
CMSVersionModelthat matches the criteria or empty if not found
-
findByItemUidAndLabel
public Optional<CMSVersionModel> findByItemUidAndLabel(String itemUid, String label, CatalogVersionModel itemCatalogVersion) Description copied from interface:CMSVersionDaoFinds theCMSVersionModelfor an item identified by its itemUid containing the given label- Specified by:
findByItemUidAndLabelin interfaceCMSVersionDao- Parameters:
itemUid- the uid of the item modellabel- the label of the cms version modelitemCatalogVersion- theCatalogVersionModelto which the item belongs to- Returns:
- the
CMSVersionModelthat matches the criteria or empty if not found
-
findAllByItemUidAndItemCatalogVersion
public List<CMSVersionModel> findAllByItemUidAndItemCatalogVersion(String itemUid, CatalogVersionModel itemCatalogVersion) Description copied from interface:CMSVersionDaoFinds allCMSVersionModelfor a givenCMSItemModel- Specified by:
findAllByItemUidAndItemCatalogVersionin interfaceCMSVersionDao- Parameters:
itemUid- the uid of theCMSItemModelitemCatalogVersion- theCatalogVersionModelto which theCMSItemModelbelongs.- Returns:
- A List of
CMSVersionModel
-
findPageVersionedByTransactionId
Description copied from interface:CMSVersionDaoFinds the page associated to a transaction ID.When a page is versioned, the page and all its associated items are versioned. Each of them has a different version, but they all share the same transactionId; only one page can be associated to a transaction ID.
- Specified by:
findPageVersionedByTransactionIdin interfaceCMSVersionDao- Parameters:
transactionId- The ID of the transaction for which to find its associated page.- Returns:
- an
Optionalcontaining the page associated to the given transactionId; can beOptional#empty()when the transactionId identifies a transaction where a page was not versioned.
-