
public.javadoc.org.spincast.website.services.NewsService.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
NewsService (org.spincast:spincast-framework 2.1.1 API)
Package org.spincast.website.services
Interface NewsService
- All Known Implementing Classes:
NewsServiceDefault
public interface NewsService
Spincast News service.
-
Method Summary
Modifier and Type
Method
Description
Gets the news entries for the RSS feed.
getNewsEntries(boolean ascOrder)
Gets all the news entries.
getNewsEntries(int startPos,
int endPos,
boolean ascOrder)
Gets news entries.
getNewsEntry(long newsId)
Gets a specific news entry.
-
Method Details
-
getNewsEntries
Gets all the news entries.
- Parameters:
ascOrder
- If true
, returns the entries by their
publication date in ascending order. Otherwise, in descending
order.
-
getNewsEntries
Gets news entries.
- Parameters:
startPos
- The position of the first entry to return. The first element
is "1", not "0".
endPos
- The position of the last entry to return (inclusive).
ascOrder
- If true
, returns the entries by their
publication date in ascending order. Otherwise, in descending
order.
- Returns:
- the news entries list and the total number of entries in the
repository.
-
getNewsEntry
Gets a specific news entry.
- Returns:
- the news entry or
null
if not found.
-
getFeedNewsEntries
Gets the news entries for the RSS feed.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy