Package org.exoplatform.chat.services
Interface UserDataStorage
-
- All Known Implementing Classes:
UserMongoDataStorage
public interface UserDataStorageUser data storage
-
-
Field Summary
Fields Modifier and Type Field Description static StringNOTIFICATIONS_SETTINGSstatic StringPREFERRED_NOTIFICATIONstatic StringPREFERRED_NOTIFICATION_TRIGGERstatic StringPREFERRED_ROOM_NOTIFICATION_TRIGGERstatic StringROOM_NOTIF_TRIGGER_WHEN_KEY_WORDstatic StringSTATUS_AVAILABLEstatic StringSTATUS_AWAYstatic StringSTATUS_DONOTDISTURBstatic StringSTATUS_INVISIBLEstatic StringSTATUS_NONEstatic StringSTATUS_OFFLINE
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidaddFavorite(String user, String targetUser)voidaddTeamRoom(String user, String teamRoomId)voidaddUserEmail(String user, String email)voidaddUserFullName(String user, String fullname)default voiddeleteUser(String user)StringgetExternalValue(String user)intgetNumberOfUsers()org.exoplatform.chat.model.RoomBeangetRoom(String user, String roomId)List<org.exoplatform.chat.model.SpaceBean>getSpaces(String user)StringgetStatus(String user)List<org.exoplatform.chat.model.RoomBean>getTeams(String user)org.exoplatform.chat.model.UserBeangetUser(String user)org.exoplatform.chat.model.UserBeangetUser(String user, boolean withFavorites)org.exoplatform.chat.model.NotificationSettingsBeangetUserDesktopNotificationSettings(String user)StringgetUserFullName(String user)List<org.exoplatform.chat.model.UserBean>getUsers(String roomId, String filter, int limit)List<org.exoplatform.chat.model.UserBean>getUsers(String roomId, List<String> onlineUsers, String filter, int limit, boolean onlyOnlineUsers)LonggetUsersCount(String roomId, String filter)LonggetUsersCount(String roomId, String filter, boolean activeUsers)List<String>getUsersFilterBy(String user, String room, String type)List<org.exoplatform.chat.model.UserBean>getUsersInRoomChatOneToOne(String roomId)booleanisAdmin(String user)booleanisFavorite(String user, String targetUser)voidremoveFavorite(String user, String targetUser)voidremoveTeamUsers(String teamRoomId, List<String> users)voidsetAsAdmin(String user, boolean isAdmin)default voidsetEnabledUser(String user, Boolean isEnabled)default voidsetExternalUser(String user, String external)voidsetNotificationTrigger(String user, String notifCond)voidsetPreferredNotification(String user, String notifManner)voidsetRoomNotificationTrigger(String user, String room, String notifCond, String notifConditionType, long time)voidsetSpaces(String user, List<org.exoplatform.chat.model.SpaceBean> spaces)StringsetStatus(String user, String status)
-
-
-
Field Detail
-
STATUS_AVAILABLE
static final String STATUS_AVAILABLE
- See Also:
- Constant Field Values
-
STATUS_DONOTDISTURB
static final String STATUS_DONOTDISTURB
- See Also:
- Constant Field Values
-
STATUS_AWAY
static final String STATUS_AWAY
- See Also:
- Constant Field Values
-
STATUS_INVISIBLE
static final String STATUS_INVISIBLE
- See Also:
- Constant Field Values
-
STATUS_OFFLINE
static final String STATUS_OFFLINE
- See Also:
- Constant Field Values
-
STATUS_NONE
static final String STATUS_NONE
- See Also:
- Constant Field Values
-
PREFERRED_ROOM_NOTIFICATION_TRIGGER
static final String PREFERRED_ROOM_NOTIFICATION_TRIGGER
- See Also:
- Constant Field Values
-
PREFERRED_NOTIFICATION
static final String PREFERRED_NOTIFICATION
- See Also:
- Constant Field Values
-
PREFERRED_NOTIFICATION_TRIGGER
static final String PREFERRED_NOTIFICATION_TRIGGER
- See Also:
- Constant Field Values
-
ROOM_NOTIF_TRIGGER_WHEN_KEY_WORD
static final String ROOM_NOTIF_TRIGGER_WHEN_KEY_WORD
- See Also:
- Constant Field Values
-
NOTIFICATIONS_SETTINGS
static final String NOTIFICATIONS_SETTINGS
- See Also:
- Constant Field Values
-
-
Method Detail
-
setPreferredNotification
void setPreferredNotification(String user, String notifManner) throws Exception
- Throws:
Exception
-
setNotificationTrigger
void setNotificationTrigger(String user, String notifCond) throws Exception
- Throws:
Exception
-
setRoomNotificationTrigger
void setRoomNotificationTrigger(String user, String room, String notifCond, String notifConditionType, long time) throws Exception
- Throws:
Exception
-
getUserDesktopNotificationSettings
org.exoplatform.chat.model.NotificationSettingsBean getUserDesktopNotificationSettings(String user) throws org.json.JSONException
- Throws:
org.json.JSONException
-
deleteUser
default void deleteUser(String user)
-
getUsers
List<org.exoplatform.chat.model.UserBean> getUsers(String roomId, String filter, int limit)
-
getUsers
List<org.exoplatform.chat.model.UserBean> getUsers(String roomId, List<String> onlineUsers, String filter, int limit, boolean onlyOnlineUsers)
-
getUsersInRoomChatOneToOne
List<org.exoplatform.chat.model.UserBean> getUsersInRoomChatOneToOne(String roomId)
-
setAsAdmin
void setAsAdmin(String user, boolean isAdmin)
-
isAdmin
boolean isAdmin(String user)
-
getUser
org.exoplatform.chat.model.UserBean getUser(String user)
-
getUser
org.exoplatform.chat.model.UserBean getUser(String user, boolean withFavorites)
-
getNumberOfUsers
int getNumberOfUsers()
-
-