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.ContentCatalogModelfindContentCatalogById(java.lang.String id)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 Detail
-
findAllContentCatalogs
java.util.Collection<ContentCatalogModel> findAllContentCatalogs()
Find all content catalogs.- Returns:
- the collection of found
ContentCatalogModelobjects 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
ContentCatalogModelobjects or empty collection when not found
-
hasCMSItems
boolean hasCMSItems(CatalogVersionModel versionModel)
Checks whether there are some CMS items related to passed as parameterCatalogVersionModelobject.- Parameters:
versionModel- theCatalogVersionModelobject- Returns:
- true, if successful
-
hasCMSRelations
boolean hasCMSRelations(CatalogVersionModel versionModel)
Checks whether there are someCMSRelationModelobjects related to passed as parameterCatalogVersionModelobject.- Parameters:
versionModel- theCatalogVersionModelmodel- 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 noContentCatalogModelwith the given id could be found.AmbiguousIdentifierException- when more than oneContentCatalogModelwith the given id is found
-
-