Class NewDaoImpl
java.lang.Object
transmatter.platform.administration.news.dao.NewDaoImpl
- All Implemented Interfaces:
NewsDao
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteContent(String id) org.springframework.data.domain.Page<News>getAllContents(org.springframework.data.domain.PageRequest pageRequest) org.springframework.data.domain.Page<News>getBySource(String source, org.springframework.data.domain.PageRequest page) getContent(String id) This methodorg.springframework.data.domain.Page<News>searchContent(String title, org.springframework.data.domain.PageRequest page) updateContent(News news)
-
Field Details
-
newsRepository
-
-
Constructor Details
-
NewDaoImpl
public NewDaoImpl()
-
-
Method Details
-
getContent
Description copied from interface:NewsDaoThis method- Specified by:
getContentin interfaceNewsDao- Returns:
-
getAllContents
public org.springframework.data.domain.Page<News> getAllContents(org.springframework.data.domain.PageRequest pageRequest) - Specified by:
getAllContentsin interfaceNewsDao
-
getAllContents
- Specified by:
getAllContentsin interfaceNewsDao
-
deleteContent
- Specified by:
deleteContentin interfaceNewsDao
-
updateContent
- Specified by:
updateContentin interfaceNewsDao
-
searchContent
public org.springframework.data.domain.Page<News> searchContent(String title, org.springframework.data.domain.PageRequest page) - Specified by:
searchContentin interfaceNewsDao
-
getBySource
public org.springframework.data.domain.Page<News> getBySource(String source, org.springframework.data.domain.PageRequest page) - Specified by:
getBySourcein interfaceNewsDao
-