public final class MultiUserChatLightManager extends Manager
| Modifier and Type | Method and Description |
|---|---|
void |
blockRoom(DomainBareJid mucLightService,
Jid roomJid)
Block a room.
|
void |
blockRooms(DomainBareJid mucLightService,
List<Jid> roomsJids)
Block rooms.
|
void |
blockUser(DomainBareJid mucLightService,
Jid userJid)
Block a user.
|
void |
blockUsers(DomainBareJid mucLightService,
List<Jid> usersJids)
Block users.
|
static MultiUserChatLightManager |
getInstanceFor(XMPPConnection connection)
Get a instance of a MUC Light manager for the given connection.
|
List<DomainBareJid> |
getLocalServices()
Returns a collection with the XMPP addresses of the MUC Light services.
|
MultiUserChatLight |
getMultiUserChatLight(EntityBareJid jid)
Obtain the MUC Light.
|
List<Jid> |
getOccupiedRooms(DomainBareJid mucLightService)
Returns a List of the rooms the user occupies.
|
List<Jid> |
getRoomsBlocked(DomainBareJid mucLightService)
Get rooms blocked.
|
List<Jid> |
getUsersAndRoomsBlocked(DomainBareJid mucLightService)
Get users and rooms blocked.
|
List<Jid> |
getUsersBlocked(DomainBareJid mucLightService)
Get users blocked.
|
boolean |
isFeatureSupported(DomainBareJid mucLightService)
Returns true if Multi-User Chat Light feature is supported by the server.
|
void |
unblockRoom(DomainBareJid mucLightService,
Jid roomJid)
Unblock a room.
|
void |
unblockRooms(DomainBareJid mucLightService,
List<Jid> roomsJids)
Unblock rooms.
|
void |
unblockUser(DomainBareJid mucLightService,
Jid userJid)
Unblock a user.
|
void |
unblockUsers(DomainBareJid mucLightService,
List<Jid> usersJids)
Unblock users.
|
connection, getAuthenticatedConnectionOrThrow, schedulepublic static MultiUserChatLightManager getInstanceFor(XMPPConnection connection)
connection - public MultiUserChatLight getMultiUserChatLight(EntityBareJid jid)
jid - public boolean isFeatureSupported(DomainBareJid mucLightService) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
mucLightService - SmackException.NotConnectedExceptionXMPPException.XMPPErrorExceptionSmackException.NoResponseExceptionInterruptedExceptionpublic List<Jid> getOccupiedRooms(DomainBareJid mucLightService) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
mucLightService - XMPPException.XMPPErrorExceptionSmackException.NoResponseExceptionSmackException.NotConnectedExceptionInterruptedExceptionpublic List<DomainBareJid> getLocalServices() throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
XMPPException.XMPPErrorExceptionSmackException.NoResponseExceptionSmackException.NotConnectedExceptionInterruptedExceptionpublic List<Jid> getUsersAndRoomsBlocked(DomainBareJid mucLightService) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
mucLightService - SmackException.NoResponseExceptionXMPPException.XMPPErrorExceptionSmackException.NotConnectedExceptionInterruptedExceptionpublic List<Jid> getRoomsBlocked(DomainBareJid mucLightService) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
mucLightService - SmackException.NoResponseExceptionXMPPException.XMPPErrorExceptionSmackException.NotConnectedExceptionInterruptedExceptionpublic List<Jid> getUsersBlocked(DomainBareJid mucLightService) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
mucLightService - SmackException.NoResponseExceptionXMPPException.XMPPErrorExceptionSmackException.NotConnectedExceptionInterruptedExceptionpublic void blockRoom(DomainBareJid mucLightService, Jid roomJid) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
mucLightService - roomJid - SmackException.NoResponseExceptionXMPPException.XMPPErrorExceptionSmackException.NotConnectedExceptionInterruptedExceptionpublic void blockRooms(DomainBareJid mucLightService, List<Jid> roomsJids) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
mucLightService - roomsJids - SmackException.NoResponseExceptionXMPPException.XMPPErrorExceptionSmackException.NotConnectedExceptionInterruptedExceptionpublic void blockUser(DomainBareJid mucLightService, Jid userJid) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
mucLightService - userJid - SmackException.NoResponseExceptionXMPPException.XMPPErrorExceptionSmackException.NotConnectedExceptionInterruptedExceptionpublic void blockUsers(DomainBareJid mucLightService, List<Jid> usersJids) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
mucLightService - usersJids - SmackException.NoResponseExceptionXMPPException.XMPPErrorExceptionSmackException.NotConnectedExceptionInterruptedExceptionpublic void unblockRoom(DomainBareJid mucLightService, Jid roomJid) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
mucLightService - roomJid - SmackException.NoResponseExceptionXMPPException.XMPPErrorExceptionSmackException.NotConnectedExceptionInterruptedExceptionpublic void unblockRooms(DomainBareJid mucLightService, List<Jid> roomsJids) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
mucLightService - roomsJids - SmackException.NoResponseExceptionXMPPException.XMPPErrorExceptionSmackException.NotConnectedExceptionInterruptedExceptionpublic void unblockUser(DomainBareJid mucLightService, Jid userJid) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
mucLightService - userJid - SmackException.NoResponseExceptionXMPPException.XMPPErrorExceptionSmackException.NotConnectedExceptionInterruptedExceptionpublic void unblockUsers(DomainBareJid mucLightService, List<Jid> usersJids) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
mucLightService - usersJids - SmackException.NoResponseExceptionXMPPException.XMPPErrorExceptionSmackException.NotConnectedExceptionInterruptedException