diff options
Diffstat (limited to 'juick-common')
-rw-r--r-- | juick-common/src/main/java/com/juick/service/MessagesService.java | 4 | ||||
-rw-r--r-- | juick-common/src/main/java/com/juick/service/SearchService.java | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/juick-common/src/main/java/com/juick/service/MessagesService.java b/juick-common/src/main/java/com/juick/service/MessagesService.java index 202e967e..77ded81e 100644 --- a/juick-common/src/main/java/com/juick/service/MessagesService.java +++ b/juick-common/src/main/java/com/juick/service/MessagesService.java @@ -86,7 +86,7 @@ public interface MessagesService { List<Integer> getPhotos(int visitorUid, int before); - List<Integer> getSearch(String search, int page); + List<Integer> getSearch(User visitor, String search, int page); List<Integer> getUserBlog(int uid, int privacy, int before); @@ -100,7 +100,7 @@ public interface MessagesService { List<Integer> getUserPhotos(int uid, int privacy, int before); - List<Integer> getUserSearch(int UID, String search, int privacy, int page); + List<Integer> getUserSearch(User visitor, int UID, String search, int privacy, int page); List<com.juick.Message> getMessages(User visitor, List<Integer> mids); diff --git a/juick-common/src/main/java/com/juick/service/SearchService.java b/juick-common/src/main/java/com/juick/service/SearchService.java index cd57eb5b..0dae5cfc 100644 --- a/juick-common/src/main/java/com/juick/service/SearchService.java +++ b/juick-common/src/main/java/com/juick/service/SearchService.java @@ -17,6 +17,8 @@ package com.juick.service; +import com.juick.User; + import java.util.List; /** @@ -25,7 +27,7 @@ import java.util.List; public interface SearchService { void setMaxResult(int maxResult); - List<Integer> searchInAllMessages(String searchString, int messageIdBefore); + List<Integer> searchInAllMessages(User visitor, String searchString, int messageIdBefore); - List<Integer> searchByStringAndUser(String searchString, final int userId, int messageIdBefore); + List<Integer> searchByStringAndUser(User visitor, String searchString, final int userId, int messageIdBefore); } |