git://git.nikiroo.be
/
nikiroo-utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
allow pagination for search keywords
[nikiroo-utils.git]
/
src
/
be
/
nikiroo
/
fanfix
/
searchable
/
BasicSearchable.java
diff --git
a/src/be/nikiroo/fanfix/searchable/BasicSearchable.java
b/src/be/nikiroo/fanfix/searchable/BasicSearchable.java
index ebc509611856b0a6f6d699a64c7a96592a68428a..979bf5ecee225e2656afb8b862adb3c98b7e307f 100644
(file)
--- a/
src/be/nikiroo/fanfix/searchable/BasicSearchable.java
+++ b/
src/be/nikiroo/fanfix/searchable/BasicSearchable.java
@@
-96,13
+96,16
@@
public abstract class BasicSearchable {
*
* @param search
* the term to search for
*
* @param search
* the term to search for
+ * @param page
+ * the page to use for result pagination, index is 1-based
*
* @return a list of stories that satisfy that search term
*
* @throws IOException
* in case of I/O error
*/
*
* @return a list of stories that satisfy that search term
*
* @throws IOException
* in case of I/O error
*/
- abstract public List<MetaData> search(String search) throws IOException;
+ abstract public List<MetaData> search(String search, int page)
+ throws IOException;
/**
* Search for the given tag and return a list of stories satisfying this
/**
* Search for the given tag and return a list of stories satisfying this
@@
-113,7
+116,7
@@
public abstract class BasicSearchable {
* <p>
* URL is guaranteed to be usable, LUID will always be NULL.
*
* <p>
* URL is guaranteed to be usable, LUID will always be NULL.
*
- * @param tag
Id
+ * @param tag
* the tag to search for
* @param page
* the page to use for result pagination (see
* the tag to search for
* @param page
* the page to use for result pagination (see