@Named(value="userService") @ApplicationScoped @Singleton public class UserServiceImpl extends Object implements org.exoplatform.chat.services.UserService
ANONIM_USER, PREFERRED_NOTIFICATION, PREFERRED_NOTIFICATION_TRIGGER, PREFERRED_ROOM_NOTIFICATION_TRIGGER, STATUS_AVAILABLE, STATUS_AWAY, STATUS_DONOTDISTURB, STATUS_INVISIBLE, STATUS_OFFLINE, STATUS_SPACE, STATUS_TEAM, SUPPORT_USER| Constructor and Description |
|---|
UserServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFavorite(String user,
String room) |
void |
addTeamRoom(String user,
String teamRoomId) |
void |
addTeamUsers(String teamRoomId,
List<String> users) |
void |
addUserEmail(String user,
String email) |
void |
addUserFullName(String user,
String fullname) |
void |
deleteUser(String user) |
int |
getNumberOfUsers() |
org.exoplatform.chat.model.RoomBean |
getRoom(String user,
String roomId) |
List<org.exoplatform.chat.model.SpaceBean> |
getSpaces(String user) |
String |
getStatus(String user) |
List<org.exoplatform.chat.model.RoomBean> |
getTeams(String user) |
org.exoplatform.chat.model.UserBean |
getUser(String user) |
org.exoplatform.chat.model.UserBean |
getUser(String user,
boolean withFavorites) |
org.exoplatform.chat.model.NotificationSettingsBean |
getUserDesktopNotificationSettings(String user) |
String |
getUserFullName(String user) |
List<org.exoplatform.chat.model.UserBean> |
getUsers(String roomId) |
List<org.exoplatform.chat.model.UserBean> |
getUsers(String filter,
boolean fullBean) |
List<org.exoplatform.chat.model.UserBean> |
getUsers(String roomId,
List<String> onlineUsers,
String filter,
int limit,
boolean onlyOnlineUsers) |
List<org.exoplatform.chat.model.UserBean> |
getUsers(String roomId,
String filter,
int limit) |
long |
getUsersCount(String room,
String filter) |
List<String> |
getUsersFilterBy(String user,
String room,
String type) |
List<org.exoplatform.chat.model.UserBean> |
getUsersInRoomChatOneToOne(String roomId) |
boolean |
isAdmin(String user) |
boolean |
isFavorite(String user,
String targetUser) |
void |
removeFavorite(String user,
String room) |
void |
removeTeamUsers(String teamRoomId,
List<String> users) |
void |
setAsAdmin(String user,
boolean isAdmin) |
void |
setEnabledUser(String user,
Boolean isEnabled) |
void |
setNotificationTrigger(String user,
String notifCond)
This methode is responsible for setting a notification triggers for a specific user
available triggers :
-mention
-even-on-do-not-disturb
|
void |
setPreferredNotification(String user,
String notifManner)
This methode is responsible for setting a notification channel for a specific user
available channels :
-on-site
-desktop
-bip
|
void |
setRoomNotificationTrigger(String user,
String room,
String notifCondition,
String notifConditionType,
long time)
This methode is responsible for setting a notification triggers for a specific user in a specific room
available triggers :
-mention
-key-words
|
void |
setSpaces(String user,
List<org.exoplatform.chat.model.SpaceBean> spaces) |
String |
setStatus(String user,
String status) |
void |
toggleFavorite(String user,
String targetUser) |
public void toggleFavorite(String user, String targetUser)
toggleFavorite in interface org.exoplatform.chat.services.UserServicepublic void addFavorite(String user, String room)
addFavorite in interface org.exoplatform.chat.services.UserServicepublic void removeFavorite(String user, String room)
removeFavorite in interface org.exoplatform.chat.services.UserServicepublic void setPreferredNotification(String user, String notifManner) throws Exception
setPreferredNotification in interface org.exoplatform.chat.services.UserServiceExceptionpublic void setNotificationTrigger(String user, String notifCond) throws Exception
setNotificationTrigger in interface org.exoplatform.chat.services.UserServiceExceptionpublic void setRoomNotificationTrigger(String user, String room, String notifCondition, String notifConditionType, long time) throws Exception
setRoomNotificationTrigger in interface org.exoplatform.chat.services.UserServiceExceptionpublic org.exoplatform.chat.model.NotificationSettingsBean getUserDesktopNotificationSettings(String user) throws org.json.JSONException
getUserDesktopNotificationSettings in interface org.exoplatform.chat.services.UserServiceorg.json.JSONExceptionpublic boolean isFavorite(String user, String targetUser)
isFavorite in interface org.exoplatform.chat.services.UserServicepublic void addUserFullName(String user, String fullname)
addUserFullName in interface org.exoplatform.chat.services.UserServicepublic void addUserEmail(String user, String email)
addUserEmail in interface org.exoplatform.chat.services.UserServicepublic void deleteUser(String user)
deleteUser in interface org.exoplatform.chat.services.UserServicepublic void setEnabledUser(String user, Boolean isEnabled)
setEnabledUser in interface org.exoplatform.chat.services.UserServicepublic void setSpaces(String user, List<org.exoplatform.chat.model.SpaceBean> spaces)
setSpaces in interface org.exoplatform.chat.services.UserServicepublic void addTeamRoom(String user, String teamRoomId)
addTeamRoom in interface org.exoplatform.chat.services.UserServicepublic void addTeamUsers(String teamRoomId, List<String> users)
addTeamUsers in interface org.exoplatform.chat.services.UserServicepublic void removeTeamUsers(String teamRoomId, List<String> users)
removeTeamUsers in interface org.exoplatform.chat.services.UserServicepublic List<org.exoplatform.chat.model.RoomBean> getTeams(String user)
getTeams in interface org.exoplatform.chat.services.UserServicepublic org.exoplatform.chat.model.RoomBean getRoom(String user, String roomId)
getRoom in interface org.exoplatform.chat.services.UserServicepublic List<org.exoplatform.chat.model.SpaceBean> getSpaces(String user)
getSpaces in interface org.exoplatform.chat.services.UserServicepublic List<org.exoplatform.chat.model.UserBean> getUsersInRoomChatOneToOne(String roomId)
getUsersInRoomChatOneToOne in interface org.exoplatform.chat.services.UserServicepublic List<org.exoplatform.chat.model.UserBean> getUsers(String roomId)
getUsers in interface org.exoplatform.chat.services.UserServicepublic List<org.exoplatform.chat.model.UserBean> getUsers(String filter, boolean fullBean)
getUsers in interface org.exoplatform.chat.services.UserServicepublic List<org.exoplatform.chat.model.UserBean> getUsers(String roomId, String filter, int limit)
getUsers in interface org.exoplatform.chat.services.UserServicepublic List<org.exoplatform.chat.model.UserBean> getUsers(String roomId, List<String> onlineUsers, String filter, int limit, boolean onlyOnlineUsers)
getUsers in interface org.exoplatform.chat.services.UserServicepublic String setStatus(String user, String status)
setStatus in interface org.exoplatform.chat.services.UserServicepublic void setAsAdmin(String user, boolean isAdmin)
setAsAdmin in interface org.exoplatform.chat.services.UserServicepublic boolean isAdmin(String user)
isAdmin in interface org.exoplatform.chat.services.UserServicepublic String getStatus(String user)
getStatus in interface org.exoplatform.chat.services.UserServicepublic String getUserFullName(String user)
getUserFullName in interface org.exoplatform.chat.services.UserServicepublic org.exoplatform.chat.model.UserBean getUser(String user)
getUser in interface org.exoplatform.chat.services.UserServicepublic org.exoplatform.chat.model.UserBean getUser(String user, boolean withFavorites)
getUser in interface org.exoplatform.chat.services.UserServicepublic List<String> getUsersFilterBy(String user, String room, String type)
getUsersFilterBy in interface org.exoplatform.chat.services.UserServicepublic int getNumberOfUsers()
getNumberOfUsers in interface org.exoplatform.chat.services.UserServiceCopyright © 2003–2021 eXo Platform SAS. All rights reserved.