@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,
String dbname) |
void |
addTeamRoom(String user,
String teamRoomId,
String dbName) |
void |
addTeamUsers(String teamRoomId,
List<String> users,
String dbName) |
void |
addUserEmail(String user,
String email,
String dbName) |
void |
addUserFullName(String user,
String fullname,
String dbName) |
int |
getNumberOfUsers(String dbName) |
org.exoplatform.chat.model.RoomBean |
getRoom(String user,
String roomId,
String dbName) |
List<org.exoplatform.chat.model.SpaceBean> |
getSpaces(String user,
String dbName) |
String |
getStatus(String user,
String dbName) |
List<org.exoplatform.chat.model.RoomBean> |
getTeams(String user,
String dbName) |
org.exoplatform.chat.model.UserBean |
getUser(String user,
boolean withFavorites,
String dbName) |
org.exoplatform.chat.model.UserBean |
getUser(String user,
String dbName) |
org.exoplatform.chat.model.NotificationSettingsBean |
getUserDesktopNotificationSettings(String user,
String dbName) |
String |
getUserFullName(String user,
String dbName) |
List<org.exoplatform.chat.model.UserBean> |
getUsers(String filter,
boolean fullBean,
String dbName) |
List<org.exoplatform.chat.model.UserBean> |
getUsers(String roomId,
String dbName) |
List<org.exoplatform.chat.model.UserBean> |
getUsers(String roomId,
String filter,
int limit,
String dbName) |
List<String> |
getUsersFilterBy(String user,
String room,
String type,
String dbName) |
List<org.exoplatform.chat.model.UserBean> |
getUsersInRoomChatOneToOne(String roomId,
String dbName) |
boolean |
isAdmin(String user,
String dbName) |
boolean |
isFavorite(String user,
String targetUser,
String dbName) |
void |
removeFavorite(String user,
String room,
String dbName) |
void |
removeTeamUsers(String teamRoomId,
List<String> users,
String dbName) |
void |
setAsAdmin(String user,
boolean isAdmin,
String dbName) |
void |
setNotificationTrigger(String user,
String notifCond,
String dbName)
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,
String dbName)
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,
String dbName,
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 dbName) |
String |
setStatus(String user,
String status,
String dbName) |
void |
toggleFavorite(String user,
String targetUser,
String dbName) |
public void toggleFavorite(String user, String targetUser, String dbName)
toggleFavorite in interface org.exoplatform.chat.services.UserServicepublic void addFavorite(String user, String room, String dbname)
addFavorite in interface org.exoplatform.chat.services.UserServicepublic void removeFavorite(String user, String room, String dbName)
removeFavorite in interface org.exoplatform.chat.services.UserServicepublic void setPreferredNotification(String user, String notifManner, String dbName) throws Exception
setPreferredNotification in interface org.exoplatform.chat.services.UserServiceExceptionpublic void setNotificationTrigger(String user, String notifCond, String dbName) throws Exception
setNotificationTrigger in interface org.exoplatform.chat.services.UserServiceExceptionpublic void setRoomNotificationTrigger(String user, String room, String notifCondition, String notifConditionType, String dbName, long time) throws Exception
setRoomNotificationTrigger in interface org.exoplatform.chat.services.UserServiceExceptionpublic org.exoplatform.chat.model.NotificationSettingsBean getUserDesktopNotificationSettings(String user, String dbName) throws org.json.JSONException
getUserDesktopNotificationSettings in interface org.exoplatform.chat.services.UserServiceorg.json.JSONExceptionpublic boolean isFavorite(String user, String targetUser, String dbName)
isFavorite in interface org.exoplatform.chat.services.UserServicepublic void addUserFullName(String user, String fullname, String dbName)
addUserFullName in interface org.exoplatform.chat.services.UserServicepublic void addUserEmail(String user, String email, String dbName)
addUserEmail in interface org.exoplatform.chat.services.UserServicepublic void setSpaces(String user, List<org.exoplatform.chat.model.SpaceBean> spaces, String dbName)
setSpaces in interface org.exoplatform.chat.services.UserServicepublic void addTeamRoom(String user, String teamRoomId, String dbName)
addTeamRoom in interface org.exoplatform.chat.services.UserServicepublic void addTeamUsers(String teamRoomId, List<String> users, String dbName)
addTeamUsers in interface org.exoplatform.chat.services.UserServicepublic void removeTeamUsers(String teamRoomId, List<String> users, String dbName)
removeTeamUsers in interface org.exoplatform.chat.services.UserServicepublic List<org.exoplatform.chat.model.RoomBean> getTeams(String user, String dbName)
getTeams in interface org.exoplatform.chat.services.UserServicepublic org.exoplatform.chat.model.RoomBean getRoom(String user, String roomId, String dbName)
getRoom in interface org.exoplatform.chat.services.UserServicepublic List<org.exoplatform.chat.model.SpaceBean> getSpaces(String user, String dbName)
getSpaces in interface org.exoplatform.chat.services.UserServicepublic List<org.exoplatform.chat.model.UserBean> getUsersInRoomChatOneToOne(String roomId, String dbName)
getUsersInRoomChatOneToOne in interface org.exoplatform.chat.services.UserServicepublic List<org.exoplatform.chat.model.UserBean> getUsers(String roomId, String dbName)
getUsers in interface org.exoplatform.chat.services.UserServicepublic List<org.exoplatform.chat.model.UserBean> getUsers(String filter, boolean fullBean, String dbName)
getUsers in interface org.exoplatform.chat.services.UserServicepublic List<org.exoplatform.chat.model.UserBean> getUsers(String roomId, String filter, int limit, String dbName)
getUsers in interface org.exoplatform.chat.services.UserServicepublic String setStatus(String user, String status, String dbName)
setStatus in interface org.exoplatform.chat.services.UserServicepublic void setAsAdmin(String user, boolean isAdmin, String dbName)
setAsAdmin in interface org.exoplatform.chat.services.UserServicepublic boolean isAdmin(String user, String dbName)
isAdmin in interface org.exoplatform.chat.services.UserServicepublic String getStatus(String user, String dbName)
getStatus in interface org.exoplatform.chat.services.UserServicepublic String getUserFullName(String user, String dbName)
getUserFullName in interface org.exoplatform.chat.services.UserServicepublic org.exoplatform.chat.model.UserBean getUser(String user, String dbName)
getUser in interface org.exoplatform.chat.services.UserServicepublic org.exoplatform.chat.model.UserBean getUser(String user, boolean withFavorites, String dbName)
getUser in interface org.exoplatform.chat.services.UserServicepublic List<String> getUsersFilterBy(String user, String room, String type, String dbName)
getUsersFilterBy in interface org.exoplatform.chat.services.UserServicepublic int getNumberOfUsers(String dbName)
getNumberOfUsers in interface org.exoplatform.chat.services.UserServiceCopyright © 2003–2019 eXo Platform SAS. All rights reserved.