public interface CMSVersionDao
CMSVersionModel objects.| 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.
|
java.util.Optional<CMSVersionModel> findByUid(java.lang.String uid)
CMSVersionModel uniquely identified by its uiduid - the CMSVersionModel uidCMSVersionModel that matches the criteria or empty if not foundjava.lang.IllegalArgumentException - if uid is emptyjava.util.Optional<CMSVersionModel> findByItemUidAndLabel(java.lang.String itemUid, java.lang.String label, CatalogVersionModel itemCatalogVersion)
CMSVersionModel for an item identified by its itemUid containing the given labelitemUid - 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 foundjava.lang.IllegalArgumentException - if either itemUid, label, or itemCatalogVersion is empty or nulljava.util.List<CMSVersionModel> findAllByItemUidAndItemCatalogVersion(java.lang.String itemUid, CatalogVersionModel itemCatalogVersion)
CMSVersionModel for a given CMSItemModelitemUid - the uid of the CMSItemModelitemCatalogVersion - the CatalogVersionModel to which the CMSItemModel belongs.CMSVersionModeljava.util.Optional<AbstractPageModel> findPageVersionedByTransactionId(java.lang.String transactionId)
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.
transactionId - 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.