Interface CMSItemDao

All Known Implementing Classes:
DefaultCMSItemDao

public interface CMSItemDao
The Interface CMSItemDao for finding CMSItemModel objects generically.
Spring Bean ID:
cmsItemDao
  • Method Details

    • findByUid

      CMSItemModel findByUid(String uid, CatalogVersionModel catalogVersion)
      Finds the CMSItemModel uniquely identified by its uid and catalogVersion
      Parameters:
      uid - the CMSItemModel uid
      catalogVersion - the CatalogVersionModel to which the item belongs to
      Returns:
      the concrete class instance of CMSItemModel
    • findByTypeCodeAndName

      SearchResult<CMSItemModel> findByTypeCodeAndName(CatalogVersionModel catalogVersion, String typeCode, String name)
      Find all CMS Items on a given catalog and typeCode matching the provided name. The name comparison is not case sensitive.
      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.