aboutsummaryrefslogtreecommitdiff
path: root/juick-common/src/main/java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-09-13 15:45:52 +0300
committerGravatar Vitaly Takmazov2018-09-13 15:45:52 +0300
commit62d4f6f3fabe69b0e08195e99eedd72442bffa68 (patch)
tree65d54c9d2ffe5620d27224825fb4050abe2ea912 /juick-common/src/main/java
parentd6bd717e553be5d339cf05bca099539844ba68a5 (diff)
hide banned from search
Diffstat (limited to 'juick-common/src/main/java')
-rw-r--r--juick-common/src/main/java/com/juick/service/MessagesService.java4
-rw-r--r--juick-common/src/main/java/com/juick/service/SearchService.java6
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);
}