Class DefaultCMSItemDao

  • All Implemented Interfaces:
    CMSItemDao, Dao

    public class DefaultCMSItemDao
    extends AbstractItemDao
    implements CMSItemDao
    The Interface CMSItemDao for finding CMSItemModel objects generically.
    Spring Bean ID:
    cmsItemDao
    • Constructor Detail

      • DefaultCMSItemDao

        public DefaultCMSItemDao()
    • Method Detail

      • findByTypeCodeAndName

        public SearchResult<CMSItemModel> findByTypeCodeAndName​(CatalogVersionModel catalogVersion,
                                                                java.lang.String typeCode,
                                                                java.lang.String name)
        Description copied from interface: CMSItemDao
        Find all CMS Items on a given catalog and typeCode matching the provided name. The name comparison is not case sensitive.
        Specified by:
        findByTypeCodeAndName in interface CMSItemDao
        Parameters:
        catalogVersion - the catalogVersion to count the cms items from
        typeCode - the type code we want to count from.
        name - the name of the cms item, never null.
        Returns:
        a list of cms items with the same name for a given catalog version and type code.