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, schedule
public 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.NotConnectedException
XMPPException.XMPPErrorException
SmackException.NoResponseException
InterruptedException
public List<Jid> getOccupiedRooms(DomainBareJid mucLightService) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
mucLightService
- XMPPException.XMPPErrorException
SmackException.NoResponseException
SmackException.NotConnectedException
InterruptedException
public List<DomainBareJid> getLocalServices() throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
XMPPException.XMPPErrorException
SmackException.NoResponseException
SmackException.NotConnectedException
InterruptedException
public List<Jid> getUsersAndRoomsBlocked(DomainBareJid mucLightService) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
mucLightService
- SmackException.NoResponseException
XMPPException.XMPPErrorException
SmackException.NotConnectedException
InterruptedException
public List<Jid> getRoomsBlocked(DomainBareJid mucLightService) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
mucLightService
- SmackException.NoResponseException
XMPPException.XMPPErrorException
SmackException.NotConnectedException
InterruptedException
public List<Jid> getUsersBlocked(DomainBareJid mucLightService) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
mucLightService
- SmackException.NoResponseException
XMPPException.XMPPErrorException
SmackException.NotConnectedException
InterruptedException
public void blockRoom(DomainBareJid mucLightService, Jid roomJid) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
mucLightService
- roomJid
- SmackException.NoResponseException
XMPPException.XMPPErrorException
SmackException.NotConnectedException
InterruptedException
public void blockRooms(DomainBareJid mucLightService, List<Jid> roomsJids) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
mucLightService
- roomsJids
- SmackException.NoResponseException
XMPPException.XMPPErrorException
SmackException.NotConnectedException
InterruptedException
public void blockUser(DomainBareJid mucLightService, Jid userJid) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
mucLightService
- userJid
- SmackException.NoResponseException
XMPPException.XMPPErrorException
SmackException.NotConnectedException
InterruptedException
public void blockUsers(DomainBareJid mucLightService, List<Jid> usersJids) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
mucLightService
- usersJids
- SmackException.NoResponseException
XMPPException.XMPPErrorException
SmackException.NotConnectedException
InterruptedException
public void unblockRoom(DomainBareJid mucLightService, Jid roomJid) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
mucLightService
- roomJid
- SmackException.NoResponseException
XMPPException.XMPPErrorException
SmackException.NotConnectedException
InterruptedException
public void unblockRooms(DomainBareJid mucLightService, List<Jid> roomsJids) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
mucLightService
- roomsJids
- SmackException.NoResponseException
XMPPException.XMPPErrorException
SmackException.NotConnectedException
InterruptedException
public void unblockUser(DomainBareJid mucLightService, Jid userJid) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
mucLightService
- userJid
- SmackException.NoResponseException
XMPPException.XMPPErrorException
SmackException.NotConnectedException
InterruptedException
public void unblockUsers(DomainBareJid mucLightService, List<Jid> usersJids) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
mucLightService
- usersJids
- SmackException.NoResponseException
XMPPException.XMPPErrorException
SmackException.NotConnectedException
InterruptedException