public interface INewsRepository
| Modifier and Type | Method and Description |
|---|---|
List<INewsEntry> |
getNewsEntries(boolean ascOrder)
Gets all the news entries.
|
List<INewsEntry> |
getNewsEntries(int startPos,
int endPos,
boolean ascOrder)
Gets news entries.
|
INewsEntriesAndTotalNbr |
getNewsEntriesAndTotalNbr(int startPos,
int endPos,
boolean ascOrder)
Gets news entries and the number total of entries in the data source.
|
int |
getNewsEntriesTotalNumber()
Gets news entries number.
|
INewsEntry |
getNewsEntry(long newsId)
Gets a specific news entry.
|
int getNewsEntriesTotalNumber()
List<INewsEntry> getNewsEntries(boolean ascOrder)
ascOrder - If true, returns the entries by their
publication date in ascending order. Otherwise, in descending
order.List<INewsEntry> getNewsEntries(int startPos, int endPos, boolean ascOrder)
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.INewsEntriesAndTotalNbr getNewsEntriesAndTotalNbr(int startPos, int endPos, boolean ascOrder)
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.INewsEntry getNewsEntry(long newsId)
null if not found.Copyright © 2016. All rights reserved.