Package org.exoplatform.chat.services
Interface UserDataStorage
- All Known Implementing Classes:
UserMongoDataStorage
public interface UserDataStorage
User data storage
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFavorite(String user, String targetUser) voidaddTeamRoom(String user, String teamRoomId) voidaddUserEmail(String user, String email) voidaddUserFullName(String user, String fullname) default voiddeleteUser(String user) getExternalValue(String user) intorg.exoplatform.chat.model.RoomBeanList<org.exoplatform.chat.model.SpaceBean>List<org.exoplatform.chat.model.RoomBean>org.exoplatform.chat.model.UserBeanorg.exoplatform.chat.model.UserBeanorg.exoplatform.chat.model.NotificationSettingsBeangetUserFullName(String user) List<org.exoplatform.chat.model.UserBean>List<org.exoplatform.chat.model.UserBean>getUsers(String roomId, List<String> onlineUsers, String filter, int limit, boolean onlyOnlineUsers) getUsersCount(String roomId, String filter) getUsersCount(String roomId, String filter, boolean activeUsers) getUsersFilterBy(String user, String room, String type) List<org.exoplatform.chat.model.UserBean>getUsersInRoomChatOneToOne(String roomId) booleanbooleanisFavorite(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) void
-
Field Details
-
STATUS_AVAILABLE
- See Also:
-
STATUS_DONOTDISTURB
- See Also:
-
STATUS_AWAY
- See Also:
-
STATUS_INVISIBLE
- See Also:
-
STATUS_OFFLINE
- See Also:
-
STATUS_NONE
- See Also:
-
PREFERRED_ROOM_NOTIFICATION_TRIGGER
- See Also:
-
PREFERRED_NOTIFICATION
- See Also:
-
PREFERRED_NOTIFICATION_TRIGGER
- See Also:
-
ROOM_NOTIF_TRIGGER_WHEN_KEY_WORD
- See Also:
-
NOTIFICATIONS_SETTINGS
- See Also:
-
-
Method Details
-
addFavorite
-
removeFavorite
-
setPreferredNotification
- Throws:
Exception
-
setNotificationTrigger
- 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
-
isFavorite
-
addUserFullName
-
addUserEmail
-
deleteUser
-
setEnabledUser
-
setExternalUser
-
setSpaces
-
addTeamRoom
-
removeTeamUsers
-
getTeams
-
getRoom
-
getSpaces
-
getUsers
-
getUsers
-
getUsersCount
-
getUsersCount
-
getUsersInRoomChatOneToOne
-
setStatus
-
setAsAdmin
-
isAdmin
-
getStatus
-
getUserFullName
-
getExternalValue
-
getUser
-
getUser
-
getUsersFilterBy
-
getNumberOfUsers
int getNumberOfUsers()
-