Interface CMSContentCatalogDao
- All Superinterfaces:
Dao
- All Known Implementing Classes:
DefaultCMSContentCatalogDao
The Interface CMSContentCatalogDao for finding ContentCatalogs.
- Spring Bean ID:
- cmsContentCatalogDao
-
Method Summary
Modifier and TypeMethodDescriptionFind all content catalogs.findAllContentCatalogsOrderedBy(String orderField) Find all content catalogs ordered by fieldorderField.Find a single content catalog having the given id.booleanhasCMSItems(CatalogVersionModel versionModel) Checks whether there are some CMS items related to passed as parameterCatalogVersionModelobject.booleanhasCMSRelations(CatalogVersionModel versionModel) Checks whether there are someCMSRelationModelobjects related to passed as parameterCatalogVersionModelobject.
-
Method Details
-
findAllContentCatalogs
Collection<ContentCatalogModel> findAllContentCatalogs()Find all content catalogs.- Returns:
- the collection of found
ContentCatalogModelobjects or empty collection when not found
-
findAllContentCatalogsOrderedBy
Find all content catalogs ordered by fieldorderField.- Parameters:
orderField- the order field- Returns:
- the collection of found
ContentCatalogModelobjects or empty collection when not found
-
hasCMSItems
Checks whether there are some CMS items related to passed as parameterCatalogVersionModelobject.- Parameters:
versionModel- theCatalogVersionModelobject- Returns:
- true, if successful
-
hasCMSRelations
Checks whether there are someCMSRelationModelobjects related to passed as parameterCatalogVersionModelobject.- Parameters:
versionModel- theCatalogVersionModelmodel- Returns:
- true, if successful
-
findContentCatalogById
ContentCatalogModel findContentCatalogById(String id) throws UnknownIdentifierException, AmbiguousIdentifierException Find a single content catalog having the given id.- Parameters:
id- catalog id- Returns:
- Matching
ContentCatalogModel - Throws:
IllegalArgumentException- when id is null.UnknownIdentifierException- when noContentCatalogModelwith the given id could be found.AmbiguousIdentifierException- when more than oneContentCatalogModelwith the given id is found
-