public class DefaultCMSVersionDao extends AbstractItemDao implements CMSVersionDao
CMSVersionDaoflexibleSearchService, modelService| Constructor and Description |
|---|
DefaultCMSVersionDao() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<CMSVersionModel> |
findAllByItemUidAndItemCatalogVersion(java.lang.String itemUid,
CatalogVersionModel itemCatalogVersion)
Finds all
CMSVersionModel for a given CMSItemModel |
java.util.Optional<CMSVersionModel> |
findByItemUidAndLabel(java.lang.String itemUid,
java.lang.String label,
CatalogVersionModel itemCatalogVersion)
Finds the
CMSVersionModel for an item identified by its itemUid containing the given label |
java.util.Optional<CMSVersionModel> |
findByUid(java.lang.String uid)
Finds the
CMSVersionModel uniquely identified by its uid |
java.util.Optional<AbstractPageModel> |
findPageVersionedByTransactionId(java.lang.String transactionId)
Finds the page associated to a transaction ID.
|
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelServicepublic java.util.Optional<CMSVersionModel> findByUid(java.lang.String uid)
CMSVersionDaoCMSVersionModel uniquely identified by its uidfindByUid in interface CMSVersionDaouid - the CMSVersionModel uidCMSVersionModel that matches the criteria or empty if not foundpublic java.util.Optional<CMSVersionModel> findByItemUidAndLabel(java.lang.String itemUid, java.lang.String label, CatalogVersionModel itemCatalogVersion)
CMSVersionDaoCMSVersionModel for an item identified by its itemUid containing the given labelfindByItemUidAndLabel in interface CMSVersionDaoitemUid - the uid of the item modellabel - the label of the cms version modelitemCatalogVersion - the CatalogVersionModel to which the item belongs toCMSVersionModel that matches the criteria or empty if not foundpublic java.util.List<CMSVersionModel> findAllByItemUidAndItemCatalogVersion(java.lang.String itemUid, CatalogVersionModel itemCatalogVersion)
CMSVersionDaoCMSVersionModel for a given CMSItemModelfindAllByItemUidAndItemCatalogVersion in interface CMSVersionDaoitemUid - the uid of the CMSItemModelitemCatalogVersion - the CatalogVersionModel to which the CMSItemModel belongs.CMSVersionModelpublic java.util.Optional<AbstractPageModel> findPageVersionedByTransactionId(java.lang.String transactionId)
CMSVersionDaoWhen 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.
findPageVersionedByTransactionId in interface CMSVersionDaotransactionId - The ID of the transaction for which to find its associated page.Optional containing the page associated to the given transactionId; can be
Optional#empty() when the transactionId identifies a transaction where a page was not versioned.Copyright © 2018 SAP SE. All Rights Reserved.