Package org.exoplatform.chat.services
Interface UserService
-
public interface UserService
-
-
Field Summary
Fields Modifier and Type Field Description static StringANONIM_USERstatic StringPREFERRED_NOTIFICATIONstatic StringPREFERRED_NOTIFICATION_TRIGGERstatic StringPREFERRED_ROOM_NOTIFICATION_TRIGGERstatic StringSTATUS_AVAILABLEstatic StringSTATUS_AWAYstatic StringSTATUS_DONOTDISTURBstatic StringSTATUS_INVISIBLEstatic StringSTATUS_OFFLINEstatic StringSTATUS_SPACEstatic StringSTATUS_TEAMstatic StringSUPPORT_USER
-
Method Summary
-
-
-
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_SPACE
static final String STATUS_SPACE
- See Also:
- Constant Field Values
-
STATUS_TEAM
static final String STATUS_TEAM
- See Also:
- Constant Field Values
-
ANONIM_USER
static final String ANONIM_USER
- See Also:
- Constant Field Values
-
SUPPORT_USER
static final String SUPPORT_USER
- 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
-
-
Method Detail
-
toggleFavorite
@Deprecated void toggleFavorite(String user, String targetUser)
Deprecated.useaddFavorite(String, String)andremoveFavorite(String, String)instead- Parameters:
user-targetUser-
-
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
NotificationSettingsBean getUserDesktopNotificationSettings(String user) throws org.json.JSONException
- Throws:
org.json.JSONException
-
deleteUser
default void deleteUser(String user)
-
getUsers
List<UserBean> getUsers(String roomId, List<String> onlineUsers, String filter, int limit, boolean onlyOnlineUsers)
-
setAsAdmin
void setAsAdmin(String user, boolean isAdmin)
-
isAdmin
boolean isAdmin(String user)
-
getNumberOfUsers
int getNumberOfUsers()
-
-