Interface CMSContentCatalogDao
-
- All Superinterfaces:
Dao
- All Known Implementing Classes:
DefaultCMSContentCatalogDao
public interface CMSContentCatalogDao extends Dao
The Interface CMSContentCatalogDao for finding ContentCatalogs.- Spring Bean ID:
- cmsContentCatalogDao
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Collection<ContentCatalogModel>
findAllContentCatalogs()
Find all content catalogs.java.util.Collection<ContentCatalogModel>
findAllContentCatalogsOrderedBy(java.lang.String orderField)
Find all content catalogs ordered by fieldorderField
.ContentCatalogModel
findContentCatalogById(java.lang.String id)
Find a single content catalog having the given id.boolean
hasCMSItems(CatalogVersionModel versionModel)
Checks whether there are some CMS items related to passed as parameterCatalogVersionModel
object.boolean
hasCMSRelations(CatalogVersionModel versionModel)
Checks whether there are someCMSRelationModel
objects related to passed as parameterCatalogVersionModel
object.
-
-
-
Method Detail
-
findAllContentCatalogs
java.util.Collection<ContentCatalogModel> findAllContentCatalogs()
Find all content catalogs.- Returns:
- the collection of found
ContentCatalogModel
objects or empty collection when not found
-
findAllContentCatalogsOrderedBy
java.util.Collection<ContentCatalogModel> findAllContentCatalogsOrderedBy(java.lang.String orderField)
Find all content catalogs ordered by fieldorderField
.- Parameters:
orderField
- the order field- Returns:
- the collection of found
ContentCatalogModel
objects or empty collection when not found
-
hasCMSItems
boolean hasCMSItems(CatalogVersionModel versionModel)
Checks whether there are some CMS items related to passed as parameterCatalogVersionModel
object.- Parameters:
versionModel
- theCatalogVersionModel
object- Returns:
- true, if successful
-
hasCMSRelations
boolean hasCMSRelations(CatalogVersionModel versionModel)
Checks whether there are someCMSRelationModel
objects related to passed as parameterCatalogVersionModel
object.- Parameters:
versionModel
- theCatalogVersionModel
model- Returns:
- true, if successful
-
findContentCatalogById
ContentCatalogModel findContentCatalogById(java.lang.String id) throws UnknownIdentifierException, AmbiguousIdentifierException
Find a single content catalog having the given id.- Parameters:
id
- catalog id- Returns:
- Matching
ContentCatalogModel
- Throws:
java.lang.IllegalArgumentException
- when id is null.UnknownIdentifierException
- when noContentCatalogModel
with the given id could be found.AmbiguousIdentifierException
- when more than oneContentCatalogModel
with the given id is found
-
-