Interface CMSItemSearchService
- All Known Implementing Classes:
DefaultFlexibleCMSItemSearchService
public interface CMSItemSearchService
An interface for searching for CMSItems
-
Method Summary
Modifier and TypeMethodDescriptionfindCMSItems(CMSItemSearchData cmsItemSearchData, PageableData pageableData) Paged Search for CMSItemsbooleanhasCommonAncestorForTypeCodes(List<String> typeCodes) Validate if there is a common ancestor typeCode given a list of typeCodes
-
Method Details
-
findCMSItems
SearchResult<CMSItemModel> findCMSItems(CMSItemSearchData cmsItemSearchData, PageableData pageableData) Paged Search for CMSItems- Parameters:
cmsItemSearchData- All the required and optional search params, excluding pagingpageableData- Paging search params- Returns:
- The search results and paging information
-
hasCommonAncestorForTypeCodes
Validate if there is a common ancestor typeCode given a list of typeCodes- Parameters:
typeCodes- the list of typeCodes- Returns:
- true, if a common ancestor for the given typeCodes exist.
- Throws:
IllegalArgumentException- if not able to find a common ancestor for the given typeCodes.
-