java.lang.Object
transmatter.platform.administration.news.dao.NewDaoImpl
All Implemented Interfaces:
NewsDao

@Repository public class NewDaoImpl extends Object implements NewsDao
  • Field Details

  • Constructor Details

    • NewDaoImpl

      public NewDaoImpl()
  • Method Details

    • getContent

      public News getContent(String id)
      Description copied from interface: NewsDao
      This method
      Specified by:
      getContent in interface NewsDao
      Returns:
    • getAllContents

      public org.springframework.data.domain.Page<News> getAllContents(org.springframework.data.domain.PageRequest pageRequest)
      Specified by:
      getAllContents in interface NewsDao
    • getAllContents

      public List<News> getAllContents()
      Specified by:
      getAllContents in interface NewsDao
    • deleteContent

      public void deleteContent(String id)
      Specified by:
      deleteContent in interface NewsDao
    • updateContent

      public News updateContent(News news)
      Specified by:
      updateContent in interface NewsDao
    • searchContent

      public org.springframework.data.domain.Page<News> searchContent(String title, org.springframework.data.domain.PageRequest page)
      Specified by:
      searchContent in interface NewsDao
    • getBySource

      public org.springframework.data.domain.Page<News> getBySource(String source, org.springframework.data.domain.PageRequest page)
      Specified by:
      getBySource in interface NewsDao