@API(status=STABLE)
public interface OboUserService
Modifier and Type | Method and Description |
---|---|
void |
followUser(java.util.List<java.lang.Long> followerIds,
java.lang.Long userId)
Make a list of users to start following a specific user.
|
java.util.List<UserV2> |
listUsersByEmails(java.util.List<java.lang.String> emailList)
|
java.util.List<UserV2> |
listUsersByEmails(java.util.List<java.lang.String> emailList,
java.lang.Boolean local,
java.lang.Boolean active)
|
java.util.List<UserV2> |
listUsersByIds(java.util.List<java.lang.Long> uidList)
|
java.util.List<UserV2> |
listUsersByIds(java.util.List<java.lang.Long> uidList,
java.lang.Boolean local,
java.lang.Boolean active)
|
java.util.List<UserV2> |
listUsersByUsernames(java.util.List<java.lang.String> usernameList)
|
java.util.List<UserV2> |
listUsersByUsernames(java.util.List<java.lang.String> usernameList,
java.lang.Boolean active)
|
java.util.stream.Stream<UserV2> |
searchAllUsers(UserSearchQuery query,
java.lang.Boolean local)
|
java.util.stream.Stream<UserV2> |
searchAllUsers(UserSearchQuery query,
java.lang.Boolean local,
StreamPaginationAttribute pagination)
|
java.util.List<UserV2> |
searchUsers(UserSearchQuery query,
java.lang.Boolean local)
|
java.util.List<UserV2> |
searchUsers(UserSearchQuery query,
java.lang.Boolean local,
PaginationAttribute pagination)
|
void |
unfollowUser(java.util.List<java.lang.Long> followerIds,
java.lang.Long userId)
Make a list of users to stop following a specific user.
|
java.util.List<UserV2> listUsersByIds(@Nonnull java.util.List<java.lang.Long> uidList, @Nullable java.lang.Boolean local, @Nullable java.lang.Boolean active)
uidList
- List of user idslocal
- If true then a local DB search will be performed and only local pod users will be
returned. If absent or false then a directory search will be performed and users
from other pods who are visible to the calling user will also be returned.active
- If not set all user status will be returned,
if true all active users will be returned,
if false all inactive users will be returnedjava.util.List<UserV2> listUsersByIds(@Nonnull java.util.List<java.lang.Long> uidList)
uidList
- List of user idsjava.util.List<UserV2> listUsersByEmails(@Nonnull java.util.List<java.lang.String> emailList, @Nullable java.lang.Boolean local, @Nullable java.lang.Boolean active)
emailList
- List of emailslocal
- If true then a local DB search will be performed and only local pod users will be
returned. If absent or false then a directory search will be performed and users
from other pods who are visible to the calling user will also be returned.active
- If not set all user status will be returned,
if true all active users will be returned,
if false all inactive users will be returnedjava.util.List<UserV2> listUsersByEmails(@Nonnull java.util.List<java.lang.String> emailList)
emailList
- List of emailsjava.util.List<UserV2> listUsersByUsernames(@Nonnull java.util.List<java.lang.String> usernameList, @Nullable java.lang.Boolean active)
usernameList
- List of usernamesactive
- If not set all user status will be returned,
if true all active users will be returned,
if false all inactive users will be returnedjava.util.List<UserV2> listUsersByUsernames(@Nonnull java.util.List<java.lang.String> usernameList)
usernameList
- List of usernamesjava.util.List<UserV2> searchUsers(@Nonnull UserSearchQuery query, @Nullable java.lang.Boolean local)
query
- Searching query containing complicated information like title, location, company...local
- If true then a local DB search will be performed and only local pod users will be
returned. If absent or false then a directory search will be performed and users
from other pods who are visible to the calling user will also be returned.java.util.List<UserV2> searchUsers(@Nonnull UserSearchQuery query, @Nullable java.lang.Boolean local, @Nonnull PaginationAttribute pagination)
query
- Searching query containing complicated information like title, location, company...local
- If true then a local DB search will be performed and only local pod users will be
returned. If absent or false then a directory search will be performed and users
from other pods who are visible to the calling user will also be returned.pagination
- The skip and limit for pagination.@API(status=EXPERIMENTAL) java.util.stream.Stream<UserV2> searchAllUsers(@Nonnull UserSearchQuery query, @Nullable java.lang.Boolean local)
query
- Searching query containing complicated information like title, location, company...local
- If true then a local DB search will be performed and only local pod users will be
returned. If absent or false then a directory search will be performed and users
from other pods who are visible to the calling user will also be returned.Stream
of users found by query@API(status=EXPERIMENTAL) java.util.stream.Stream<UserV2> searchAllUsers(@Nonnull UserSearchQuery query, @Nullable java.lang.Boolean local, @Nonnull StreamPaginationAttribute pagination)
query
- Searching query containing complicated information like title, location, company...local
- If true then a local DB search will be performed and only local pod users will be
returned. If absent or false then a directory search will be performed and users
from other pods who are visible to the calling user will also be returned.pagination
- The chunkSize and totalSize for pagination.Stream
of users found by queryvoid followUser(@Nonnull java.util.List<java.lang.Long> followerIds, @Nonnull java.lang.Long userId)
UserService.followUser(List, Long)
followerIds
- List of ids of the followers.userId
- The id of the user to be followed.void unfollowUser(@Nonnull java.util.List<java.lang.Long> followerIds, @Nonnull java.lang.Long userId)
UserService.unfollowUser(List, Long)
followerIds
- List of the ids of the followers.userId
- The id of the user to be unfollowed.