git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add sync option to search
[fanfix.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 ecc1da1ef3393f2b8144c8a613b56c8343c3a458..ebc509611856b0a6f6d699a64c7a96592a68428a 100644
(file)
--- a/
src/be/nikiroo/fanfix/searchable/BasicSearchable.java
+++ b/
src/be/nikiroo/fanfix/searchable/BasicSearchable.java
@@
-83,7
+83,7
@@
public abstract class BasicSearchable {
* @throws IOException
* in case of I/O error
*/
* @throws IOException
* in case of I/O error
*/
- abstract p
rotected
void fillTag(SearchableTag tag) throws IOException;
+ abstract p
ublic
void fillTag(SearchableTag tag) throws IOException;
/**
* Search for the given term and return a list of stories satisfying this
/**
* Search for the given term and return a list of stories satisfying this
@@
-115,13
+115,18
@@
public abstract class BasicSearchable {
*
* @param tagId
* the tag to search for
*
* @param tagId
* the tag to search for
+ * @param page
+ * the page to use for result pagination (see
+ * {@link SearchableTag#getPages()}, remember to check for -1),
+ * 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(SearchableTag tag) throws IOException;
+ abstract public List<MetaData> search(SearchableTag tag, int page)
+ throws IOException;
/**
* Load a document from its url.
/**
* Load a document from its url.